Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DeriveAppContainerSidFromAppContainerName function (userenv.h)

Gets the SID of the specified profile.

Syntax

USERENVAPI HRESULT DeriveAppContainerSidFromAppContainerName(
 [in] PCWSTR pszAppContainerName,
 [out] PSID *ppsidAppContainerSid
);

Parameters

[in] pszAppContainerName

The name of the profile.

[out] ppsidAppContainerSid

The SID for the profile. This buffer must be freed using the FreeSid function.

Return value

This function can return one of these values.

Return code Description
S_OK
The operation completed successfully.
E_INVALIDARG
The pszAppContainerName parameter, or the ppsidAppContainerSid parameter is either NULL or not valid.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header userenv.h
Library Userenv.lib
DLL Userenv.dll

Feedback

Was this page helpful?

Additional resources