home *** CD-ROM | disk | FTP | other *** search
/ Total Destruction / Total_Destruction.iso / addons / Lccwin32.exe / Lccwin32 / lccpub / lib / src / main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-15  |  494 b   |  17 lines

  1. extern char * _stdcall GetCommandLineA(void);
  2. extern void * _stdcall GetModuleHandleA(void *);
  3. extern int _stdcall WinMain(
  4.     void * hInstance,    // handle to current instance
  5.     int hPrevInstance,    // handle to previous instance
  6.     char * lpCmdLine,    // pointer to command line
  7.     int nCmdShow     // show state of window
  8.    );
  9. int main(int argc,char *argv[])
  10. {
  11.     char *p = GetCommandLineA();
  12.  
  13.     while (*p && *p != ' ') p++;
  14.     return(WinMain(GetModuleHandleA((void *)0),0,p,1));
  15. }
  16.  
  17.