NS_DLL_STOP_FN callback function (netsh.h)

The NS_DLL_STOP_FN command is the DLL stop function for helper DLLs. The DLL stop function provides an opportunity for helper DLLs to release any resources before being unloaded, and is registered in the RegisterContext function. The following is an example of a DLL stop function. Be aware that SampleStop is a placeholder for the application-defined function name.

Syntax

NS_DLL_STOP_FN NsDllStopFn;

DWORD NsDllStopFn(
  [in] DWORD dwReserved
)
{...}

Parameters

[in] dwReserved

Reserved.

Return value

Returns NO_ERROR upon success. Any other return value indicates an error.

Remarks

The DLL stop function is called once for each helper DLL being unloaded.

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

See also

NS_HELPER_ATTRIBUTES

NS_HELPER_START_FN

NS_HELPER_STOP_FN

RegisterContext