Re: [GD-Windows] Limiting to one instance
Brought to you by:
vexxed72
|
From: Jon W. <hp...@mi...> - 2006-08-16 16:35:16
|
Alen Ladavac wrote:
> Put simply: unless the manual says "this can be used to do XYZ", then
> if you are using it for that, you are risking possible problems.
> (Although, you are probably risking possible problems even if it does
> say so. :p )
>
I just checked the documentation for CreateMutex() on MSDN, and it
actually discusses the usage for preventing double-launch, in some
detail. It even mentions the possible denial of service by creating the
same mutex in another program. It also suggests a rather cumbersome
work-around.
Cheers,
/ h+
|