News Disabling single launch mutex in orbiter - once and for all

Kozak

Active member
Orbiter Contributor
Donator
Joined
Apr 27, 2008
Messages
218
Reaction score
90
Points
43
Location
Berlin
While working on some project, I had a strong need to launch several Orbiter windows. Although there is a workaround for the stable version (using a hardcoded address, courtesy of Orb IIRC), there hadn't been one which would help for beta versions.

Here's my final solution to the single-launch "problem", which does not rely on hardcoded addresses. The code is available as Gist. What it does is it scans the open handles of the Orbiter main process and closes the one associated to the global single launch mutex once found. It uses NTAPI, but I hope there's no people running Orbiter on Win95/98 ☺

Use at your own risk; I will publish it in an addon shortly.
 
Last edited:
Back
Top