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>
15 _tWinMain(HINSTANCE hThisInstance
,
16 HINSTANCE hPrevInstance
,
24 INITCOMMONCONTROLSEX icex
;
26 switch (GetUserDefaultUILanguage())
28 case MAKELANGID(LANG_HEBREW
, SUBLANG_DEFAULT
):
29 SetProcessDefaultLayout(LAYOUT_RTL
);
36 hInstance
= hThisInstance
;
37 ProcessHeap
= GetProcessHeap();
39 icex
.dwSize
= sizeof(INITCOMMONCONTROLSEX
);
40 icex
.dwICC
= ICC_BAR_CLASSES
| ICC_COOL_CLASSES
;
41 InitCommonControlsEx(&icex
);
43 if (!AllocAndLoadString(&lpAppName
,
50 if (InitMainWindowImpl())
52 hMainWnd
= CreateMainWindow(lpAppName
,
56 /* pump the message queue */
57 while( GetMessage( &Msg
, NULL
, 0, 0 ) )
59 //if ( !hProgDlg || !IsWindow(hProgDlg) || !IsDialogMessage(hProgDlg, &Msg) )
61 TranslateMessage(&Msg
);
62 DispatchMessage(&Msg
);
69 UninitMainWindowImpl();
72 LocalFree((HLOCAL
)lpAppName
);