AnsweredAssumed Answered

vrf Desktop double clicking

Question asked by VRFuser on Oct 28, 2003
Latest reply on Oct 28, 2003 by VRFuser
> originally supplied by the Windoze god (and suspected automated bot) Shawn

I don't know - I don't think that's mine. I always get real verbose on

It works good though. Course, there are other ways too. One is to import a
single-instance dll. The dll holds a global static HINSTANCE called ghInst
that's initialized to NULL. In DllMain, in case DLL_PROCESS_ATTACH, check
ghInst to make sure it's NULL. If not, return FALSE. If it is NULL, set
ghInst to the passed hInstance and viola. If any other process tries to
import from that dll the dll will fail to load. Detect this condition with
an error pin on the Import Compiled Function and you know there's already an
instance running.

Another way is to create a named mutex when your application starts. The
call will succeed, but immediately call GetLastError. If it returns
ERROR_ALREADY_EXISTS then another instance has already created the mutex. Of
course, don't forget to destroy the mutex when your application closes, or
you won't be able to start it again until you reboot.

You are currently subscribed to vrf as:
To subscribe send a blank email to "".
To unsubscribe send a blank email to "".
To send messages to this mailing list,  email "". 
If you need help with the mailing list send a message to "".