Anonymous user
Determine if only one instance is running: Difference between revisions
Determine if only one instance is running (view source)
Revision as of 22:28, 20 November 2018
, 5 years agono edit summary
SqrtNegInf (talk | contribs) m (→{{header|Perl 6}}: fix file open error handling) |
No edit summary |
||
Line 700:
calldll #kernel32, "CloseHandle", mutex as ulong, ret as ulong
end</lang>
=={{header|M2000 Interpreter}}==
We can lock a file in user folder. Only one instance can lock a file.
<lang M2000 Interpreter>
Module Checkit {
Try {
Open "MYLOCK" For Output Exclusive As #F
Print "DO SOMETHING"
A$=Key$
Close#f
}
}
</lang>
=={{header|Mathematica}} / {{header|Wolfram Language}}==
|