Skip to content

Add CreateMutex function #952

Closed
Closed
@IvanRF

Description

@IvanRF

This function is useful/needed to detect if an application is still running in any logged Windows user.

For example, Inno Setup depends on it for [Setup]: AppMutex. This directive is used to prevent the user from installing new versions of an application while the application is still running, and to prevent the user from uninstalling a running application.

CreateMutex function: https://msdn.microsoft.com/en-us/library/ms682411.aspx

Syntax

HANDLE WINAPI CreateMutex(
  _In_opt_ LPSECURITY_ATTRIBUTES lpMutexAttributes,
  _In_     BOOL                  bInitialOwner,
  _In_opt_ LPCTSTR               lpName
);

Related:

Similar function already in JNA:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions