Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exe ID ?
Message
De
16/05/2003 11:22:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00789226
Message ID:
00789261
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform