#include <iostream>
#include <windows.h>
int main()
{
TCHAR username[100];
DWORD username_len = 100 + 1;
GetUserName(username, &username_len);
std::cout << "Hello World!\n";
}
bp DebugTestConsole!mainCRTStartup
bp DebugTestConsole!main
x DebugTestConsole!*
bp ucrtbase!fwrite
bp ADVAPI32!GetUserNameA
Launch Advanced
(Exe) C:\myDir\myExe.exe
(Args) -GUI_Start
(Start dir) c:\myDir\
Debug Child is ON
CTRL+ALT+K (Break on reboot)
Restart
ida: loc_1400224A0
bp tr+224A0