ReactOS 0.4.16-dev-1946-g52006dd
ifmon.c File Reference
#include "precomp.h"
#include <debug.h>
#include "guid.h"
#include "resource.h"
Include dependency graph for ifmon.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

DWORD WINAPI InitHelperDll (_In_ DWORD dwNetshVersion, _Out_ PVOID pReserved)
 
BOOL WINAPI DllMain (_In_ HINSTANCE hinstDLL, _In_ DWORD dwReason, _In_ LPVOID lpvReserved)
 

Variables

HINSTANCE hDllInstance
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 10 of file ifmon.c.

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( _In_ HINSTANCE  hinstDLL,
_In_ DWORD  dwReason,
_In_ LPVOID  lpvReserved 
)

Definition at line 37 of file ifmon.c.

41{
42 switch (dwReason)
43 {
45 hDllInstance = hinstDLL;
47 break;
48 }
49
50 return TRUE;
51}
DWORD dwReason
Definition: misc.cpp:135
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
HINSTANCE hDllInstance
Definition: ifmon.c:16

◆ InitHelperDll()

DWORD WINAPI InitHelperDll ( _In_ DWORD  dwNetshVersion,
_Out_ PVOID  pReserved 
)

Definition at line 20 of file ifmon.c.

23{
24 DWORD dwError;
25
26 dwError = RegisterInterfaceHelper();
27 if (dwError == ERROR_SUCCESS)
28 dwError = RegisterIpHelper();
29 if (dwError == ERROR_SUCCESS)
30 dwError = RegisterWinsockHelper();
31
32 return dwError;
33}
#define ERROR_SUCCESS
Definition: deptool.c:10
DWORD WINAPI RegisterInterfaceHelper(VOID)
Definition: interface.c:110
DWORD WINAPI RegisterIpHelper(VOID)
Definition: ip.c:476
DWORD WINAPI RegisterWinsockHelper(VOID)
Definition: winsock.c:104
unsigned long DWORD
Definition: ntddk_ex.h:95

Variable Documentation

◆ hDllInstance

HINSTANCE hDllInstance

Definition at line 16 of file ifmon.c.

Referenced by DllMain().