Click to open or copy the files for the DbMon sample.
DbMon is a simple program that demonstrates how to print strings passed to OutputDebugString when the application printing the strings is not currently being debugged.
This sample uses the following keywords:
createevent; createfilemapping; exit; fprintf; getlasterror; initializesecuritydescriptor; mapviewoffile; printf; putchar; setevent; setsecuritydescriptordacl; waitforsingleobject