Re: Display _FileTime
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 5 May 2008 15:51:15 +0200
"battles" <battles@xxxxxxxxxxxxxx> wrote in message
news:f7c0ad58-fabb-4dad-bbe1-d1a3823bf159@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Can someone tell me how to display in a string the filetime below?
Thanks.
lpCreationTime, lpExitTime, lpKernelTime, lpUserTime : FileTime;
GetProcessTimes(hProcess, lpCreationTime,
lpExitTime, lpKernelTime, lpUserTime);
Memo3.Lines.Add(((lpCreationTime))); <---
conflicted
The mentioned FileTime is a WinAPI struct (record), which obviously
is not a string.
Is there anything particularly hard about coming up with the idea to
_make_ it into a string?
Look up GetProcessTimes in the MSDN Library. You can click straight
to FILETIME Structure, which mentions the FileTimeToSystemTime
function. This gives you a SYSTEMTIME structure, to which you can
once again click through, and from there your problems should be
over.
I'll admit it's not as simple as 'type GetProcessTimes, press F1,
read help'... but the difference isn't much, and you'd do well to
get used to looking things up in the MSDN Library.
Groetjes,
Maarten Wiltink
.
- Follow-Ups:
- Re: Display _FileTime
- From: battles
- Re: Display _FileTime
- References:
- Display _FileTime
- From: battles
- Display _FileTime
- Prev by Date: Re: FAQ: comp.lang.pascal.delphi.misc miniFAQ (full version)
- Next by Date: GetWinFileName
- Previous by thread: Display _FileTime
- Next by thread: Re: Display _FileTime
- Index(es):
Relevant Pages
|