Click to return to the Security     
RatingCheckUserAccess Fun...     RatingEnabledQuery Functi...     Internet Ratings API Func...    
Web Workshop  |  Security & Cryptography

RatingEnable Function


Enables or disables ratings.

Syntax

HRESULT RatingEnable(
     HWND hwndParent, 
     LPCSTR pszUsername, 
     BOOL fEnable
);

Parameters

hwndParent
Handle to a parent window used for any dialog boxes that might be presented.
pszUsername
Address of a string that contains the name of the user requesting ratings to be enabled or disabled.
fEnable
Boolean value that specifies whether ratings should be enabled or disabled. TRUE indicates that ratings should be enabled, and FALSE indicates they should be disabled.

Return Value

Returns one of the following values:
 
S_OKIf fEnable was TRUE, ratings have been enabled. Otherwise, ratings were disabled.
S_FALSERatings were not successfully enabled or disabled.
E_ACCESSDENIEDRatings were enabled, and the user specified a bad password.
HRESULT_FROM_WIN32(ERROR_BAD_USERNAME)The specified user name was invalid.

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


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.