This method of the IBindCtx interface stores an IUnknown pointer on the specified object under the specified key in the bind context's string-keyed table of pointers. The method must call IUnknown::AddRef on the stored pointer.
public void RegisterObjectParam(String pszKey, IUnknown punk);
This method supports the standard return value E_OUTOFMEMORY, as well as the following:
S_OK -- The pointer was successfully registered under the specified string.
[in] pszKey | The pointer to a zero-terminated wide character string (two bytes per character) containing the key under which the object is being registered. Key string comparison is case-sensitive. |
[in] punk | The pointer to the IUnknown interface on the object that is to be registered. |