PosCxIsDeviceOwner function (poscx.h)

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

Syntax

BOOLEAN PosCxIsDeviceOwner(
  [in] WDFDEVICE     device,
  [in] WDFFILEOBJECT fileObject
);

Parameters

[in] device

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

[in] fileObject

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.

Requirements

Requirement Value
Target Platform Windows
Header poscx.h (include Poscx.h)