NDIS_PROTOCOL_CHARACTERISTICS 和 NDIS_PROTOCOL_DRIVER_CHARACTERISTICS

5.1

typedef  struct  _NDIS_PROTOCOL_CHARACTERISTICS {
    UCHAR MajorNdisVersion;
    UCHAR MinorNdisVersion;
    UINT Reserved;
    OPEN_ADAPTER_COMPLETE_HANDLER OpenAdapterCompleteHandler;
    CLOSE_ADAPTER_COMPLETE_HANDLER CloseAdapterCompleteHandler;
    SEND_COMPLETE_HANDLER SendCompleteHandler;
    TRANSFER_DATA_COMPLETE_HANDLER TransferDataCompleteHandler;
    RESET_COMPLETE_HANDLER ResetCompleteHandler;
    REQUEST_COMPLETE_HANDLER RequestCompleteHandler;
    RECEIVE_HANDLER ReceiveHandler;
    RECEIVE_COMPLETE_HANDLER ReceiveCompleteHandler;
    STATUS_HANDLER StatusHandler;
    STATUS_COMPLETE_HANDLER StatusCompleteHandler;
    NDIS_STRING Name;
//
//  MajorNdisVersion must be set to 0x04 or 0x05
//  with any of the following members.
//
    RECEIVE_PACKET_HANDLER ReceivePacketHandler;
    BIND_HANDLER BindAdapterHandler;
    UNBIND_HANDLER UnbindAdapterHandler;
    PNP_EVENT_HANDLER PnPEventHandler;
    UNLOAD_PROTOCOL_HANDLER UnloadHandler;
//
//  MajorNdisVersion must be set to 0x05 
//  with any of the following members.
//
    CO_SEND_COMPLETE_HANDLER CoSendCompleteHandler;
    CO_STATUS_HANDLER CoStatusHandler;
    CO_RECEIVE_PACKET_HANDLER CoReceivePacketHandler;
    CO_AF_REGISTER_NOTIFY_HANDLER CoAfRegisterNotifyHandler;
} NDIS_PROTOCOL_CHARACTERISTICS, 
* PNDIS_PROTOCOL_CHARACTERISTICS;

 

 

6.0

typedef  struct  _NDIS_PROTOCOL_DRIVER_CHARACTERISTICS {
  NDIS_OBJECT_HEADER  Header; 
  UCHAR  MajorNdisVersion;
  UCHAR  MinorNdisVersion;
  UCHAR  MajorDriverVersion;
  UCHAR  MinorDriverVersion;
  ULONG  Flags;
  NDIS_STRING  Name;
  SET_OPTIONS_HANDLER  SetOptionsHandler;
  BIND_HANDLER_EX  BindAdapterHandlerEx;
  UNBIND_HANDLER_EX  UnbindAdapterHandlerEx;
  OPEN_ADAPTER_COMPLETE_HANDLER_EX  OpenAdapterCompleteHandlerEx;
  CLOSE_ADAPTER_COMPLETE_HANDLER_EX  CloseAdapterCompleteHandlerEx;
  NET_PNP_EVENT_HANDLER  NetPnPEventHandler;
  UNINSTALL_PROTOCOL_HANDLER  UninstallHandler;
  OID_REQUEST_COMPLETE_HANDLER  OidRequestCompleteHandler;
  STATUS_HANDLER_EX  StatusHandlerEx;
  RECEIVE_NET_BUFFER_LISTS_HANDLER  ReceiveNetBufferListsHandler;
  SEND_NET_BUFFER_LISTS_COMPLETE_HANDLER  SendNetBufferListsCompleteHandler;

  DIRECT_OID_REQUEST_COMPLETE_HANDLER  DirectOidRequestCompleteHandler;

} NDIS_PROTOCOL_DRIVER_CHARACTERISTICS, 
* PNDIS_PROTOCOL_DRIVER_CHARACTERISTICS;

 

你可能感兴趣的:(character)