PstGetUserNameForCertificate function
Retrieves the user name associated with the specified certificate.
Syntax
NTSTATUS WINAPI PstGetUserNameForCertificate( _In_ PCCERT_CONTEXT pCertContext, _Out_ PUNICODE_STRING UserName );
Parameters
- pCertContext [in]
-
A constant pointer to a CERT_CONTEXT structure that specifies the certificate for which to obtain the user name.
- UserName [out]
-
The user name associated with the certificate specified by the pCertContext parameter.
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 |
|