IDebugControl2::GetCurrentSystemUpTime 方法 (dbgeng.h)

GetCurrentSystemUpTime 方法會傳回自上次啟動后,目前目標計算機已執行的秒數。

語法

HRESULT GetCurrentSystemUpTime(
  [out] PULONG UpTime
);

參數

[out] UpTime

接收電腦執行中的秒數,如果引擎無法判斷運行時間,則為 0

傳回值

這個方法也可能傳回錯誤值。 如需詳細資訊,請參閱 傳回值

傳回碼 描述
S_OK
變數 UpTime 的值是所需的資訊或 為 0

備註

如需詳細資訊,請參閱 目標資訊

規格需求

需求
目標平台 桌面
標頭 dbgeng.h (包含 Dbgeng.h)

另請參閱

GetCurrentTimeDate

IDebugControl2

IDebugControl3