>Hi
>
>is there a way to uniquely identify a vfp running application?
>
>I mean... I'm running several vfp exes in the same machine , and maybe the same exe twice... but I have to save information in a file for each exe...
>
>so I need something to know if the exes (with same name) are different , and wich one is taking actions ... (a windows process ID or something like that)
>
>to make a config file for exmaple, I want to save something like this:
>
MYEXE>
???? >
something >
somehitng >
>TIA
>fabian
Fabian,
Assuming you got the window handle :
declare integer GetWindowThreadProcessId in win32API ;
integer hWnd, integer @lpdwProcessId
lpdwProcessId=0
lnThreadID=GetWindowThreadProcessId(nHWND, @lpdwProcessId)
Cetin