VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Mutex APIs: Make multiple instance-aware programs

by Adam Murray (4 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

Uses Mutex Objects to track multiple instances of the same .EXE. A Mutex object is an interprocess synchronization object whose state is set to signaled when it is not owned by any thread, and nonsignaled when it is owned. Only one thread at a time can own a mutex. Use of mutex objects makes possible batch processing and other synchronous tasks, from concurrent instances of the same application.

Assumes
The MAX_INSTANCES limitation is artifically imposed. I find it useful; you may, of course, remove it.

Rate Mutex APIs: Make multiple instance-aware programs

Upload

Download this snippet    Add to My Saved Code

Mutex APIs: Make multiple instance-aware programs Comments

No comments have been posted about Mutex APIs: Make multiple instance-aware programs. Why not be the first to post a comment about Mutex APIs: Make multiple instance-aware programs.

Post your comment

Subject:
Message:
0/1000 characters