MgmDeRegisterMProtocol function (mgm.h)

The MgmDeRegisterMProtocol function deregisters a client handle obtained from a call to MgmRegisterMProtocol.

Syntax

DWORD MgmDeRegisterMProtocol(
  [in] HANDLE hProtocol
);

Parameters

[in] hProtocol

Handle to the protocol obtained from a previous call to MgmRegisterMProtocol.

Return value

If the function succeeds, the return value is NO_ERROR.

If the function fails, the return value is one of the following error codes.

Value Meaning
ERROR_CAN_NOT_COMPLETE
Could not complete the call to this function. The client did not first release the interfaces it owns.
ERROR_INVALID_PARAMETER
Invalid handle to a client.
 
 

Remarks

A multicast routing protocol must not call this function until it has released ownership of all the interfaces the protocol owns by calling MgmReleaseInterfaceOwnership.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mgm.h
Library Rtm.lib
DLL Rtm.dll

See also

MgmRegisterMProtocol

MgmReleaseInterfaceOwnership