!ndiskd.ndisevent
注意 第三方網路驅動程序開發人員不應該手動使用此擴充功能命令。 您可以執行它來查看它顯示的資訊,但您無法重複使用它在驅動程式中提供的詳細數據。
!ndiskd.ndisevent 擴充功能會顯示 NDIS 偵錯事件記錄檔。
!ndiskd.ndisevent -handle <x> [-tagtype <str>]
參數
-處理
必要。 事件記錄檔的句柄。
-tagtype
標籤的列舉類型。
DLL
Ndiskd.dll
範例
若要查看網路適配器的事件記錄檔輸出,!ndiskd 會在 !ndiskd.netadapter 輸出的 State 區段中提供連結。 這比從迷你埠區塊尋找事件記錄檔句柄的手動方法簡單,並使用該方法來執行 !ndiskd.ndisevent 擴充功能。
首先,輸入 沒有參數的 !ndiskd.netadapter 命令,以查看系統上的網路適配器和迷你埠驅動程式清單。 在下列範例中,尋找 Marvell AVASTAR Wireless-AC Network Controller、ffffc804b9e6f1a0 的句柄。
1: kd> !ndiskd.netadapter
Driver NetAdapter Name
ffffc804af2e3710 ffffc804b9e6f1a0 Marvell AVASTAR Wireless-AC Network Controller
ffffc804b99b9020 ffffc804b9c301a0 WAN Miniport (Network Monitor)
ffffc804b99b9020 ffffc804b9c2a1a0 WAN Miniport (IPv6)
ffffc804b99b9020 ffffc804b8a8a1a0 WAN Miniport (IP)
ffffc804ae9d7020 ffffc804b9ceb1a0 WAN Miniport (PPPOE)
ffffc804b9ca5900 ffffc804b9e601a0 WAN Miniport (PPTP)
ffffc804b99dc720 ffffc804b99b01a0 WAN Miniport (L2TP)
ffffc804b86581b0 ffffc804b9c6c1a0 WAN Miniport (IKEv2)
ffffc804ad4a7250 ffffc804b99651a0 WAN Miniport (SSTP)
ffffc804b11c4020 ffffc804b85821a0 Microsoft ISATAP Adapter
ffffc804b11c4020 ffffc804b71731a0 Microsoft ISATAP Adapter #2
ffffc804ad725020 ffffc804b05e71a0 Surface Ethernet Adapter #2
ffffc804b0bf0020 ffffc804b0c011a0 Bluetooth Device (Personal Area Network)
ffffc804aef695e0 ffffc804aed331a0 TAP-Windows Adapter V9
現在,按兩下該 NetAdapter 的連結,或輸入 !ndiskd.netadapter -handle 命令以查看其詳細數據。 在 [狀態] 區段中,尋找 [裝置 PnP] 字段右邊的 [顯示狀態歷程記錄] 連結。
1: kd> !ndiskd.netadapter ffffc804b9e6f1a0
MINIPORT
Marvell AVASTAR Wireless-AC Network Controller
Ndis handle ffffc804b9e6f1a0
Ndis API version v6.50
Adapter context ffffc804af3b1100
Driver ffffc804af2e3710 - mrvlpcie8897 v1.0
Network interface ffffc804aea60a20
Media type 802.3
Physical medium NdisPhysicalMediumUnspecified
Device instance PCI\VEN_11AB&DEV_2B38&SUBSYS_045E0001&REV_00\4&379f07b2&0&00E0
Device object ffffc804b9e6f050 More information
MAC address c0-33-5e-13-22-f7
STATE
Miniport INITIALIZING
Device PnP ADDED Show state history
Datapath Normal
Operational status DOWN
Operational flags [No flags set]
Admin status ADMIN_UP
Media MediaConnectUnknown
Power D0
References 1 Show detail
Total resets 0
Pending OID None
Flags IN_INITIALIZE, NOT_BUS_MASTER, DEFAULT_PORT_ACTIVATED,
NOT_SUPPORTS_MEDIA_SENSE, DOES_LOOPBACK, MEDIA_CONNECTED
PnP flags PM_SUPPORTED, RECEIVED_START, HARDWARE_DEVICE
WDI
This system supports WDI.
Learn more about the associated WDI state
BINDINGS
Protocol list Driver Open Context
No protocols are bound to this miniport
Filter list Driver Module Context
No filters are bound to this miniport
MORE INFORMATION
Driver handlers Task offloads
Power management PM protocol offloads
Pending OIDs Timers
Pending NBLs Receive side throttling
Wake-on-LAN (WoL) Packet filter
Receive queues Receive filtering
RSS NIC switch
Hardware resources Selective suspend
NDIS ports WMI guids
Diagnostic log
現在,您可以按兩下 [顯示狀態歷程記錄] 連結,或使用網路適配器的句柄輸入 !ndiskd.netadapter -handle -log 命令,這會顯示此迷你埠驅動程式的 PnP 事件記錄檔。
1: kd> !ndiskd.netadapter ffffc804b9e6f1a0 -log
MINIPORT PM & PNP EVENTS
Event Timestamp (most recent event at bottom)
DeviceAdded
13 ms later
DeviceStart
Mon Mar 20 21:27:07.106 2017 (UTC - 7:00) Now?
Set a breakpoint on the next event