// nfpdev.h
// CTL_CODE(0x0051, 0x010, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_NFP_GET_NEXT_SUBSCRIBED_MESSAGE 0x00510040
View the official Windows Driver Kit DDI referenceNo description available.
The client sends the IOCTL_NFP_GET_NEXT_SUBSCRIBED_MESSAGE request to the subscription handle repeatedly in order to receive subscribed messages as they arrive. Typically, this IOCTL will be pended in the subscription handle until a message matching the subscribed type actually arrives.
None
A valid buffer is required for returning the message data when it arrives. The first DWORD of this buffer is reserved for a hint to the client for the next size of the buffer to be returned. This buffer will typically initially be 255 bytes, but the driver can request that the client send a bigger buffer by providing just the hint and completing the IOCTL with STATUS_BUFFER_OVERFLOW.
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful.
Otherwise, Status to the appropriate error condition as a NTSTATUS code.
For more information, see NTSTATUS Values.
The following are required actions when using this IOCTL:
When this IOCTL is received in the driver:
Near field communication (NFC) overall design guide
Near field proximity design guide (Tap and Do, NFP provider model, driver requirements)