零长度数组问题
在微软DDK中有这么一段:
typedef struct _USB_NODE_CONNECTION_INFORMATION {
ULONG ConnectionIndex;
// usb device descriptor returned by this device
// during enumeration
USB_DEVICE_DESCRIPTOR DeviceDescriptor;
UCHAR CurrentConfigurationValue;
BOOLEAN LowSpeed;
BOOLEAN DeviceIsHub;
USHORT DeviceAddress;
ULONG NumberOfOpenPipes;
USB_CONNECTION_STATUS ConnectionStatus;
USB_PIPE_INFO PipeList[0];
} USB_NODE_CONNECTION_INFORMATION, *PUSB_NODE_CONNECTION_INFORMATION;
为什么会有一个零长度的PipeList呢?