(C++) OutputDebugString by Thomas Roccia (fr0gger)

Created the Thursday 17 September 2020. Updated 1 week, 4 days ago.

Code

            #include <stdio.h>
#include <Windows.h>

int main()
{
	SetLastError(0);
	
        // Send string to the debugger
	OutputDebugStringA("Hello friend");

	if (GetLastError() != 0)
	{
		printf("Debugger detected!!\n");
	}
        system("pause");
	return 0;
}