Click to return to the Security     
RatingAccessDeniedDialog ...     RatingAddPropertyPage Fun...     Internet Ratings API Func...    
Web Workshop  |  Security & Cryptography

RatingAccessDeniedDialog2 Function


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_OKThe supervisor entered the password. Access should be allowed.
S_FALSEThe user is still denied access to the content.
Error codesAn 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

RatingCheckUserAccess



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.