Search code examples
winapimutextrace

OutputDebugString capture


In a previous question I asked about if any real-time enhanced versions of dbgview exist, and ended trying to write my own, which worked out well except for one small snag

 OpenMutex(MUTEX_ALL_ACCESS, FALSE, "DBWinMutex")

returns a handle to this mutex, except it returns NULL on windows2003 , anyone know why this might be the case ?


Solution

  • The mutex doesn't necessarily exist. e.g. OutputDebugString attempts to create it, rather than open it.

    Details here: http://www.unixwiz.net/techtips/outputdebugstring.html