Microsoft SDK for Java

GetTimeOfLastChange

This method of the IMoniker interface provides a number representing the time the object identified by this moniker was last changed. To be precise, the time returned is the earliest time COM can identify after which no change has occurred, so this time may be later than the time of the last change to the object.

Syntax

public long GetTimeOfLastChange(IBindCtx pbc, IMoniker pmkToLeft);

Return Values

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

S_OK -- The method successfully returned a time.

MK_E_EXCEEDEDDEADLINE -- The binding 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 for this object, possibly because a network device could not be connected to.

MK_E_UNAVAILABLE -- The time of the change is unavailable, and will not be available no matter what deadline is used.

Parameters

[in] pbc Pointer to the bind context to be used in 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.

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