e
029 #include
030 #include
031 #include
032
033 /*
034 * wWinMain is not yet defined in winbase.h. When it is, this should be
035 * removed.
036 */
037
038 int
039 WINAPI
040 wWinMain(
041 HINSTANCE hInstance,
042 HINSTANCE hPrevInstance,
043 LPWSTR lpCmdLine,
044 int nShowCmd
045 );
046
047 #ifdef WPRFLAG
048 _TUCHAR * __cdecl _wwincmdln(void);
049 #else /* WPRFLAG */
050 _TUCHAR * __cdecl _wincmdln(void);
051 #endif /* WPRFLAG */
052
053 /*
054 * command line, environment, and a few other globals
055 */
056
057 #ifdef WPRFLAG
058 wchar_t *_wcmdln; /* points to wide command line */
059 #else /* WPRFLAG */
060 char *_acmdln; /* points to command line */
061 #endif /* WPRFLAG */
062
063 char *_aenvptr = NULL; /* points to environment block */
064 wchar_t *_wenvptr = NULL; /* points to wide environment block */
065
066
067 void (__cdecl * _aexit_rtn)(int) = _exit; /* RT message return procedure */
068
069 static void __cdecl fast_error_exit(int); /* Error exit via ExitProcess */
070
071 /*
072 * _error_mode and _apptype, together, determine how error messages are
073 * written out.
074 */
075 int __error_mode = _OUT_TO_DEFAULT;
076 #ifdef _WINMAIN_
077 int __app_type = _GUI_APP;&n