Click to return to the Security     
RatingObtainQuery Functio...     RatingTerm Function     Internet Ratings API Func...    
Web Workshop  |  Security & Cryptography

RatingSetupUI Function


Displays a modal dialog box that allows a parent to set levels of restrictions.

Syntax

HRESULT RatingSetupUI(
    HWND hDlg,
    LPCSTR pszUsername
);

Parameters

hDlg
Handle to the modal dialog box.
pszUsername
Address of a string that contains the name of the user whose settings should be configured. If this parameter is NULL, settings for all users are configured. This parameter must be NULL in Microsoft® Internet Explorer version 3.0.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

This function ensures that the current user is a supervisor before allowing access to the configuration user interface.

The RatingCheckUserAccess function uses the settings supplied by this function to compare against rating labels.

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.