microsoft / Windows-driver-samples

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
Microsoft Public License
7k stars 4.94k forks source link

ndis lwf sample file filteruser.h references NDIS_PARAMETER_TYPE, not defined for user mode apps. #983

Open HollisTech opened 1 year ago

HollisTech commented 1 year ago

For example: https://github.com/microsoft/Windows-driver-samples/blob/46db93c4c0542166457f5504010b402a9426ab1d/network/ndis/filter/filteruser.h#L71

A user mode app cannot be built successfully using the filteruser.h file, as it includes structures not defined by including ntddndis.h

amolvaidya23 commented 1 year ago

Same here. could not able to find EventWriteReadStart, EventWriteWriteStop, EventWriteFailAddDevice etc, could not able to find their source code or related library.

Google search comes empty...

So could not able to build following path samples, due to these functions.

D:\Windows-driver-samples-main\Windows-driver-samples-main\general\DCHU\osrfx2_DCHU_base\osrfx2_DCHU_base\bulkrwr.c (1 hit) Line 76: EventWriteReadStart(WdfIoQueueGetDevice(Queue), (ULONG)Length); D:\Windows-driver-samples-main\Windows-driver-samples-main\usb\kmdf_fx2\driver\bulkrwr.c (1 hit) Line 74: EventWriteReadStart(&activity, WdfIoQueueGetDevice(Queue), (ULONG)Length); D:\Windows-driver-samples-main\Windows-driver-samples-main\usb\umdf2_fx2\driver\bulkrwr.c (1 hit) Line 73: EventWriteReadStart(WdfIoQueueGetDevice(Queue), (ULONG)Length);