VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Mutex APIs: Make multiple instance-aware programs

Adam Murray  (4 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

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 (2(2 Vote))
Mutex APIs: Make multiple instance-aware programs.bas

Mutex APIs: Make multiple instance-aware programs Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters