IGlobalInterfaceTable::RevokeInterfaceFromGlobal

[New for Windows NT 4.0 Service Pack 3.]

Revokes the registration of an interface in the global (process-wide) interface table.

HRESULT RevokeInterfaceFromGlobal(
  DWORD  dwCookie,  //Cookie that was returned from 
                    //RegisterInterfaceInGlobal
);
 

Parameters

dwCookie
[in] DWORD cookie identifying the interface whose global registration is to be revoked.

Return Values

S_OK
The operation was successful.
E_INVALIDARG
The parameter is invalid.

Remarks

Call this method when an interface registered in the global interface table object no longer needs to be accessed by other apartments in the same process. This method can be called by any apartment in the process, including apartments other than the one that call RegisterInterfaceInGlobal.

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in objidl.h.

See Also

IGlobalInterfaceTable::RegisterInterfaceInGlobal, IGlobalInterfaceTable::GetInterfaceFromGlobal