Re: Display _FileTime



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

.



Relevant Pages

  • Re: Display _FileTime
    ... lpCreationTime, lpExitTime, lpKernelTime, lpUserTime: FileTime; ... The mentioned FileTime is a WinAPI struct, ... _make_ it into a string? ...
    (comp.lang.pascal.delphi.misc)
  • Re: VBA macro to obtain file names using WIN32 API
    ... > CreationTime As String ... > Reserved0 As Long ... > CreationTime As FILETIME ... I defined the variable structBuffer in the Declarations ...
    (microsoft.public.excel.programming)
  • Re: CeGetFileAttributes always fails
    ... I'm not a VB programmer so I don't know how VB deals with UNICODE, ... > ftCreationTime As FILETIME ... > ByVal lpFileName As String) As Long ... > Dim hFind As Long ...
    (microsoft.public.pocketpc.developer)
  • Re: FindFirstFile api to read cache temporary internet files (tif)
    ... Public Type FILETIME ... cFileName As String * MAX_PATH ... Private Declare Function FileTimeToSystemTime Lib "kernel32" ... (lpFileTime As FILETIME, lpSystemTime As SYSTEMTIME) ...
    (comp.lang.basic.visual.misc)
  • Re: file date/time
    ... Private Type FILETIME ... cFileName As String * MAX_PATH ... Private Declare Function FindFirstFile Lib "kernel32" _ ... Dim fdata As WIN32_FIND_DATA ...
    (microsoft.public.vb.winapi)