- Add rasacd driver (not implemented)

svn path=/trunk/; revision=34015
This commit is contained in:
Dmitry Chapyshev 2008-06-18 19:00:50 +00:00
parent 23b40d082d
commit d73e9e4231
5 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,45 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS RAS Automatic Connection Driver
* FILE: acd/main.c
* PURPOSE: Driver entry point
* PROGRAMMERS: Dmitry Chapyshev(dmitry@reactos.org)
* REVISIONS:
* 25/05/2008 Created
*/
#include <ndis.h>
#include <tdi.h>
#include <debug.h>
#include "acdapi.h"
NTSTATUS
DriverEntry(PDRIVER_OBJECT pDriverObject,
PUNICODE_STRING pRegistryPath)
{
UNICODE_STRING DeviceName;
PDEVICE_OBJECT pDeviceObject;
NTSTATUS Status;
RtlInitUnicodeString(&DeviceName, L"RasAcd");
Status = IoCreateDevice(pDriverObject,
0,
&DeviceName,
FILE_DEVICE_RASACD,
0,
FALSE,
&pDeviceObject);
if (!NT_SUCCESS(Status))
{
DPRINT1("IoCreateDevice() failed (Status %lx)\n", Status);
return Status;
}
return STATUS_SUCCESS;
}
/* EOF */

View file

@ -0,0 +1,11 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS RAS Automatic Connection Driver
* FILE: include/acdapi.h
* PURPOSE: Header file
* PROGRAMMERS: Dmitry Chapyshev(dmitry@reactos.org)
* REVISIONS:
* 25/05/2008 Created
*/
#define FILE_DEVICE_RASACD 0xf1

View file

@ -0,0 +1,8 @@
; RAS Automatic Connection Driver - ReactOS Operating System
LIBRARY RASACD.SYS
EXPORTS
; EOF

View file

@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="rasacd" type="kernelmodedriver" installbase="system32/drivers" installname="rasacd.sys">
<importlibrary definition="rasacd.def"></importlibrary>
<include base="rasacd">include</include>
<library>ntoskrnl</library>
<library>hal</library>
<directory name="include">
<pch>acdapi.h</pch>
</directory>
<directory name="acd">
<file>main.c</file>
</directory>
<file>rasacd.rc</file>
</module>

View file

@ -0,0 +1,7 @@
/* $Id: ndis.rc 21293 2006-03-11 23:55:37Z jimtabor $ */
#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "NDIS Library\0"
#define REACTOS_STR_INTERNAL_NAME "ndis\0"
#define REACTOS_STR_ORIGINAL_FILENAME "ndis.sys\0"
#include <reactos/version.rc>