Announcement

Collapse
No announcement yet.

Call DLL -- CreateMutex

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Call DLL -- CreateMutex

    I need to call CreateMutex to check if the program is currently running or not.

    DLL: %SysDir%\Kernel32.dll
    Function Name: CreateMutex
    Function Parameters: 0,1,SkedStar
    Return Value: Int (tried long)
    Calling Convention: __stdcall (tried __cdecl)

    Fails: Failed to call DLL Function (#2, Line 2)
    Ideas?

  • #2
    Re: Call DLL -- CreateMutex

    There are actually two versions of that call, ANSI and Unicode. Try calling the function name CreateMutexA

    The unicode version is CreateMutexW

    Comment


    • #3
      Re: Call DLL -- CreateMutex

      CreateMutexA -- SUF gpf'd...

      Comment


      • #4
        Re: Call DLL -- CreateMutex

        You may instead want to try creating your own DLL to take care of that or compile it into an executable. I can't really help beyond what I suggested, I'm sorry.

        Comment

        Working...
        X