mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Cleanup AFD headers a bit.
svn path=/trunk/; revision=15571
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user