Skip to content

Latest commit

 

History

History
87 lines (67 loc) · 4.66 KB

nc-dispmprt-dxgkddi_opm_get_certificate_size.md

File metadata and controls

87 lines (67 loc) · 4.66 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NC:dispmprt.DXGKDDI_OPM_GET_CERTIFICATE_SIZE
DXGKDDI_OPM_GET_CERTIFICATE_SIZE (dispmprt.h)
The DxgkDdiOPMGetCertificateSize function retrieves the size of a certificate of the given type.
display\dxgkddiopmgetcertificatesize.htm
display
05/10/2018
DXGKDDI_OPM_GET_CERTIFICATE_SIZE callback function
DXGKDDI_OPM_GET_CERTIFICATE_SIZE, DXGKDDI_OPM_GET_CERTIFICATE_SIZE callback, Dm_Opm_functions_62785ff7-3c52-4e07-b075-eb27de1236b8.xml, DxgkDdiOPMGetCertificateSize, DxgkDdiOPMGetCertificateSize callback function [Display Devices], display.dxgkddiopmgetcertificatesize, dispmprt/DxgkDdiOPMGetCertificateSize
dispmprt.h
Dispmprt.h
Desktop
Windows 8
Windows Server 2012
PASSIVE_LEVEL (see Remarks section)
Windows
DXGKDDI_OPM_GET_CERTIFICATE_SIZE
dispmprt/DXGKDDI_OPM_GET_CERTIFICATE_SIZE
APIRef
kbSyntax
UserDefined
dispmprt.h
DXGKDDI_OPM_GET_CERTIFICATE_SIZE

DXGKDDI_OPM_GET_CERTIFICATE_SIZE callback function

-description

The DxgkDdiOPMGetCertificateSize function retrieves the size of a certificate of the given type.

-parameters

-param MiniportDeviceContext [in]

A handle to a context block that is associated with a display adapter. Previously, the display miniport driver's DxgkDdiAddDevice function provided this handle to the DirectX graphics kernel subsystem.

-param CertificateType [in]

A DXGKMDT_CERTIFICATE_TYPE-typed value that identifies the type of certificate whose size DxgkDdiOPMGetCertificateSize returns.

-param CertificateSize [out]

A pointer to a variable that receives the size, in bytes, of the certificate whose type is identified by the value in the CertificateType parameter.

-returns

DxgkDdiOPMGetCertificateSize returns one of the following values:

Return code Description
STATUS_SUCCESS The function successfully retrieved the certificate size.
STATUS_GRAPHICS_OPM_NOT_SUPPORTED The display miniport driver does not support OPM either because the hardware vendor never signed the OPM license agreement or the miniport driver's graphics hardware does not comply with OPM rules. DxgkDdiOPMGetCertificateSize can also return this value if the display miniport driver detected tampering.
STATUS_GRAPHICS_COPP_NOT_SUPPORTED The display miniport driver does not support COPP either because the hardware vendor never signed the COPP license agreement or the miniport driver's graphics hardware does not comply with COPP rules. DxgkDdiOPMGetCertificateSize can also return this value if the miniport driver detected tampering.
STATUS_GRAPHICS_UAB_NOT_SUPPORTED The display miniport driver does not support UAB either because the hardware vendor never signed the UAB license agreement or the miniport driver's graphics hardware does not comply with UAB rules. DxgkDdiOPMGetCertificateSize can also return this value if the display miniport driver detected tampering.
STATUS_GRAPHICS_PVP_HFS_FAILED The display miniport driver's hardware functionality scan (HFS) failed or the display miniport driver detected tampering. A display miniport driver can optionally return this value. If DxgkDdiOPMGetCertificateSize does not return this value for tampering, it can return one of the previous error codes instead.

This function might also return other error codes that are defined in Ntstatus.h.

-remarks

DxgkDdiOPMGetCertificateSize can retrieve the size of the display miniport driver's OPM certificate, User Accessible Bus (UAB) certificate, or Certified Output Protection Protocol (COPP) certificate. For information about these certificates, download the Output Content Protection and Windows Vista document.

DxgkDdiOPMGetCertificateSize should be made pageable.

-see-also

DXGKMDT_CERTIFICATE_TYPE

DxgkDdiAddDevice