GetCertificateSize function
Important
This function is used by Output Protection Manager (OPM) to access functionality in the display driver. Applications should not call this function.
Gets the size of a certificate for a display driver.
Syntax
NTSTATUS WINAPI GetCertificateSize(
_In_ PUNICODE_STRING pstrDeviceName,
_In_ DXGKMDT_CERTIFICATE_TYPE ctPVPCertificateType,
_Out_ ULONG *pulCertificateLength
);
Parameters
-
pstrDeviceName [in]
-
A pointer to a UNICODE_STRING structure that contains the name of the display device, as returned by the GetMonitorInfo function.
-
ctPVPCertificateType [in]
-
The type of certificate, specified as a member of the DXGKMDT_CERTIFICATE_TYPE enumeration.
-
pulCertificateLength [out]
-
Receives the size of the certificate, in bytes.
Return value
If the method succeeds, it returns STATUS_SUCCESS. Otherwise, it returns an NTSTATUS error code.
Remarks
Applications should call the IOPMVideoOutput::StartInitialization method instead of this function.
This function has no associated import library. To call this function, you must use the LoadLibrary and GetProcAddress functions to dynamically link to Gdi32.dll.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
DLL |
|
See also