Skip to content

Instantly share code, notes, and snippets.

@xorhex
Created September 15, 2019 23:10
Show Gist options
  • Save xorhex/d61a015a8fbda5535894511ca0bb02af to your computer and use it in GitHub Desktop.
Save xorhex/d61a015a8fbda5535894511ca0bb02af to your computer and use it in GitHub Desktop.
Code Snippet 1 - Demo App
#pragma comment(lib, "User32.lib")
#pragma comment(lib, "Kernel32.lib")
#define STRICT
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
if (GetSystemDefaultUILanguage() == 0x40E)
MessageBox(NULL, "Hi there! Wait while I do something bad!", "Success", MB_OK);
else
MessageBox(NULL, "Hello, mundane world.", "Failure", MB_OK);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment