Microsoft SDK for Java

BindToStorage

This method of the IMoniker interface retrieves an interface pointer to the storage that contains the object identified by the moniker. Unlike the IMoniker.BindToObject method, this method does not activate the object identified by the moniker.

Syntax

public IUnknown BindToStorage(IBindCtx pbc, IMoniker pmkToLeft, _Guid riid);

Return Values

The method supports the standard return value E_OUTOFMEMORY, as well as the following:

S_OK -- The binding operation was successful.

MK_E_NOSTORAGE -- The object identified by this moniker does not have its own storage.

MK_E_EXCEEDEDDEADLINE -- The operation could not be completed within the time limit specified by the bind context's BIND_OPTS structure.

MK_E_CONNECTMANUALLY -- The operation was unable to connect to the storage, possibly because a network device could not be connected to.

MK_E_INTERMEDIATEINTERFACENOTSUPPORTED -- An intermediate object was found but it did not support an interface required for an operation.

STG_E_ACCESSDENIED -- Unable to access the storage object.

Parameters

[in] pbc Pointer to the IBindCtx interface on the bind context object to be used during this binding operation. The bind context caches objects bound during the binding process, contains parameters that apply to all operations using the bind context, and provides the means by which the moniker implementation should retrieve information about its environment.
[in] pmkToLeft If the moniker is part of a composite moniker, pointer to the moniker to the left of this moniker. This parameter is primarily used by moniker implementers to enable cooperation between the various components of a composite moniker. Moniker clients should pass NULL.
[in] riid Reference to the identifier of the storage interface requested.

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