Debugging Tools for Windows

GetCurrentTimeDate

The GetCurrentTimeDate method returns the time of the current target.

HRESULT
  IDebugControl2::GetCurrentTimeDate(
    OUT PULONG  TimeDate
    );

Parameters

TimeDate
Receives the time and date. This is the number of seconds since the beginning of 1970, or 0 if the current time could not be determined.

Return Value

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

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

Interface Version

GetCurrentTimeDate is available in IDebugControl2 and later versions.

Comments

For live debugging sessions, this will be the current time as reported by the target's computer. For static debugging sessions, such as crash dump files, this will be the time the crash dump file was created.

For more information, see Target Information.

Requirements

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

See Also

GetCurrentSystemUpTime

Build machine: CAPEBUILD