outputdebugstring

How can I receive OutputDebugString from a service?

巧了我就是萌 提交于 2019-11-28 02:54:40
问题 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 problem is that since Windows Vista services are running in the low level Session #0, some people say that it's impossible to catch them and some that it is. What do you think? Is it possible to modify the following code by increasing some rights to be able to receive OutputDebugString messages from the Session #0? In other words; is it

How to view output of OutputDebugString?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 02:17:48
问题 I want to use OutputDebugString() in my application and then have the option to show it in a separate viewer when the application is deployed in the field. That is to say, I don't want to have to change a flag and rebuild my .exe to turn debugging on and off. Googling around, it seems like DebugView should handle that, but neither it, nor TraceTool show any output from this code. unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl