BOOL DrvEnableDriver(
IN ULONG iEngineVersion, | |
IN ULONG cj, | |
OUT DRVENABLEDATA *pded | |
); |
DrvEnableDriver is the initial driver entry point exported by the driver DLL. It fills a DRVENABLEDATA structure with the driver version number and calling addresses of functions supported by the driver.
The return value is TRUE if the specified driver is enabled. Otherwise, it is FALSE, and an error code is logged.
One-time initializations, such as allocating semaphores, can be performed by this function. The driver should wait until DrvEnablePDEV is called before enabling hardware, such as a display.
DrvEnableDriver is required for graphics drivers.