Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: Biju Thomas
  Where is Biju Thomas?
 Kochi
 India
 Biju Thomas
 Tags
Subject: RE: Accessing API from VFP
Thread ID: 183385 Message ID: 183413 # Views: 29 # Ratings: 0
Version: Visual FoxPro 8 Category: Win32API programming
Date: Sunday, July 13, 2008 8:47:11 PM         
   


> Hello Everybody,
> The following is an API call to get the date and time of a file - created, modified and last accessed.
> Declare Function GetFileTime Lib "kernel32" Alias "GetFileTime" (ByVal hFile As Long, lpCreationTime As FILETIME, lpLastAccessTime As FILETIME, lpLastWriteTime As FILETIME) As Long
>
> How can we convert the above code to use with VFP
> What are the basic rules for the conversion.
> Please help.
> With Regards,
> Biju Thomas


YOUSFI BENAMEUR

Retrieves the date and time that a file was created, last accessed, and last modified.
DECLARE GetFileTime IN kernel32;
INTEGER hFile,;
STRING @ lpCreationTime,;
STRING @ lpLastAccessTime,;
STRING @ lpLastWriteTime
Parameters:
hFile
[in] Handle to the files for which to get dates and times.

lpCreationTime
[out] Pointer to a FILETIME structure to receive the date and time the file was created.

That's copied from the APIviewer9.exe of News2news .You can download it (free form declarations of 987 functions API).
http://www.news2news.com/vfp/?article=12&src=frontpage

COMPLETE THREAD

Accessing API from VFP Posted by Biju Thomas @ 7/13/2008 3:25:26 PM
RE: Accessing API from VFP Posted by Stefan Wuebbe @ 7/13/2008 3:34:54 PM
RE: Accessing API from VFP Posted by Biju Thomas @ 7/13/2008 6:16:25 PM
RE: Accessing API from VFP Posted by surinder singh @ 7/13/2008 3:47:53 PM
RE: Accessing API from VFP Posted by Biju Thomas @ 7/13/2008 6:17:07 PM
RE: Accessing API from VFP Posted by Yousfi Benameur @ 7/13/2008 8:47:11 PM