IWindowsParentalControls::GetGamesSettings method (wpcapi.h)
Retrieves a pointer to an interface for games restrictions settings for the specified user.
Syntax
HRESULT GetGamesSettings(
[in] LPCWSTR pcszSID,
[out] IWPCGamesSettings **ppSettings
);
Parameters
[in] pcszSID
The SID string of the user. If this parameter is NULL, retrieve settings for the current user.
[out] ppSettings
A pointer to an IWPCGamesSettings interface pointer.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
The method completed successfully. |
|
A pointer argument is NULL. |
|
The user settings were not found. |
|
There is insufficient memory to complete the operation. |
|
The method failed. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | wpcapi.h |