ReactOS 0.4.15-dev-7670-g69b08be
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   __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
LPWSTR __mingw_winmain_lpCmdLine
HINSTANCE __mingw_winmain_hInstance
DWORD __mingw_winmain_nShowCmd
#define NULL
Definition: types.h:112

◆ wmain() [2/2]

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

◆ 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
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;
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}
HWND hCharmapDlg
Definition: charmap.c:21
HINSTANCE hInstance
Definition: charmap.c:19
static HWND InitInstance(HINSTANCE hInst)
Definition: charmap.c:608
HWND hAdvancedDlg
Definition: charmap.c:20
struct @1628 Msg[]
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:893
#define FreeLibrary(x)
Definition: compat.h:748
#define LoadLibraryW(x)
Definition: compat.h:747
HINSTANCE hInst
Definition: dxdiag.c:13
LANGID WINAPI GetUserDefaultUILanguage(void)
Definition: lang.c:816
VOID UnregisterMapClasses(HINSTANCE hInstance)
Definition: map.c:875
BOOL RegisterMapClasses(HINSTANCE hInstance)
Definition: map.c:849
#define L(x)
Definition: ntvdm.h:50
struct tagINITCOMMONCONTROLSEX INITCOMMONCONTROLSEX
#define ICC_TAB_CLASSES
Definition: commctrl.h:61
#define MAKELANGID(p, s)
Definition: nls.h:15
#define LANG_HEBREW
Definition: nls.h:67
#define SUBLANG_DEFAULT
Definition: nls.h:168
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
int32_t INT
Definition: typedefs.h:58
BOOL WINAPI SetProcessDefaultLayout(DWORD dwDefaultLayout)
Definition: window.c:1719
#define LAYOUT_RTL
Definition: wingdi.h:1371
BOOL WINAPI TranslateMessage(_In_ const MSG *)
#define IsDialogMessage
Definition: winuser.h:5808
#define GetMessage
Definition: winuser.h:5789
#define DispatchMessage
Definition: winuser.h:5764

Referenced by wmain().

Variable Documentation

◆ __mingw_winmain_hInstance

HINSTANCE __mingw_winmain_hInstance
extern

Referenced by wmain().

◆ __mingw_winmain_lpCmdLine

LPWSTR __mingw_winmain_lpCmdLine
extern

Referenced by wmain().

◆ __mingw_winmain_nShowCmd

DWORD __mingw_winmain_nShowCmd
extern

Referenced by wmain().