The DrvCompletePDEV function stores the GDI handle of the physical device being created.
VOID
DrvCompletePDEV(
IN DHPDEV dhpdev,
IN HDEV hdev
);
Declared in winddi.h. Include winddi.h.
DrvCompletePDEV is called by GDI when its installation of the physical device is complete. It also provides the driver with a handle to the PDEV to be used when requesting GDI services for the device. This function is required for graphics drivers; when GDI calls DrvCompletePDEV, it cannot fail.