ReactOS 0.4.15-dev-8127-g6338913
netsh.h
Go to the documentation of this file.
1#ifndef _NETSH_H_
2#define _NETSH_H_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef
11 _In_ DWORD dwMsgID,
13 _In_ DWORD nBufferMax);
14
15typedef
18 _In_ DWORD dwNetshVersion,
19 _Out_ PVOID pReserved);
20
21typedef
24 _In_ const GUID *pguidParent,
25 _In_ DWORD dwVersion);
26
27typedef
31
32typedef
35 _In_ DWORD dwAction);
36
37typedef
40 _In_ LPCWSTR pwszMachine);
41
42typedef
45 _In_ LPCWSTR pwszRouter,
46 _In_ LPWSTR *ppwcArguments,
47 _In_ DWORD dwArgCount,
49
50typedef
53 _In_ UINT CIMOSType,
54 _In_ UINT CIMOSProductSuite,
55 _In_ LPCWSTR CIMOSVersion,
56 _In_ LPCWSTR CIMOSBuildNumber,
57 _In_ LPCWSTR CIMServicePackMajorVersion,
58 _In_ LPCWSTR CIMServicePackMinorVersion,
59 _In_ UINT uiReserved,
61
62typedef
65 _In_ LPCWSTR pwszMachine,
66 _In_ LPWSTR *ppwcArguments,
67 _In_ DWORD dwCurrentIndex,
68 _In_ DWORD dwArgCount,
71 _Out_ BOOL *pbDone);
72
73
74typedef struct _CMD_ENTRY
75{
83
84typedef struct _CMD_GROUP_ENTRY
85{
93
95{
96 union
97 {
98 struct
99 {
102 };
104 };
109
111{
112 union
113 {
114 struct
115 {
118 };
120 };
135
136typedef struct _TAG_TYPE
137{
142
143typedef struct _TOKEN_VALUE
144{
148
149DWORD
150WINAPI
153 _In_ LPCWSTR pwcArg,
154 _In_ DWORD dwNumArg,
155 _In_ const TOKEN_VALUE *pEnumTable,
156 _Out_ PDWORD pdwValue);
157
158BOOL
159WINAPI
161 _In_ LPCWSTR pwszUserToken,
162 _In_ LPCWSTR pwszCmdToken);
163
164DWORD
165WINAPI
168 _Inout_ LPWSTR *ppwcArguments,
169 _In_ DWORD dwCurrentIndex,
170 _In_ DWORD dwArgCount,
171 _Inout_ PTAG_TYPE pttTags,
172 _In_ DWORD dwTagCount,
173 _In_ DWORD dwMinArgs,
174 _In_ DWORD dwMaxArgs,
175 _Out_ DWORD *pdwTagType);
176
177DWORD
178CDECL
181 _In_ DWORD dwErrId,
182 ...);
183
184DWORD
185CDECL
188 _In_ DWORD dwMsgId,
189 ...);
190
191DWORD
192CDECL
194 _In_ LPCWSTR pwszMessage,
195 ...);
196
197DWORD
198WINAPI
200 _In_ const NS_CONTEXT_ATTRIBUTES *pChildContext);
201
202DWORD
203WINAPI
205 _In_ const GUID *pguidParentContext,
206 _In_ const NS_HELPER_ATTRIBUTES *pfnRegisterSubContext);
207
208#ifdef __cplusplus
209}
210#endif
211
212#endif /* _NETSH_H_ */
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
HMODULE hModule
Definition: animate.c:44
#define CDECL
Definition: compat.h:29
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define _Inout_
Definition: ms_sal.h:378
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95
unsigned int UINT
Definition: ndis.h:50
DWORD(WINAPI * PFN_HANDLE_CMD)(_In_ LPCWSTR pwszMachine, _In_ LPWSTR *ppwcArguments, _In_ DWORD dwCurrentIndex, _In_ DWORD dwArgCount, _In_ DWORD dwFlags, _In_ LPCVOID pvData, _Out_ BOOL *pbDone)
Definition: netsh.h:64
struct _TAG_TYPE TAG_TYPE
DWORD(WINAPI * PGET_RESOURCE_STRING_FN)(_In_ DWORD dwMsgID, _Out_ LPWSTR lpBuffer, _In_ DWORD nBufferMax)
Definition: netsh.h:10
struct _NS_HELPER_ATTRIBUTES NS_HELPER_ATTRIBUTES
DWORD WINAPI MatchEnumTag(_In_ HANDLE hModule, _In_ LPCWSTR pwcArg, _In_ DWORD dwNumArg, _In_ const TOKEN_VALUE *pEnumTable, _Out_ PDWORD pdwValue)
Definition: netsh.c:197
struct _TOKEN_VALUE TOKEN_VALUE
struct _CMD_GROUP_ENTRY * PCMD_GROUP_ENTRY
DWORD CDECL PrintMessage(_In_ LPCWSTR pwszMessage,...)
Definition: netsh.c:242
DWORD CDECL PrintError(_In_opt_ HANDLE hModule, _In_ DWORD dwErrId,...)
Definition: netsh.c:220
DWORD(WINAPI * PNS_HELPER_STOP_FN)(_In_ DWORD dwReserved)
Definition: netsh.h:29
DWORD WINAPI RegisterContext(_In_ const NS_CONTEXT_ATTRIBUTES *pChildContext)
Definition: context.c:326
DWORD(WINAPI * PNS_CONTEXT_DUMP_FN)(_In_ LPCWSTR pwszRouter, _In_ LPWSTR *ppwcArguments, _In_ DWORD dwArgCount, _In_ LPCVOID pvData)
Definition: netsh.h:44
struct _TAG_TYPE * PTAG_TYPE
struct _TOKEN_VALUE * PTOKEN_VALUE
struct _NS_HELPER_ATTRIBUTES * PNS_HELPER_ATTRIBUTES
struct _CMD_GROUP_ENTRY CMD_GROUP_ENTRY
DWORD WINAPI PreprocessCommand(_In_ HANDLE hModule, _Inout_ LPWSTR *ppwcArguments, _In_ DWORD dwCurrentIndex, _In_ DWORD dwArgCount, _Inout_ PTAG_TYPE pttTags, _In_ DWORD dwTagCount, _In_ DWORD dwMinArgs, _In_ DWORD dwMaxArgs, _Out_ DWORD *pdwTagType)
DWORD(WINAPI * PNS_DLL_INIT_FN)(_In_ DWORD dwNetshVersion, _Out_ PVOID pReserved)
Definition: netsh.h:17
BOOL WINAPI MatchToken(_In_ LPCWSTR pwszUserToken, _In_ LPCWSTR pwszCmdToken)
Definition: netsh.c:210
DWORD WINAPI RegisterHelper(_In_ const GUID *pguidParentContext, _In_ const NS_HELPER_ATTRIBUTES *pfnRegisterSubContext)
Definition: helper.c:358
DWORD(WINAPI * PNS_HELPER_START_FN)(_In_ const GUID *pguidParent, _In_ DWORD dwVersion)
Definition: netsh.h:23
BOOL(WINAPI * PNS_OSVERSIONCHECK)(_In_ UINT CIMOSType, _In_ UINT CIMOSProductSuite, _In_ LPCWSTR CIMOSVersion, _In_ LPCWSTR CIMOSBuildNumber, _In_ LPCWSTR CIMServicePackMajorVersion, _In_ LPCWSTR CIMServicePackMinorVersion, _In_ UINT uiReserved, _In_ DWORD dwReserved)
Definition: netsh.h:52
DWORD(WINAPI * PNS_CONTEXT_CONNECT_FN)(_In_ LPCWSTR pwszMachine)
Definition: netsh.h:39
DWORD(WINAPI * PNS_CONTEXT_COMMIT_FN)(_In_ DWORD dwAction)
Definition: netsh.h:34
struct _NS_CONTEXT_ATTRIBUTES NS_CONTEXT_ATTRIBUTES
struct _CMD_ENTRY CMD_ENTRY
DWORD CDECL PrintMessageFromModule(_In_ HANDLE hModule, _In_ DWORD dwMsgId,...)
Definition: netsh.c:231
struct _NS_CONTEXT_ATTRIBUTES * PNS_CONTEXT_ATTRIBUTES
struct _CMD_ENTRY * PCMD_ENTRY
#define BOOL
Definition: nt_native.h:43
#define DWORD
Definition: nt_native.h:44
DWORD * PDWORD
Definition: pedump.c:68
Definition: netsh.h:75
PFN_HANDLE_CMD pfnCmdHandler
Definition: netsh.h:77
DWORD dwCmdHlpToken
Definition: netsh.h:79
LPCWSTR pwszCmdToken
Definition: netsh.h:76
DWORD dwFlags
Definition: netsh.h:80
PNS_OSVERSIONCHECK pOsVersionCheck
Definition: netsh.h:81
DWORD dwShortCmdHelpToken
Definition: netsh.h:78
Definition: netsh.h:85
PNS_OSVERSIONCHECK pOsVersionCheck
Definition: netsh.h:91
LPCWSTR pwszCmdGroupToken
Definition: netsh.h:86
ULONG ulCmdGroupSize
Definition: netsh.h:88
DWORD dwFlags
Definition: netsh.h:89
PCMD_ENTRY pCmdGroup
Definition: netsh.h:90
DWORD dwShortCmdHelpToken
Definition: netsh.h:87
ULONGLONG _ullAlign
Definition: netsh.h:119
CMD_ENTRY * pTopCmds
Definition: netsh.h:126
CMD_GROUP_ENTRY * pCmdGroups
Definition: netsh.h:128
PNS_OSVERSIONCHECK pfnOsVersionCheck
Definition: netsh.h:133
PNS_CONTEXT_DUMP_FN pfnDumpFn
Definition: netsh.h:130
PNS_CONTEXT_CONNECT_FN pfnConnectFn
Definition: netsh.h:131
PNS_CONTEXT_COMMIT_FN pfnCommitFn
Definition: netsh.h:129
PNS_HELPER_STOP_FN pfnStop
Definition: netsh.h:107
ULONGLONG _ullAlign
Definition: netsh.h:103
PNS_HELPER_START_FN pfnStart
Definition: netsh.h:106
DWORD dwRequired
Definition: netsh.h:139
BOOL bPresent
Definition: netsh.h:140
LPCWSTR pwszTag
Definition: netsh.h:138
DWORD dwValue
Definition: netsh.h:146
LPCWSTR pwszToken
Definition: netsh.h:145
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
_In_ ULONG _In_opt_ PVOID pvData
Definition: winddi.h:3749
CONST void * LPCVOID
Definition: windef.h:191
#define WINAPI
Definition: msvc.h:6
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185