Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MutEx
Message
 
To
02/12/1998 13:20:18
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Re: MutEx
Miscellaneous
Thread ID:
00162851
Message ID:
00163610
Views:
19
>>>George,
>>>
>>>Just finished reading your solution to preventing multiple application launches in FPA/11/98. Very elegant. My own is not nearly so nice, so I expect to use yours in my next rewrite.
>>>
>>>A very nice piece of work.
>>>
>>Hi Jim,
>>
>>The kind words are much appreciated.
>>
>>Thanks,
>PMFJI,
>
>Hi George,
>while this subject came up -
>On the subject of finding the original instance
>since it seems we cannot define out own class for windows and the title itself can change - it might be a better idea to use the API SetProp and GetProp functions (SetProp when creating the mutex and GetProp while looping through all desktop windown when trying to locate the original instnace)
>
Hi Arnon,

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.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform