Skip to content

Instantly share code, notes, and snippets.

@davidzou2131
Created July 29, 2016 04:54
Show Gist options
  • Save davidzou2131/20faef51fdb43f53a257dcfa948474a4 to your computer and use it in GitHub Desktop.
Save davidzou2131/20faef51fdb43f53a257dcfa948474a4 to your computer and use it in GitHub Desktop.
Win32 Dummy Application
#include <windows.h>
/* A Win32 program that does literally nothing, returning immediately.
Useful for replacing an existing binary to do nothing and exit.
*/
// Create a Graphical Windows Program in order to prevent a terminal showing
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdParam, int iCmdShow) {
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment