// dispmprt.h
DXGKDDI_PROTECTED_CALLBACK DxgkddiProtectedCallback;
VOID DxgkddiProtectedCallback(
[in] IN_CONST_PVOID MiniportDeviceContext,
[in] PVOID ProtectedCallbackContext,
[in] NTSTATUS ProtectionStatus
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The DxgkProtectedCallback callback routine is implemented by the display miniport driver and is called by DxgkCbExcludeAdapterAccess during a protected state when all access to the display adapter is prevented.
MiniportDeviceContext [in]A handle to a context block associated with a display adapter. The display miniport driver's DxgkDdiAddDevice function previously provided this handle to the DirectX graphics kernel subsystem.
ProtectedCallbackContext [in]A pointer to driver-defined information that was specified in a previous call to DxgkCbExcludeAdapterAccess.
ProtectionStatus [in]Status of the display adapter's protected state. If STATUS_SUCCESS, the adapter was successfully protected from access. A failure status code indicates that the adapter is not protected.
DXGKDDI_PROTECTED_CALLBACK DxgkProtectedCallback;
VOID DxgkProtectedCallback(
_In_ const PVOID MiniportDeviceContext,
_In_ PVOID ProtectedCallbackContext,
_In_ NTSTATUS ProtectionStatus
)
{ ... }
DxgkProtectedCallback must be called only when all access to the display adapter has been halted, as indicated by the status parameter ProtectionStatus.
The driver must ensure that following conditions are met during the callback routine: