Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetFileTime() - File handle problem.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00094412
Message ID:
00094478
Vues:
26
>>I am trying to use the GetFileTime() and am having trouble with the file handle type. Which API call should I use to open the file??? TIA,
>
>I haven't tested this, but I'd use CreateFile() set to to GENERIC_READ as desired access and FILE_SHARE_READ as the shared mode. I've used this function to set a file time, but not to get it. There's another way besides this to get this information. FindFirstFile() fills the necessary structures, and tells you whether or not the files exists, and gives both the extended and DOS files names. Look at the Windows Filenames in the Download section under Win32 and other APIs.
>
>hth,

Thanks George - wouldn't you know it, I found CreateFile straight away after posting the thread. I will look at FindFirstFile() though. I'm actually writing in Borland C++Builder - I hope you don't mind. (My personal projects are in C, work is in VFP. Though most of my personal projects are born at work. This one's for Y2K checking!) Thanks again, hope to take my Guru exams soon!
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform