DrvCompletePDEV

VOID DrvCompletePDEV(

    IN DHPDEV dhpdev,

    IN HDEV hdev

   );

DrvCompletePDEV stores the GDI handle (hdev) of the physical device in dhpdev. The driver should retain this handle for use when calling GDI services.

Parameters

dhpdev
Identifies the physical device by its handle, which was returned to GDI when it called DrvEnablePDEV.
hdev
Identifies the physical device that has been installed. This is the GDI handle for the physical device being created. The driver should use this handle when calling GDI functions.

Comments

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.