PstGetUserNameForCertificate function (certpoleng.h)
Retrieves the user name associated with the specified certificate.
Syntax
NTSTATUS PstGetUserNameForCertificate(
[in] PCCERT_CONTEXT pCertContext,
[out] PUNICODE_STRING UserName
);
Parameters
[in] pCertContext
A constant pointer to a CERT_CONTEXT structure that specifies the certificate for which to obtain the user name.
[out] UserName
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
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | certpoleng.h |
Library | Certpoleng.lib |
DLL | Certpoleng.dll |