NS_HELPER_STOP_FN callback function (netsh.h)
The NS_HELPER_STOP_FN command is the stop function for helpers. This function enables helper contexts to release any resources before being unloaded, and is registered in the RegisterContext function. The following is an example of a stop function. Be aware that SampleStopHelper is a placeholder for the application-defined function name.
Syntax
NS_HELPER_STOP_FN NsHelperStopFn;
DWORD NsHelperStopFn(
[in] DWORD dwReserved
)
{...}
Parameters
[in] dwReserved
Reserved.
Return value
Returns NO_ERROR upon success. Any other return value indicates an error.
Remarks
The stop function for helpers provides an opportunity for a helper context to release resources before being unloaded. This function is called once for each context for which the function is registered.
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 |