2 * PROJECT: ReactOS Services
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: base/system/servman/servman.c
6 * COPYRIGHT: Copyright 2005 - 2006 Ged Murphy <gedmurphy@gmail.com>
18 _tWinMain(HINSTANCE hThisInstance
,
19 HINSTANCE hPrevInstance
,
27 INITCOMMONCONTROLSEX icex
;
29 switch (GetUserDefaultUILanguage())
31 case MAKELANGID(LANG_HEBREW
, SUBLANG_DEFAULT
):
32 SetProcessDefaultLayout(LAYOUT_RTL
);
39 hInstance
= hThisInstance
;
40 ProcessHeap
= GetProcessHeap();
42 icex
.dwSize
= sizeof(INITCOMMONCONTROLSEX
);
43 icex
.dwICC
= ICC_BAR_CLASSES
| ICC_COOL_CLASSES
;
44 InitCommonControlsEx(&icex
);
46 if (!AllocAndLoadString(&lpAppName
,
53 if (InitMainWindowImpl())
55 hMainWnd
= CreateMainWindow(lpAppName
,
59 /* pump the message queue */
60 while( GetMessage( &Msg
, NULL
, 0, 0 ) )
62 //if ( !hProgDlg || !IsWindow(hProgDlg) || !IsDialogMessage(hProgDlg, &Msg) )
64 TranslateMessage(&Msg
);
65 DispatchMessage(&Msg
);
72 UninitMainWindowImpl();
75 LocalFree((HLOCAL
)lpAppName
);