[CLT2012]
[reactos.git] / drivers / network / acd / acd / main.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS RAS Automatic Connection Driver
4 * FILE: acd/main.c
5 * PURPOSE: Driver entry point
6 * PROGRAMMERS: Dmitry Chapyshev(dmitry@reactos.org)
7 * REVISIONS:
8 * 25/05/2008 Created
9 */
10
11 #include <ndis.h>
12 #include <tdi.h>
13 #include <debug.h>
14
15 #include "acdapi.h"
16
17 NTSTATUS
18 DriverEntry(PDRIVER_OBJECT pDriverObject,
19 PUNICODE_STRING pRegistryPath)
20 {
21 UNICODE_STRING DeviceName;
22 PDEVICE_OBJECT pDeviceObject;
23 NTSTATUS Status;
24
25 RtlInitUnicodeString(&DeviceName, L"RasAcd");
26
27 Status = IoCreateDevice(pDriverObject,
28 0,
29 &DeviceName,
30 FILE_DEVICE_RASACD,
31 0,
32 FALSE,
33 &pDeviceObject);
34
35 if (!NT_SUCCESS(Status))
36 {
37 DPRINT1("IoCreateDevice() failed (Status %lx)\n", Status);
38 return Status;
39 }
40
41 return STATUS_SUCCESS;
42 }
43
44 /* EOF */
45