Created
September 15, 2019 23:10
-
-
Save xorhex/d61a015a8fbda5535894511ca0bb02af to your computer and use it in GitHub Desktop.
Code Snippet 1 - Demo App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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