| 14 | */ |
| 15 | |
| 16 | BOOL OutputDebugStringAPI() |
| 17 | { |
| 18 | |
| 19 | BOOL IsDbgPresent = FALSE; |
| 20 | DWORD Val = 0x29A; |
| 21 | |
| 22 | // This is working only in Windows XP/2000 |
| 23 | if (IsWindowsXPOr2k()) |
| 24 | { |
| 25 | SetLastError(Val); |
| 26 | OutputDebugString(_T("random")); |
| 27 | |
| 28 | if (GetLastError() == Val) |
| 29 | IsDbgPresent = TRUE; |
| 30 | } |
| 31 | |
| 32 | return IsDbgPresent; |
| 33 | } |
| 34 |
nothing calls this directly
no test coverage detected