編集

次の方法で共有


EVT_NFC_CX_DEVICE_IO_CONTROL callback function (nfccx.h)

Called by the NFC CX to send an unhandled IOCTL to the client driver.

Syntax

EVT_NFC_CX_DEVICE_IO_CONTROL EvtNfcCxDeviceIoControl;

void EvtNfcCxDeviceIoControl(
  [in] WDFDEVICE Device,
  [in] WDFREQUEST Request,
  [in] size_t OutputBufferLength,
  [in] size_t InputBufferLength,
  [in] ULONG IoControlCode
)
{...}

Parameters

[in] Device

A handle to a framework device object.

[in] Request

A handle to a framework request object.

[in] OutputBufferLength

The length, in bytes, of the request's output buffer, if an output buffer is available.

[in] InputBufferLength

The length, in bytes, of the request's input buffer, if an input buffer is available.

[in] IoControlCode

The driver-defined or system-defined I/O control code (IOCTL) that is associated with the request.

Return value

None

Remarks

The client can complete the request either synchronously or asynchronously. The NFC CX will complete the request if a status code other than STATUS_PENDING is returned by the client. To prevent request double completion, the client should not complete the WDFREQUEST (that is, call WdfRequestComplete or WdfRequestCompleteWithInformation) if it returns STATUS_SUCCESS or a failure status code.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server None supported
Target Platform Desktop
Header nfccx.h (include Ncidef.h)
IRQL Requires same

See also

NFC class extension design guide

Near field communication (NFC) design guide