IDebugControl2::GetCurrentTimeDate method

The GetCurrentTimeDate method returns the time of the current target.

Syntax


HRESULT GetCurrentTimeDate(
  [out] PULONG TimeDate
);

Parameters

TimeDate [out]

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

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

Return codeDescription
S_OK

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

 

Remarks

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

Target platform

Desktop

Header

Dbgeng.h (include Dbgeng.h)

See also

IDebugControl2
IDebugControl3
GetCurrentSystemUpTime

 

 

Send comments about this topic to Microsoft

Show: