ReactOS 0.4.15-dev-8241-g63935f8
main.c File Reference
#include "ndissys.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

VOID NTAPI MainUnload (PDRIVER_OBJECT DriverObject)
 
NTSTATUS NTAPI DriverEntry (PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
 
VOID _cdecl NdisWriteErrorLogEntry (IN NDIS_HANDLE NdisAdapterHandle, IN NDIS_ERROR_CODE ErrorCode, IN ULONG NumberOfErrorValues,...)
 
NDIS_STATUS EXPORT NdisWriteEventLogEntry (IN PVOID LogHandle, IN NDIS_STATUS EventCode, IN ULONG UniqueEventValue, IN USHORT NumStrings, IN PVOID StringsList OPTIONAL, IN ULONG DataSize, IN PVOID Data OPTIONAL)
 

Variables

LONG CancelId
 

Function Documentation

◆ DriverEntry()

NTSTATUS NTAPI DriverEntry ( PDRIVER_OBJECT  DriverObject,
PUNICODE_STRING  RegistryPath 
)

Definition at line 40 of file main.c.

51{
52 NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
53
56
59
62
63 DriverObject->DriverUnload = MainUnload;
64
65 CancelId = 0;
66
67 return STATUS_SUCCESS;
68}
#define MAX_TRACE
Definition: debug.h:16
#define NDIS_DbgPrint(_t_, _x_)
Definition: debug.h:40
LIST_ENTRY AdapterListHead
Definition: miniport.c:57
LIST_ENTRY MiniportListHead
Definition: miniport.c:53
KSPIN_LOCK AdapterListLock
Definition: miniport.c:58
KSPIN_LOCK MiniportListLock
Definition: miniport.c:54
LIST_ENTRY ProtocolListHead
Definition: protocol.c:19
KSPIN_LOCK ProtocolListLock
Definition: protocol.c:20
LONG CancelId
Definition: main.c:23
VOID NTAPI MainUnload(PDRIVER_OBJECT DriverObject)
Definition: main.c:26
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944
#define KeInitializeSpinLock(sl)
Definition: env_spec_w32.h:604
#define STATUS_SUCCESS
Definition: shellext.h:65
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213

◆ MainUnload()

VOID NTAPI MainUnload ( PDRIVER_OBJECT  DriverObject)

Definition at line 26 of file main.c.

33{
34 NDIS_DbgPrint(MAX_TRACE, ("Leaving.\n"));
35}

Referenced by DriverEntry().

◆ NdisWriteErrorLogEntry()

VOID _cdecl NdisWriteErrorLogEntry ( IN NDIS_HANDLE  NdisAdapterHandle,
IN NDIS_ERROR_CODE  ErrorCode,
IN ULONG  NumberOfErrorValues,
  ... 
)

Definition at line 76 of file main.c.

93{
94 NDIS_DbgPrint(MIN_TRACE, ("ERROR: ErrorCode 0x%x\n", ErrorCode));
95 /* ASSERT(0); */
96}
#define MIN_TRACE
Definition: debug.h:14
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436

Referenced by DcHandleSystemError(), DcHandleTxJabberTimeout(), DcReadEeprom(), and DcSetupAdapter().

◆ NdisWriteEventLogEntry()

NDIS_STATUS EXPORT NdisWriteEventLogEntry ( IN PVOID  LogHandle,
IN NDIS_STATUS  EventCode,
IN ULONG  UniqueEventValue,
IN USHORT  NumStrings,
IN PVOID StringsList  OPTIONAL,
IN ULONG  DataSize,
IN PVOID Data  OPTIONAL 
)

Definition at line 104 of file main.c.

126{
127 /*
128 * just returning true until we have an event log
129 */
130 NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
131 return NDIS_STATUS_SUCCESS;
132}
#define NDIS_STATUS_SUCCESS
Definition: ndis.h:346

Variable Documentation

◆ CancelId