ReactOS  0.4.14-dev-998-g623dd26
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:580
DWORD __mingw_winmain_nShowCmd
LPWSTR __mingw_winmain_lpCmdLine
smooth NULL
Definition: ftsmooth.c:416
HINSTANCE __mingw_winmain_hInstance

◆ 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 580 of file charmap.c.

584 {
586  INT Ret = 1;
587  HMODULE hRichEd20;
588  MSG Msg;
589 
590  hInstance = hInst;
591 
592  /* Mirroring code for the titlebar */
593  switch (GetUserDefaultUILanguage())
594  {
597  break;
598 
599  default:
600  break;
601  }
602 
603  iccx.dwSize = sizeof(INITCOMMONCONTROLSEX);
604  iccx.dwICC = ICC_TAB_CLASSES;
605  InitCommonControlsEx(&iccx);
606 
608  {
609  hRichEd20 = LoadLibraryW(L"RICHED20.DLL");
610 
611  if (hRichEd20 != NULL)
612  {
614 
615  for (;;)
616  {
617  if (GetMessage(&Msg, NULL, 0, 0) <= 0)
618  {
619  Ret = Msg.wParam;
620  break;
621  }
622 
625  }
626 
627  FreeLibrary(hRichEd20);
628  }
630  }
631 
632  return Ret;
633 }
#define DispatchMessage
Definition: winuser.h:5740
LANGID WINAPI GetUserDefaultUILanguage(void)
Definition: lang.c:806
BOOL WINAPI TranslateMessage(_In_ const MSG *)
#define LAYOUT_RTL
Definition: wingdi.h:1370
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
#define SUBLANG_DEFAULT
Definition: nls.h:168
struct tagINITCOMMONCONTROLSEX INITCOMMONCONTROLSEX
int32_t INT
Definition: typedefs.h:57
#define LANG_HEBREW
Definition: nls.h:67
static HWND InitInstance(HINSTANCE hInst)
Definition: charmap.c:517
HINSTANCE hInstance
Definition: charmap.c:20
VOID UnregisterMapClasses(HINSTANCE hInstance)
Definition: map.c:672
#define LoadLibraryW(x)
Definition: compat.h:412
smooth NULL
Definition: ftsmooth.c:416
BOOL WINAPI SetProcessDefaultLayout(DWORD dwDefaultLayout)
Definition: window.c:1716
#define FreeLibrary(x)
Definition: compat.h:413
static const WCHAR L[]
Definition: oid.c:1250
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:893
BOOL RegisterMapClasses(HINSTANCE hInstance)
Definition: map.c:646
HINSTANCE hInst
Definition: dxdiag.c:13
#define GetMessage
Definition: winuser.h:5765
struct @1587 Msg[]
#define MAKELANGID(p, s)
Definition: nls.h:15
#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().