News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Using open file handle as a mutex

Started by ecube, November 04, 2008, 05:14:44 AM

Previous topic - Next topic

ecube

I was wondering if using a open file handle as a mutex is the best method, seeing as createmutex mutex's can stay alive if they process closes prematurely(is terminated) and doesn't freemutex/closehandle the handle. I tried using window name as a mutex method...wow did that fail miserably.

ecube

nevermind i found a method with createfilemaping where u can specify an invalid file handle and a object name, seems to work nicely even if the application closes unexpectly.