OpenPreferences() -- Readonly?
Posted: Fri Jul 01, 2011 3:56 pm
Is there a way to open the preference file "readonly"?
What I'm after is to be able to launch multiple copies of an exe, and use the same ini file -- but since it's opened for read/write - only the 1st one can use it.
I know I can open/close the file at start; but his still leaves an opening for another copy to fail the open.
I haven't been able to get the windows createmutex() to work so that I can have a system-wide mutex; that was my 1st route..
What I'm after is to be able to launch multiple copies of an exe, and use the same ini file -- but since it's opened for read/write - only the 1st one can use it.
I know I can open/close the file at start; but his still leaves an opening for another copy to fail the open.
I haven't been able to get the windows createmutex() to work so that I can have a system-wide mutex; that was my 1st route..