EngLockDriverObj

DRIVEROBJ  *EngLockDriverObj(

    IN HDRVOBJ hdo
  );

EngLockDriverObj creates an exclusive lock on this object for the calling thread. This function will fail if the handle is invalid, if the object is already locked by another thread, or if the handle isn’t owned by the calling process.

Parameters

hdo

Handle to the DRIVEROBJ structure to be locked by GDI.

Return Value

The return value is a pointer to a DRIVEROBJ structure if the function is successful. Otherwise, it is null.

EngLockDriverObj returns a DRIVEROBJ. If the operation fails, it returns . . .