DxgkDdiOPMDestroyProtectedOutput routine

The DxgkDdiOPMDestroyProtectedOutput function destroys the given protected output object.

Syntax


DXGKDDI_OPM_DESTROY_PROTECTED_OUTPUT DxgkDdiOPMDestroyProtectedOutput;

NTSTATUS DxgkDdiOPMDestroyProtectedOutput(
  _In_  PVOID  MiniportDeviceContext,
  _In_  HANDLE ProtectedOutputHandle
)
{ ... }

Parameters

MiniportDeviceContext [in]

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

ProtectedOutputHandle [in]

The handle to a protected output object. The DxgkDdiOPMCreateProtectedOutput function creates the protected output object and returns the handle to the object.

Return value

DxgkDdiOPMDestroyProtectedOutput returns STATUS_SUCCESS if it succeeds. Otherwise, it returns one of the error codes that are defined in Ntstatus.h.

Note  DxgkDdiOPMDestroyProtectedOutput cannot fail if the ProtectedOutputHandle parameter contains a valid protected output handle.

Remarks

The DirectX graphics kernel subsystem calls DxgkDdiOPMDestroyProtectedOutput when it finishes using the protected output object.

DxgkDdiOPMDestroyProtectedOutput should be made pageable.

Requirements

Target platform

Desktop

Header

Dispmprt.h (include Dispmprt.h)

IRQL

PASSIVE_LEVEL (see Remarks section)

See also

DxgkDdiAddDevice
DxgkDdiOPMCreateProtectedOutput

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft