UnregisterName

This method is used to unregister names or global names previously registered by RegiterName() or RegisterGlobalName() methods.

 

Note: when an object is registered its reference count is increased by one. When the object is unregistered, its reference count is decreased by one.

 

HRESULT UnregisterName(

[in] BSTR Name)

Parameters:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

E_FAIL

Catastrophic failure.

E_INVALIDARG

This can happen if the client is trying to unregister a name that was never registered.