Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MutEx
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Re: MutEx
Divers
Thread ID:
00162851
Message ID:
00167011
Vues:
29
>>>Admittedly, I've never played around with either SetProp() or GetProp(), so I'm not really sure how I'd apply them to solve this problem. In actual production, what I do is use the Is_Run32() function that I wrote to locate the original instance. Since it's available from the download section here, I couldn't include it in the article.
>>
>>SetProp lets you assign a property to a Handle
>>thus when you can later scan through the list of windows and search for that property and identify the original window regardless of its caption
>>
>Hi Arnon,
>
>It's not a bad idea. You could use Foxtools to get the window handle of the main window (or the individual form in the case of an SDI app). Then assign the value after trying to create the mutex. If you fail to create it, there's no point in setting the property, but you'd know what the property should have been and could use that to make 100% sure that you had the right window handle.
>
>Thanks. I may play around with this.

George,

I hope you will post the results.

I rewrote your original to fit my application -- and it works perfectly (after I figured out the few bugs I imported). Congratulations on a tight, concise, elegant routine.

regards,

jim
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform