Initial revision
[reactos.git] / reactos / drivers / net / ndis / ndis / main.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS NDIS library
4 * FILE: ndis/main.c
5 * PURPOSE: Driver entry point
6 * PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
7 * REVISIONS:
8 * CSH 01/08-2000 Created
9 */
10 #include <ndissys.h>
11
12 #ifdef DBG
13 /* See debug.h for debug/trace constants */
14 DWORD DebugTraceLevel = MIN_TRACE;
15 #endif /* DBG */
16
17
18 VOID MainUnload(
19 PDRIVER_OBJECT DriverObject)
20 /*
21 * FUNCTION: Unloads the driver
22 * ARGUMENTS:
23 * DriverObject = Pointer to driver object created by the system
24 */
25 {
26 NDIS_DbgPrint(MAX_TRACE, ("Leaving.\n"));
27 }
28
29
30 NTSTATUS
31 #ifndef _MSC_VER
32 STDCALL
33 #endif
34 DriverEntry(
35 PDRIVER_OBJECT DriverObject,
36 PUNICODE_STRING RegistryPath)
37 /*
38 * FUNCTION: Main driver entry point
39 * ARGUMENTS:
40 * DriverObject = Pointer to a driver object for this driver
41 * RegistryPath = Registry node for configuration parameters
42 * RETURNS:
43 * Status of driver initialization
44 */
45 {
46 NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
47
48 #ifdef _MSC_VER
49 DriverObject->DriverUnload = MainUnload;
50 #else
51 DriverObject->DriverUnload = (PDRIVER_UNLOAD)MainUnload;
52 #endif
53
54 return STATUS_SUCCESS;
55 }
56
57 /* EOF */