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 |
---|---|
|
The operation completed successfully. |
|
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 |