Cleanup AFD headers a bit.

svn path=/trunk/; revision=15571
This commit is contained in:
Filip Navara
2005-05-28 11:10:27 +00:00
parent 72742963f5
commit 36043fe728
2 changed files with 2 additions and 18 deletions
+1 -4
View File
@@ -488,7 +488,7 @@ NTSTATUS STDCALL
DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{
PDEVICE_OBJECT DeviceObject;
UNICODE_STRING wstrDeviceName;
UNICODE_STRING wstrDeviceName = RTL_CONSTANT_STRING(L"\\Device\\Afd");
PAFD_DEVICE_EXTENSION DeviceExt;
NTSTATUS Status;
@@ -500,9 +500,6 @@ DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = AfdDispatch;
DriverObject->DriverUnload = AfdUnload;
/* create afd device */
RtlRosInitUnicodeStringFromLiteral(&wstrDeviceName, L"\\Device\\Afd");
Status = IoCreateDevice
( DriverObject,
sizeof(AFD_DEVICE_EXTENSION),
+1 -14
View File
@@ -17,21 +17,8 @@
#include <tdikrnl.h>
#include <tdiinfo.h>
#include <string.h>
#include <ndis.h>
#include <shared.h>
#ifndef _MSC_VER
#include <roscfg.h>
#include <rosrtl/string.h>
#include <winsock2.h>
#include <ddk/tdi.h>
#include <ddk/ndis.h>
#include <tcpmisc.h>
#include <tcpioctl.h>
#else
#include <ntdef.h>
#define STDCALL
#endif
#include <shared.h>
#ifndef MIN
#define MIN(x,y) (((x)<(y))?(x):(y))