Debugging Tools for Windows

GetCurrentSystemUpTime

The GetCurrentSystemUpTime method returns the number of seconds the current target's computer has been running since it was last started.

HRESULT
  IDebugControl2::GetCurrentSystemUpTime(
    OUT PULONG  UpTime
    );

Parameters

UpTime
Receives the number of seconds the computer has been running, or 0 if the engine is unable to determine the running time.

Return Value

S_OK
The value of the variable UpTime is either the desired information or is 0.

This method may also return error values. See Return Values for more details.

Interface Version

GetCurrentSystemUpTime is available in IDebugControl2 and later versions.

Comments

For more information, see Target Information.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

See Also

GetCurrentTimeDate

Build machine: CAPEBUILD