This method is used to get an interface to global names previously registered by the RegisterGlobalName() method.
HRESULT GetGlobalName(
[in] BSTR Name,
[out, retval] VARIANT* pVal);
Parameters:
Name – The requested object name. By default, no reference count is added to the object. If you want to increase the reference count add "++" at the end of the object name, e.g., "MyObject++"
pVal – An interface pointer to the object.
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. |