共用方式為


ISnapshotManager3

表示用戶端所控制之快照集物件。 介面提供啟用、停用和擷取快照集的函式。

Syntax

[id(1), helpstring("EnablePeriodicSnapshot")] HRESULT EnablePeriodicSnapshot([in] SnapshotType snapshotType, [in] ULONG interval, [in] ULONG* pids, [in] ULONG cPids);
[id(2), helpstring("DisablePeriodicSnapshot")] HRESULT DisablePeriodicSnapshot([in] SnapshotType snapshotType);
[id(3), helpstring("SnapshotOnDemand")] HRESULT SnapshotOnDemand([in] SnapshotType snapshotType, [in] ULONG* pids, [in] ULONG cPids);
[id(4), helpstring("VerifySnapshotSupported")] HRESULT VerifySnapshotSupported([in] TRACEHANDLE traceHandle, [in, out] ULONG* frequencyInSeconds, [in, out] ULONG* cProviders);
[id(5), helpstring("ConfigSnapshotByPID")] HRESULT ConfigSnapshotByPID([in] ULONG* pids, [in] ULONG cPids, [in] VARIANT_BOOL fEnable);
[id(6), helpstring("ConfigSnapshotByProcess")] HRESULT ConfigSnapshotByProcess([in] BSTR bstrProcName, [in] VARIANT_BOOL fEnable);
[id(7), helpstring("ConfigSnapshotByPIDEx")] HRESULT ConfigSnapshotByPIDEx([in] SnapshotType snapshotType, [in] ULONG* pids, [in, out] HRESULT* pResults, [in] ULONG cPids, [in] VARIANT_BOOL fEnable);
[id(8), helpstring("ConfigSnapshotByProcessEx")] HRESULT ConfigSnapshotByProcessEx([in] SnapshotType snapshotType, [in] BSTR bstrProcName, [in] VARIANT_BOOL fEnable);

函式

下表描述這個介面所提供的函式。

函式 描述
ConfigSnapshotByPID 使用所提供的進程識別碼來設定快照集。
ConfigSnapshotByPIDEx 使用所提供的進程識別碼來設定快照集。
ConfigSnapshotByProcess 使用所提供的進程名稱來設定快照集。
ConfigSnapshotByProcessEx 使用所提供的進程名稱來設定快照集。
DisablePeriodicSnapshot 停用定期快照集。
EnablePeriodicSnapshot 啟用具有指定間隔的定期快照集。
SnapshotOnDemand 擷取快照集類型的快照集,並匯出至追蹤緩衝區。
VerifySnapshotSupported 查詢定期擷取狀態限制。

備註

大部分的函式都需要系統管理員許可權。