Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

DeriveAppContainerSidFromAppContainerName function

Gets the SID of the specified profile.

Syntax


HRESULT WINAPI DeriveAppContainerSidFromAppContainerName(
  _In_  PCWSTR pszAppContainerName,
  _Out_ PSID   *ppsidAppContainerSid
);

Parameters

pszAppContainerName [in]

The name of the profile.

ppsidAppContainerSid [out]

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 codeDescription
S_OK

The operation completed successfully.

E_INVALIDARG

The pszAppContainerName parameter, or the ppsidAppContainerSid parameter is either NULL or not valid.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Userenv.h

Library

Userenv.lib

DLL

Userenv.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft