Results 1 to 1 of 1

Thread: [RESOLVED] MUTEX_NAME for VB6 App

Threaded View

  1. #1

    Thread Starter
    Member lmstearn's Avatar
    Join Date
    Dec 2016
    Location
    Australia
    Posts
    58

    Resolved [RESOLVED] MUTEX_NAME for VB6 App

    Hi there,
    A VB6 app has a static mutex name by default, but checking through the Process Explorer using this advice there are a number of them:

    Mutant \Sessions\1\BaseNamedObjects\MSCTF.Asm.MutexDefault1
    Mutant \BaseNamedObjects\20b70e57-1c2e-4de9-99e5-20f3961e6912
    Mutant \Sessions\1\BaseNamedObjects\MidiMapper_modLongMessage_RefCnt
    Mutant \Sessions\1\BaseNamedObjects\SessionImmersiveColorMutex
    Mutant \Sessions\1\BaseNamedObjects\SM0:8240:64:WilError_01
    Plus more.
    Suspect it's the second one with the GUID, but is the actual mutex name required for Inno just the GUID or do we include "\BaseNamedObjects\" as well.
    Edit: Oops! Already defined it in the code!
    Code:
    Const MUTEX_NAME As String = "Global\20b70e57-1c2e-4de9-99e5-20f3961e6912" '20b70e57-1c2e-4de9-99e5-20f3961e6812'
    So when checking for AppPrevInstance it's already set for the application.
    Inno suggests creating a custom mutex name- but is that absolutely necessary - or even practical?
    In any case the application is detected using the second GUID (ending 812) and terminated by Inno.
    And both mutexes (mutices?) are handled in Inno anyway with
    Code:
    [Setup]
    AppMutex=YourMutexNameGoesHere,Global\YourMutexNameGoesHere
    Thanks for reading.
    Last edited by lmstearn; Aug 10th, 2017 at 01:28 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width