diff --git a/reactos/include/net/lan.h b/reactos/drivers/net/lan/include/net_lan.h similarity index 99% rename from reactos/include/net/lan.h rename to reactos/drivers/net/lan/include/net_lan.h index 6ffa070ec24..c61a7341a00 100644 --- a/reactos/include/net/lan.h +++ b/reactos/drivers/net/lan/include/net_lan.h @@ -1,6 +1,6 @@ #ifndef _NET_LAN_H -#include "net/wh.h" +#include "net_wh.h" #define FSCTL_LAN_BASE FILE_DEVICE_NETWORK #define _LAN_CONTROL_CODE(Function, Method) \ diff --git a/reactos/include/net/wh.h b/reactos/drivers/net/lan/include/net_wh.h similarity index 100% rename from reactos/include/net/wh.h rename to reactos/drivers/net/lan/include/net_wh.h diff --git a/reactos/drivers/net/lan/include/precomp.h b/reactos/drivers/net/lan/include/precomp.h index a1d3decdc2d..6ea88ea05bb 100644 --- a/reactos/drivers/net/lan/include/precomp.h +++ b/reactos/drivers/net/lan/include/precomp.h @@ -8,7 +8,7 @@ #include #include #include -#include "net/lan.h" +#include "net_lan.h" #include "lan.h" #endif/*_LAN_PRECOMP_H*/ diff --git a/reactos/drivers/net/lan/lan/lan.c b/reactos/drivers/net/lan/lan/lan.c index 4be350b0100..ff8a65ccdf2 100644 --- a/reactos/drivers/net/lan/lan/lan.c +++ b/reactos/drivers/net/lan/lan/lan.c @@ -1208,7 +1208,6 @@ LanDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp) { PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp); NTSTATUS Status = STATUS_SUCCESS; - PFILE_OBJECT FileObject = IrpSp->FileObject; LA_DbgPrint(MID_TRACE,("LanDispatch: %d\n", IrpSp->MajorFunction)); if( IrpSp->MajorFunction != IRP_MJ_CREATE) { diff --git a/reactos/drivers/net/lan/makefile b/reactos/drivers/net/lan/makefile index 2ca3a531843..a0256157063 100644 --- a/reactos/drivers/net/lan/makefile +++ b/reactos/drivers/net/lan/makefile @@ -13,6 +13,7 @@ TARGET_PCH = include/precomp.h # -DMEMTRACK TARGET_CFLAGS = \ -D__USE_W32API \ + -D_SEH_NO_NATIVE_NLG \ -DNDIS40 \ -DMEMTRACK \ -Wall -Werror \ @@ -20,8 +21,10 @@ TARGET_CFLAGS = \ -I$(PATH_TO_TOP)/w32api/include \ -I$(PATH_TO_TOP)/include -TARGET_DDKLIBS = ndis.a \ - $(PATH_TO_TOP)/dk/w32/lib/pseh.a +TARGET_DDKLIBS = ndis.a + +TARGET_LIBS = \ + $(PATH_TO_TOP)/dk/w32/lib/libpseh.a TARGET_CLEAN = \ lan/*.o diff --git a/reactos/w32api/include/ddk/ndis.h b/reactos/w32api/include/ddk/ndis.h index 63fe9461515..88c81bfe047 100644 --- a/reactos/w32api/include/ddk/ndis.h +++ b/reactos/w32api/include/ddk/ndis.h @@ -3065,6 +3065,11 @@ NdisGetCurrentSystemTime( #endif +NDISAPI +CCHAR +DDKAPI +NdisSystemProcessorCount(VOID); + NDISAPI VOID DDKAPI @@ -5169,6 +5174,35 @@ NdisMUnmapIoSpace( +/* Event functions */ + +NDISAPI +VOID +DDKAPI +NdisInitializeEvent( + IN PNDIS_EVENT Event); + +NDISAPI +VOID +DDKAPI +NdisSetEvent( + IN PNDIS_EVENT Event); + +NDISAPI +VOID +DDKAPI +NdisResetEvent( + IN PNDIS_EVENT Event); + +NDISAPI +BOOLEAN +DDKAPI +NdisWaitEvent( + IN PNDIS_EVENT Event, + IN UINT Timeout); + + + /* NDIS intermediate miniport structures */ typedef VOID (DDKAPI *W_MINIPORT_CALLBACK)(