PstMapCertificate function
Retrieves a structure that specifies information that can be used to create a user token associated with the specified certificate.
Syntax
NTSTATUS WINAPI PstMapCertificate( _In_ PCCERT_CONTEXT pCert, _Out_ LSA_TOKEN_INFORMATION_TYPE *pTokenInformationType, _Out_ PVOID *ppTokenInformation );
Parameters
- pCert [in]
-
A constant pointer to a CERT_CONTEXT structure that specifies the certificate for which to obtain token information.
- pTokenInformationType [out]
-
A pointer to a value of the LSA_TOKEN_INFORMATION_TYPE enumeration that indicates the type of structure pointed to by the ppTokenInformation parameter.
- ppTokenInformation [out]
-
The address of a pointer to a structure that specifies information that can be used to create a user token.
Return value
If the function succeeds, return STATUS_SUCCESS.
If the function fails, return an NTSTATUS code that indicates the reason it failed.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|