Contents Index Topic Contents | ||
Previous Topic: RatingCheckUserAccess Next Topic: RatingEnabledQuery |
RatingEnable
HRESULT RatingEnable( HWND hwndParent, LPCSTR pszUsername, BOOL fEnable);Enables or disables ratings.
- Returns one of the following values:
S_OK If fEnable was TRUE, ratings have been enabled. Otherwise, ratings were disabled. S_FALSE Ratings were not successfully enabled or disabled. E_ACCESSDENIED Ratings were enabled, and the user specified a bad password. HRESULT_FROM_WIN32(ERROR_BAD_USERNAME) The specified username was invalid.
- hwndParent
- Handle of 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 that ratings should be enabled or disabled.
- fEnable
- Boolean value indicating whether ratings should be enabled or disabled. TRUE indicates that ratings should be enabled. FALSE indicates the contrary.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.