Flag: Tornado!
Hurricane!
|
|
OutputDebugString on Win2K and WinXP |
Debugging |
RussellOsterlund |
|
December 11 2007 |
|
|
On Windows XP and Windows 2000, OutputDebugString is sensitive to the presence of an attached debugger. For example:
DWORD AnythingButTwo = 666;
SetLastError( AnythingButTwo );
OutputDebugString( "foobar" );
if( GetLastError() == AnythingButTwo )
{
// debugger is attached
}
else
{
// debugger is not attached
}
|
|
|
|
There are 31,319 total registered users.
|
|