PDISCONNECT_CLIENT callback function (routprot.h)
The router manager calls the DisconnectClient function when a client disconnects from an interface on which the routing protocol is running.
The PDISCONNECT_CLIENT type defines a pointer to this callback function. DisconnectClient is a placeholder for the application-defined function name.
Syntax
PDISCONNECT_CLIENT PdisconnectClient;
DWORD PdisconnectClient(
[in] ULONG InterfaceIndex,
[in] PVOID ClientAddress
)
{...}
Parameters
[in] InterfaceIndex
Specifies the index of the interface on which the client is connecting.
[in] ClientAddress
Pointer to the address (for example, the IP address) of the connecting client.
Return value
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value should be one of the following error codes.
Value | Description |
---|---|
|
At least one of the following is true:
The InterfaceIndex parameter is invalid, for example, no interface exists with that index. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | routprot.h |