ConvertToSid Method
Collapse the table of content
Expand the table of content

IIdentityStore::ConvertToSid method

The ConvertToSid method retrieves the security identifier (SID) associated with the specified identity and identity provider.

Syntax


HRESULT ConvertToSid(
  [in]      LPCWSTR lpszUniqueID,
  [in]      REFGUID ProviderGUID,
  [in]      USHORT  cbSid,
  [in, out] BYTE    *pSid,
  [out]     USHORT  *pcbRequiredSid
);

Parameters

lpszUniqueID [in]

The identity for which to retrieve the SID.

ProviderGUID [in]

The GUID of the identity provider.

cbSid [in]

The size, in bytes, of the buffer pointed to by the pSid parameter.

pSid [in, out]

A pointer to the SID this method retrieves.

pcbRequiredSid [out]

The required length, in bytes, of the pSid buffer.

Return value

If the method succeeds, it returns S_OK.

If the method fails, it returns an error code. For a list of common error codes, see Common HRESULT Values.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Identitystore.h

IDL

Identitystore.idl

IID

IID_IIdentityStore is defined as df586fa5-6f35-44f1-b209-b38e169772eb

See also

IIdentityStore

 

 

Show:
© 2016 Microsoft