Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmain.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS RAS Automatic Connection Driver 00004 * FILE: acd/main.c 00005 * PURPOSE: Driver entry point 00006 * PROGRAMMERS: Dmitry Chapyshev(dmitry@reactos.org) 00007 * REVISIONS: 00008 * 25/05/2008 Created 00009 */ 00010 00011 #include <ndis.h> 00012 #include <tdi.h> 00013 #include <debug.h> 00014 00015 #include "acdapi.h" 00016 00017 NTSTATUS 00018 DriverEntry(PDRIVER_OBJECT pDriverObject, 00019 PUNICODE_STRING pRegistryPath) 00020 { 00021 UNICODE_STRING DeviceName; 00022 PDEVICE_OBJECT pDeviceObject; 00023 NTSTATUS Status; 00024 00025 RtlInitUnicodeString(&DeviceName, L"RasAcd"); 00026 00027 Status = IoCreateDevice(pDriverObject, 00028 0, 00029 &DeviceName, 00030 FILE_DEVICE_RASACD, 00031 0, 00032 FALSE, 00033 &pDeviceObject); 00034 00035 if (!NT_SUCCESS(Status)) 00036 { 00037 DPRINT1("IoCreateDevice() failed (Status %lx)\n", Status); 00038 return Status; 00039 } 00040 00041 return STATUS_SUCCESS; 00042 } 00043 00044 /* EOF */ 00045 Generated on Sun May 27 2012 04:16:44 for ReactOS by
1.7.6.1
|