Advertisement
Kitomas

entry point before

Jul 21st, 2023
670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | Source Code | 0 0
  1. #ifdef RELEASE_BUILD
  2. int WINAPI WinMain
  3. #else
  4. int WINAPI _WinMain
  5. #endif
  6. (HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR args, int nCmdShow){
  7.   printf("Hello world!\n");
  8.   return 0;
  9. }
  10.  
  11. #ifndef RELEASE_BUILD
  12. int main(){
  13.   return _WinMain(GetModuleHandleA(NULL),NULL,GetCommandLineA(),SW_SHOW);
  14. }
  15. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement