GetUserSettings Method
Collapse the table of content
Expand the table of content

IWindowsParentalControls::GetUserSettings method

Retrieves a pointer to an interface for general settings for the specified user.

Syntax


HRESULT GetUserSettings(
  [in]  LPCWSTR      pcszSID,
  [out] IWPCSettings **ppSettings
);

Parameters

pcszSID [in]

The SID string of the user. If this parameter is NULL, retrieve settings for the current user.

ppSettings [out]

A pointer to an IWPCSettings interface pointer.

Return value

This method can return one of these values.

Return codeDescription
S_OK

The method completed successfully.

E_INVALIDARG

A pointer argument is NULL.

E_FILE_NOT_FOUND

The user settings were not found.

E_OUT_OF_MEMORY

There is insufficient memory to complete the operation.

E_FAIL

The method failed.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

None supported

Header

Wpcapi.h

See also

IWindowsParentalControls

 

 

Community Additions

ADD
Show:
© 2016 Microsoft