NdisRegisterProtocol( (PNDIS_STATUS)&status, &ProtocolHandle, &protocolChar, sizeof(NDIS_PROTOCOL_CHARACTERISTICS)); 如上的调用失败,查看status值为NDIS_STATUS_BAD_CHARACTERISTICS ,查看文档知道是The CharacteristicsLength is too small for the MajorNdisVersion specified in the buffer at ProtocolCharacteristics. 的原因。于是上网查了下解决原因:把NDIS_PROTOCOL_CHARACTERISTICS改成NDIS50_PROTOCOL_CHARACTERISTICS,但是改成这样之后,调试到这函数就蓝屏了,不知道什么原因,我的是XP系统的,求解!