// d3dkmddi.h
DXGKDDI_RESTOREMEMORYFORHOTUPDATE DxgkddiRestorememoryforhotupdate;
NTSTATUS DxgkddiRestorememoryforhotupdate(
[in] IN_CONST_HANDLE hContext,
[in] IN_CONST_PDXGKARG_RESTOREMEMORYFORHOTUPDATE pArgs
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Restores memory for driver hot update. This callback function does not initialize virtual functions. The driver needs to reserve resources, which are used to restore virtual GPUs.
hContext [in]A handle to the driver miniport context.
pArgs [in]A pointer to the DXGKARG_RESTOREMEMORYFORHOTUPDATE structure.
Return STATUS_SUCCESS if the operation succeeds.
//Declaration
DXGKDDI_RESTOREMEMORYFORHOTUPDATE DxgkddiRestorememoryforhotupdate;
// Definition
NTSTATUS DxgkddiRestorememoryforhotupdate
(
IN_CONST_HANDLE hContext
IN_CONST_PDXGKARG_RESTOREMEMORYFORHOTUPDATE pArgs
)
{...}
Before calling DxgkDdiStartDevice, Dxgkrnl calls DxgkDdiRestoreMemoryForHotUpdate once for each memory block, which was saved by DxgkCbSaveMemoryForHotUpdate.