PosCxIsDeviceOwner - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// poscx.h

BOOLEAN PosCxIsDeviceOwner(
  [in] WDFDEVICE     device,
  [in] WDFFILEOBJECT fileObject
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-poscx-poscxisdeviceowner)

PosCxIsDeviceOwner function

Description

PosCxIsDeviceOwner checks if the caller currently owns the claim on the device.

Parameters

device [in]

A handle to a framework device object that represents the device.

fileObject [in]

A handle to a framework file object that identifies the caller, usually acquired with WdfRequestGetFileObject. If this parameter is NULL, PosCxIsDeviceOwner returns TRUE if the device is not currently owned.

Return value

Returns TRUE if the caller is the device owner, or if fileObject is NULL and the device is not currently owned.

Otherwise, returns FALSE.