Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the filename associated with a handle?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00112995
Message ID:
00113367
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform