Hi George,
Thank you for the reply. I actually got the code snippet from Ed's article for the CreateEvent() function. I was just wondering if this is also applicable to files aside from executables. I'll probably just use an FOPEN() wrapper for this.
>>Hi all,
>>
>>Given a filename, can I use the CreateEvent() Win32API function to check if the file is opened or not? Is there another way, VFP or Win32API, to check if a file is open? Example: myExcel.xls is currently open using Excel started normally or thru VFP. Can I check if the file is open?
>
>Ed Rauh did some work with this. Check his contribution summary and you'll find information on how to do this.
ramil
~~ learning to stand still