main.h 494 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef main_H
  2. #define main_H
  3. #define WIN32_LEAN_AND_MEAN
  4. #include <Windows.h>
  5. #include <Windows.h>
  6. #define LTStart __stdcall
  7. namespace Framework
  8. {
  9. struct Startparam
  10. {
  11. HINSTANCE hinst, hpinst;
  12. LPSTR cmd;
  13. int show;
  14. };
  15. int LTStart Start( Startparam p );
  16. }
  17. int WINAPI WinMain( HINSTANCE hinst, HINSTANCE hpinst, LPSTR cmd, int show )
  18. {
  19. Framework::Startparam stp;
  20. stp.hinst = hinst;
  21. stp.hpinst = hpinst;
  22. stp.cmd = cmd;
  23. stp.show = show;
  24. return Framework::Start( stp );
  25. }
  26. #endif