// nfcsedev.h
typedef struct _SECURE_ELEMENT_HCE_DATA_PACKET {
USHORT bConnectionId;
USHORT cbPayload;
BYTE pbPayload[ANYSIZE_ARRAY];
} SECURE_ELEMENT_HCE_DATA_PACKET, *PSECURE_ELEMENT_HCE_DATA_PACKET;
View the official Windows Driver Kit DDI referenceNo description available.
SECURE_ELEMENT_HCE_DATA_PACKET is an input buffer to IOCTL_NFCSE_HCE_REMOTE_SEND and output buffer for IOCTL_NFCSE_HCE_REMOTE_RECV.
bConnectionIdThe ID of the connection established between the device and the smart card reader, on which to send and receive the HCE packet. This ID is also received from IOCTL_NFCSE_GET_NEXT_EVENT when the event type (SECURE_ELEMENT_EVENT_TYPE) is HceActivated or HceDeactivated. Then the pbEventData field of the returned SECURE_ELEMENT_EVENT_INFO structure is a SECURE_ELEMENT_HCE_ACTIVATION_PAYLOAD structure, which contains a bConnectionId member.
cbPayloadLength of ISO 7816-4 APDU buffer.
pbPayload[ANYSIZE_ARRAY]Buffer holding ISO 7816-4 APDU.