DXGKDDI_REMOVE_DEVICE callback function (dispmprt.h)
The DxgkDdiRemoveDevice function frees any resources allocated during DxgkDdiAddDevice.
Syntax
DXGKDDI_REMOVE_DEVICE DxgkddiRemoveDevice;
NTSTATUS DxgkddiRemoveDevice(
[in] IN_CONST_PVOID MiniportDeviceContext
)
{...}
Parameters
[in] MiniportDeviceContext
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.
Return value
DxgkDdiRemoveDevice returns STATUS_SUCCESS if it succeeds; otherwise, it returns one of the error codes defined in Ntstatus.h.
Remarks
DxgkDdiRemoveDevice must free the context block represented by MiniportDeviceContext.
DxgkDdiRemoveDevice should be made pageable.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | dispmprt.h |
IRQL | PASSIVE_LEVEL |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for