-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CreateMutex function #952
Comments
matthiasblaesing
added a commit
to matthiasblaesing/jna
that referenced
this issue
Jun 3, 2018
@matthiasblaesing Yes, excellent work! Thanks for implementing it 👍 |
Is there any equivalent method for createevent() to use for Linux in JNA? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.aspxSyntax
Related:
Similar function already in JNA:
CreateEvent
: https://github.com/java-native-access/jna/blob/master/contrib/platform/src/com/sun/jna/platform/win32/Kernel32.java#L932The text was updated successfully, but these errors were encountered: