>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