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