Re: Display _FileTime
- From: battles <battles@xxxxxxxxxxxxxx>
- Date: Tue, 6 May 2008 10:46:11 -0700 (PDT)
When someone ask me a question, I try to do my best to help them
without including an insulting lecture with it.
On May 5, 8:51 am, "Maarten Wiltink" <maar...@xxxxxxxxxxxxxxxxxx>
wrote:
"battles" <batt...@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: alanglloyd@xxxxxxx
- Re: Display _FileTime
- References:
- Display _FileTime
- From: battles
- Re: Display _FileTime
- From: Maarten Wiltink
- Display _FileTime
- Prev by Date: GetWinFileName
- Next by Date: Re: Display _FileTime
- Previous by thread: Re: Display _FileTime
- Next by thread: Re: Display _FileTime
- Index(es):
Relevant Pages
|