ReactOS  0.4.14-dev-384-g5b37caa
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 
64 
65  CancelId = 0;
66 
67  return STATUS_SUCCESS;
68 }
LIST_ENTRY MiniportListHead
Definition: miniport.c:53
LIST_ENTRY ProtocolListHead
Definition: protocol.c:19
LONG CancelId
Definition: main.c:23
FORCEINLINE VOID KeInitializeSpinLock(_Out_ PKSPIN_LOCK SpinLock)
Definition: kefuncs.h:251
static PDRIVER_OBJECT DriverObject
Definition: template.c:42
LIST_ENTRY AdapterListHead
Definition: miniport.c:57
PDRIVER_UNLOAD DriverUnload
Definition: iotypes.h:2180
VOID NTAPI MainUnload(PDRIVER_OBJECT DriverObject)
Definition: main.c:26
KSPIN_LOCK AdapterListLock
Definition: miniport.c:58
#define MAX_TRACE
Definition: debug.h:16
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944
KSPIN_LOCK MiniportListLock
Definition: miniport.c:54
#define NDIS_DbgPrint(_t_, _x_)
Definition: debug.h:40
KSPIN_LOCK ProtocolListLock
Definition: protocol.c:20
return STATUS_SUCCESS
Definition: btrfs.c:2938

◆ MainUnload()

VOID NTAPI MainUnload ( PDRIVER_OBJECT  DriverObject)

Definition at line 26 of file main.c.

33 {
34  NDIS_DbgPrint(MAX_TRACE, ("Leaving.\n"));
35 }
#define MAX_TRACE
Definition: debug.h:16
#define NDIS_DbgPrint(_t_, _x_)
Definition: debug.h:40

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 }
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define NDIS_DbgPrint(_t_, _x_)
Definition: debug.h:40
#define MIN_TRACE
Definition: debug.h:14

◆ 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
#define MAX_TRACE
Definition: debug.h:16
#define NDIS_DbgPrint(_t_, _x_)
Definition: debug.h:40

Variable Documentation

◆ CancelId

LONG CancelId

Definition at line 23 of file main.c.

Referenced by DriverEntry(), NdisCancelSendPackets(), and NdisSetPacketCancelId().