How can I receive OutputDebugString from a service?

前端 未结 1 607
情深已故
情深已故 2020-12-18 23:09

I\'m trying to catch all OutputDebugString messages (including those from services) using the following code. It worked fine until I migrated to Windows 7.

The probl

相关标签:
1条回答
  • 2020-12-18 23:55

    Someone talked about the same issue in the SysInternals forums. Their solution was to add "Global\" to the named objects.

    So use the following

    CreateEvent(@SecurityAttributes, False, True, 'Global\DBWIN_BUFFER_READY');
    CreateEvent(@SecurityAttributes, False, False, 'Global\DBWIN_DATA_READY');
    CreateFileMapping(THandle(-1), @SecurityAttributes, PAGE_READWRITE, 0, 4096, 'Global\DBWIN_BUFFER');
    
    0 讨论(0)
提交回复
热议问题