// nfcradiodev.h
// CTL_CODE(0x0051, 0x062, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_NFCRM_QUERY_RADIO_STATE 0x00510188
View the official Windows Driver Kit DDI referenceNo description available.
This IOCTL is used by the radio management application or service to query the current radio power state of the proximity device.
None
None
sizeof(NFCRM_RADIO_STATE)
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful.
The STATUS_INVALID_PARAMETER return code is no longer required. A bug was discovered in Windows 10 build 10240, that Windows would send a non-null input parameter with this IOCTL. This bug was fixed in later versions of Windows. To simplify code, drivers can ignore the input parameters in all versions of Windows 10.