ReactOS  0.4.15-dev-1070-ge1a01de
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:670
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 670 of file charmap.c.

674 {
676  INT Ret = 1;
677  HMODULE hRichEd20;
678  MSG Msg;
679 
680  hInstance = hInst;
681 
682  /* Mirroring code for the titlebar */
683  switch (GetUserDefaultUILanguage())
684  {
687  break;
688 
689  default:
690  break;
691  }
692 
693  iccx.dwSize = sizeof(INITCOMMONCONTROLSEX);
694  iccx.dwICC = ICC_TAB_CLASSES;
695  InitCommonControlsEx(&iccx);
696 
698  {
699  hRichEd20 = LoadLibraryW(L"RICHED20.DLL");
700 
701  if (hRichEd20 != NULL)
702  {
704 
705  for (;;)
706  {
707  if (GetMessage(&Msg, NULL, 0, 0) <= 0)
708  {
709  Ret = Msg.wParam;
710  break;
711  }
712 
715  }
716 
717  FreeLibrary(hRichEd20);
718  }
720  }
721 
722  return Ret;
723 }
#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 @1607 Msg[]
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:607
HINSTANCE hInstance
Definition: charmap.c:20
VOID UnregisterMapClasses(HINSTANCE hInstance)
Definition: map.c:741
#define LoadLibraryW(x)
Definition: compat.h:495
smooth NULL
Definition: ftsmooth.c:416
BOOL WINAPI SetProcessDefaultLayout(DWORD dwDefaultLayout)
Definition: window.c:1720
#define FreeLibrary(x)
Definition: compat.h:496
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:715
HINSTANCE hInst
Definition: dxdiag.c:13
#define GetMessage
Definition: winuser.h:5765
#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().