Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the filename associated with a handle?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00112995
Message ID:
00113367
Vues:
13
>This is a repeat to an incomplete massage:
>
>When you open an ASCII using the low-level file IO function FOPEN() and you use the DISPLAY STATUS commands, you can see the handle # and the file associated with it. How can I do this programmatically?
>
>Thanks in advance.

Juan,

I never saw in the Win32 API a function that would return a set of properties, including the name, for a file that was previously open with CreateFile() or with _fopen().

I took a look at GetHandleInformation() and the only thing it would return is totally useless in your case.

I guess that, internally, whenever FoxPro is calling the internal _FOpen(), it keeps a list of open files (indeed, it must do so to close all files with the CLOSE ALL command), their handle, filename, pointer position, etc.

That's all I can say.

Pat
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform