mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
1.6 KiB
101 lines
1.6 KiB
/*++
|
|
|
|
Copyright (c) 1998 Microsoft Corporation
|
|
|
|
Module Name:
|
|
net\routing\netsh\ip\ifmon.h
|
|
|
|
Abstract:
|
|
|
|
Prototype for fns called in ipmon.c
|
|
|
|
Author:
|
|
|
|
Anand Mahalingam 7/10/98
|
|
|
|
--*/
|
|
|
|
|
|
#ifndef _IFMON_H_
|
|
#define _IFMON_H_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
extern HANDLE g_hModule;
|
|
extern HANDLE g_hMprConfig;
|
|
extern HANDLE g_hMprAdmin;
|
|
extern HANDLE g_hMIBServer;
|
|
extern BOOL g_bCommit;
|
|
extern DWORD g_dwNumTableEntries;
|
|
extern PWCHAR g_pwszRouter;
|
|
extern BOOL g_bIfDirty;
|
|
|
|
//
|
|
// Api's that ifmon requires of its helpers
|
|
//
|
|
typedef
|
|
DWORD
|
|
(WINAPI IF_CONTEXT_ENTRY_FN)(
|
|
IN PWCHAR pwszMachineName,
|
|
IN PTCHAR *pptcArguments,
|
|
IN DWORD dwArgCount,
|
|
IN DWORD dwFlags,
|
|
IN MIB_SERVER_HANDLE hMibServer,
|
|
OUT PWCHAR pwcNewContext
|
|
);
|
|
typedef IF_CONTEXT_ENTRY_FN *PIF_CONTEXT_ENTRY_FN;
|
|
|
|
extern GUID g_IfGuid;
|
|
|
|
DWORD
|
|
ShowMIB(
|
|
MIB_SERVER_HANDLE hMIBServer,
|
|
PTCHAR *pptcArguments,
|
|
DWORD dwArgCount
|
|
);
|
|
|
|
NS_CONTEXT_COMMIT_FN IfCommit;
|
|
NS_CONTEXT_DUMP_FN IfDump;
|
|
|
|
DWORD
|
|
ConnectToRouter(
|
|
IN LPCWSTR pwszRouter
|
|
);
|
|
|
|
BOOL
|
|
WINAPI
|
|
IfDllEntry(
|
|
HINSTANCE hInstDll,
|
|
DWORD fdwReason,
|
|
LPVOID pReserved
|
|
);
|
|
|
|
DWORD
|
|
WINAPI
|
|
IfUnInit(
|
|
IN DWORD dwReserved
|
|
);
|
|
|
|
#define GetIfNameFromFriendlyName(x,y,z) \
|
|
NsGetIfNameFromFriendlyName(g_hMprConfig,x,y,z)
|
|
#define GetFriendlyNameFromIfName(x,y,z) \
|
|
NsGetFriendlyNameFromIfName(g_hMprConfig,x,y,z)
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // _IFMON_H_
|
|
|
|
|
|
|
|
|