ReactOS  0.4.15-dev-5608-gafb953a
crt0_w.c File Reference
#include <stdarg.h>
#include <windef.h>
Include dependency graph for crt0_w.c:

Go to the source code of this file.

Functions

int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd)
 
int __cdecl wmain (int, wchar_t **, wchar_t **)
 
int __cdecl wmain (int __UNUSED_PARAM(flags), wchar_t **__UNUSED_PARAM(cmdline), wchar_t **__UNUSED_PARAM(inst))
 

Variables

HINSTANCE __mingw_winmain_hInstance
 
LPWSTR __mingw_winmain_lpCmdLine
 
DWORD __mingw_winmain_nShowCmd
 

Function Documentation

◆ wmain() [1/2]

int __cdecl wmain ( int  ,
wchar_t **  ,
wchar_t **   
)

◆ wmain() [2/2]

int __cdecl wmain ( int   __UNUSED_PARAMflags,
wchar_t **  __UNUSED_PARAMcmdline,
wchar_t **  __UNUSED_PARAMinst 
)

Definition at line 20 of file crt0_w.c.

23 {
26 }
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd)
Definition: charmap.c:671
DWORD __mingw_winmain_nShowCmd
LPWSTR __mingw_winmain_lpCmdLine
HINSTANCE __mingw_winmain_hInstance
#define NULL
Definition: types.h:112

◆ wWinMain()

int WINAPI wWinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPWSTR  lpCmdLine,
int  nShowCmd 
)

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER.PD within this package.

Definition at line 671 of file charmap.c.

675 {
677  INT Ret = 1;
678  HMODULE hRichEd20;
679  MSG Msg;
680 
681  hInstance = hInst;
682 
683  /* Mirroring code for the titlebar */
684  switch (GetUserDefaultUILanguage())
685  {
688  break;
689 
690  default:
691  break;
692  }
693 
694  iccx.dwSize = sizeof(INITCOMMONCONTROLSEX);
695  iccx.dwICC = ICC_TAB_CLASSES;
696  InitCommonControlsEx(&iccx);
697 
699  {
700  hRichEd20 = LoadLibraryW(L"RICHED20.DLL");
701 
702  if (hRichEd20 != NULL)
703  {
705 
706  for (;;)
707  {
708  if (GetMessage(&Msg, NULL, 0, 0) <= 0)
709  {
710  Ret = Msg.wParam;
711  break;
712  }
713 
714  /* NOTE: CreateDialog needs IsDialogMessage call in message loop */
716  continue;
717 #ifndef REMOVE_ADVANCED
719  continue;
720 #endif
721 
724  }
725 
726  FreeLibrary(hRichEd20);
727  }
729  }
730 
731  return Ret;
732 }
#define DispatchMessage
Definition: winuser.h:5755
LANGID WINAPI GetUserDefaultUILanguage(void)
Definition: lang.c:810
BOOL WINAPI TranslateMessage(_In_ const MSG *)
#define LAYOUT_RTL
Definition: wingdi.h:1371
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
#define SUBLANG_DEFAULT
Definition: nls.h:168
#define IsDialogMessage
Definition: winuser.h:5799
struct tagINITCOMMONCONTROLSEX INITCOMMONCONTROLSEX
int32_t INT
Definition: typedefs.h:58
#define LANG_HEBREW
Definition: nls.h:67
static HWND InitInstance(HINSTANCE hInst)
Definition: charmap.c:608
HINSTANCE hInstance
Definition: charmap.c:19
#define L(x)
Definition: ntvdm.h:50
VOID UnregisterMapClasses(HINSTANCE hInstance)
Definition: map.c:875
#define LoadLibraryW(x)
Definition: compat.h:747
BOOL WINAPI SetProcessDefaultLayout(DWORD dwDefaultLayout)
Definition: window.c:1720
#define FreeLibrary(x)
Definition: compat.h:748
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:893
BOOL RegisterMapClasses(HINSTANCE hInstance)
Definition: map.c:849
HINSTANCE hInst
Definition: dxdiag.c:13
#define NULL
Definition: types.h:112
#define GetMessage
Definition: winuser.h:5780
HWND hCharmapDlg
Definition: charmap.c:21
#define MAKELANGID(p, s)
Definition: nls.h:15
HWND hAdvancedDlg
Definition: charmap.c:20
struct @1595 Msg[]
#define ICC_TAB_CLASSES
Definition: commctrl.h:61

Referenced by wmain().

Variable Documentation

◆ __mingw_winmain_hInstance

HINSTANCE __mingw_winmain_hInstance

Referenced by wmain().

◆ __mingw_winmain_lpCmdLine

LPWSTR __mingw_winmain_lpCmdLine

Referenced by wmain().

◆ __mingw_winmain_nShowCmd

DWORD __mingw_winmain_nShowCmd

Referenced by wmain().