ReactOS 0.4.16-dev-1946-g52006dd
ifmon.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS IF Monitor DLL
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: NetSh Helper main functions
5 * COPYRIGHT: Copyright 2025 Eric Kohl <eric.kohl@reactos.org>
6 */
7
8#include "precomp.h"
9
10#define NDEBUG
11#include <debug.h>
12
13#include "guid.h"
14#include "resource.h"
15
17
21 _In_ DWORD dwNetshVersion,
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}
34
35
38 _In_ HINSTANCE hinstDLL,
41{
42 switch (dwReason)
43 {
45 hDllInstance = hinstDLL;
47 break;
48 }
49
50 return TRUE;
51}
DWORD dwReason
Definition: misc.cpp:135
#define ERROR_SUCCESS
Definition: deptool.c:10
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
DWORD WINAPI RegisterInterfaceHelper(VOID)
Definition: interface.c:110
DWORD WINAPI RegisterIpHelper(VOID)
Definition: ip.c:476
DWORD WINAPI RegisterWinsockHelper(VOID)
Definition: winsock.c:104
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI DllMain(_In_ HINSTANCE hinstDLL, _In_ DWORD dwReason, _In_ LPVOID lpvReserved)
Definition: ifmon.c:37
DWORD WINAPI InitHelperDll(_In_ DWORD dwNetshVersion, _Out_ PVOID pReserved)
Definition: ifmon.c:20
HINSTANCE hDllInstance
Definition: ifmon.c:16
static IN DWORD IN LPVOID lpvReserved
_Out_ PVOID pReserved
Definition: netsh.h:77
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define WINAPI
Definition: msvc.h:6