Displays a modal dialog box telling the user that access to the requested content is denied. This function is identical to RatingAccessDeniedDialog except that if a ratings modal dialog box is already being displayed, the details from the second call are inserted into the existing dialog box.
Syntax
HRESULT RatingAccessDeniedDialog2( HWND hDlg, LPCSTR pszUsername, VOID *pRatingDetails );
Parameters
- hDlg
- Handle to the modal dialog box.
- pszUsername
- Address of a string that contains the name of the user who was denied access. If this parameter is NULL, the user name is extracted from the structure specified by pRatingDetails, or the current user name is used.
- pRatingDetails
- Address returned by the RatingCheckUserAccess function. This parameter can provide the dialog box with additional information about why access was denied, such as whether the site is considered rated, which ratings exceeded limits, and where the ratings were obtained.
Return Value
Returns one of the following values:
S_OK The supervisor entered the password. Access should be allowed. S_FALSE The user is still denied access to the content. Error codes An error occurred.
Function Information
Windows NT Use version 4.0 Windows Use Windows 95 and later Header Ratings.h Import Library Msrating.lib Minimum availability Internet Explorer 4.0
See Also