IRunningObjectTable 介面

定義

提供 IRunningObjectTable 介面的 Managed 定義。Provides the managed definition of the IRunningObjectTable interface.

public interface class IRunningObjectTable
[System.Runtime.InteropServices.Guid("00000010-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IRunningObjectTable
type IRunningObjectTable = interface
Public Interface IRunningObjectTable
屬性

備註

您可以藉由呼叫 COM GetRunningObjectTable函數,抓取執行中物件資料表的介面。You can retrieve an interface to the running object table by calling the COM GetRunningObjectTable function.

如需詳細資訊,請參閱 MSDN library 中的 COM IRunningObjectTable介面檔。For more information, see the documentation for the COM IRunningObjectTable interface in the MSDN library.

當原生程式碼中的 COM 方法傳回 HRESULT 時,common language runtime 會擲回例外狀況。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 如需詳細資訊,請參閱 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

方法

EnumRunning(IEnumMoniker)

列舉目前登錄為執行中的物件。Enumerates the objects currently registered as running.

GetObject(IMoniker, Object)

如果提供的物件名稱已登錄為執行中,傳回這個已登錄物件。Returns the registered object if the supplied object name is registered as running.

GetTimeOfLastChange(IMoniker, FILETIME)

在執行物件表格 (ROT) 中搜尋這個 Moniker,並報告變更的記錄時間 (如果有的話)。Searches for this moniker in the Running Object Table (ROT) and reports the recorded time of change, if present.

IsRunning(IMoniker)

決定指定的 Moniker 目前是否已在執行物件表格 (ROT) 中登錄。Determines whether the specified moniker is currently registered in the Running Object Table (ROT).

NoteChangeTime(Int32, FILETIME)

注意特定物件變更的時間,讓 IMoniker::GetTimeOfLastChange 可以報告正確的變更時間。Notes the time that a particular object changed so IMoniker::GetTimeOfLastChange can report an appropriate change time.

Register(Int32, Object, IMoniker)

登錄所提供物件已進入執行狀態。Registers that the supplied object has entered the running state.

Revoke(Int32)

從執行物件表格 (ROT) 中移除指定物件的登錄。Unregisters the specified object from the Running Object Table (ROT).

適用於