|
IRunningObjectTable::NoteChangeTime
Records the time that a running object was last modified. The object must have
previously been registered with the Running Object Table (ROT). This method
stores the time of last change in the ROT.
HRESULT NoteChangeTime(
DWORD dwRegister,
| //Value identifying registration being updated
| FILETIME *pfiletime
| //Time containing object's last change time
| );
|
|
Parameters
dwRegister
[in] Specifies a value identifying the ROT entry of the changed object. This
value was previously returned by IRunningObjectTable::Register.
pfiletime
[in] Points to a FILETIME structure containing the object's last change time.
Return Values
S_OK
Indicates that the change time was recorded successfully.
E_INVALIDARG
Indicates that dwRegister is not a valid ROT entry or pfiletime is an invalid pointer.
Comments
The time recorded by this method can be retrieved by calling IRunningObjectTable::GetTimeOfLastChange.
This method is provided to enable a program to check whether a connection
between two objects (represented by one object holding a moniker that identifies
the other) is up-to-date. For example, if one object is holding cached
information about the other object, this method can be used to check whether the object
has been modified since the cache was last updated. See IMoniker::GetTimeOfLastChange.
Notes to Callers
If you're a moniker provider (that is, you hand out monikers identifying your
objects to make them accessible to others), you must call the IRunningObjectTable::NoteChangeTime method whenever your objects are modified. You must have previously called IRunningObjectTable::Register and stored the identifier returned by that method; you use that identifier
when calling IRunningObjectTable::NoteChangeTime.
The most common type of moniker provider is a compound-document link source.
This includes server applications that support linking to their documents (or
portions of a document) and container applications that support linking to
embeddings within their documents. Server applications that do not support linking
can also use the ROT to cooperate with container applications that support
linking to embeddings.
When an object is first registered in the ROT, the ROT records its last change
time as the value returned by calling IMoniker::GetTimeOfLastChange on the moniker being registered.
See Also
IRunningObjectTable::GetTimeOfLastChange, IMoniker::GetTimeOfLastChange
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|