RegisterContext function (netsh.h)
The RegisterContext function registers a helper context with NetShell. The RegisterContext function should be called from the NS_HELPER_START_FN entry point (the start function) passed to the RegisterHelper function in the pfnStart member of the NS_CONTEXT_ATTRIBUTES structure passed in its pChildAttributes parameter.
Syntax
DWORD RegisterContext(
[in] const NS_CONTEXT_ATTRIBUTES *pChildContext
);
Parameters
[in] pChildContext
Attributes of the context to register.
Return value
None
Remarks
For top-level helpers, the RegisterContext parameter passed during the course of its initialization function is a pointer to the RegisterContext function. The pointer should be cast to type NS_REGISTER_CONTEXT before use.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | netsh.h |
Library | Netsh.lib |
DLL | Netsh.exe |