(C++) OutputDebugString by Thomas Roccia

Sept. 17, 2020, midnight | 1 year, 9 months

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;
}
        

Comment