EngLockDriverObj function (winddi.h)
The EngLockDriverObj function creates an exclusive lock on this object for the calling thread.
Syntax
ENGAPI DRIVEROBJ * EngLockDriverObj(
HDRVOBJ hdo
);
Parameters
hdo
Handle to the DRIVEROBJ structure to be locked by GDI.
Return value
EngLockDriverObj returns a DRIVEROBJ structure if the function is successful. If the operation fails, it returns NULL.
Remarks
This function will fail if the handle is invalid, if the object is already locked by another thread, or if the handle is not owned by the calling process.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows 2000 and later versions of the Windows operating systems. |
Target Platform | Universal |
Header | winddi.h (include Winddi.h) |
Library | Win32k.lib |
DLL | Win32k.sys |