home *** CD-ROM | disk | FTP | other *** search
- extern char * _stdcall GetCommandLineA(void);
- extern void * _stdcall GetModuleHandleA(void *);
- extern int _stdcall WinMain(
- void * hInstance, // handle to current instance
- int hPrevInstance, // handle to previous instance
- char * lpCmdLine, // pointer to command line
- int nCmdShow // show state of window
- );
- int main(int argc,char *argv[])
- {
- char *p = GetCommandLineA();
-
- while (*p && *p != ' ') p++;
- return(WinMain(GetModuleHandleA((void *)0),0,p,1));
- }
-
-