Microsoft SDK for Java

RegisterObjectParam

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.

Syntax

public void RegisterObjectParam(String pszKey, IUnknown punk);

Return Values

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.

Parameters

[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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.