Closed
Description
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:
- Example code: https://stackoverflow.com/a/44793025
Similar function already in JNA:
Metadata
Metadata
Assignees
Labels
No labels