2 * PROJECT: ReactOS Services
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: base/applications/mscutils/servman/servman.c
6 * COPYRIGHT: Copyright 2005 - 2006 Ged Murphy <gedmurphy@gmail.com>
19 wWinMain(HINSTANCE hThisInstance
,
20 HINSTANCE hPrevInstance
,
28 INITCOMMONCONTROLSEX icex
;
30 switch (GetUserDefaultUILanguage())
32 case MAKELANGID(LANG_HEBREW
, SUBLANG_DEFAULT
):
33 SetProcessDefaultLayout(LAYOUT_RTL
);
40 hInstance
= hThisInstance
;
41 ProcessHeap
= GetProcessHeap();
43 icex
.dwSize
= sizeof(INITCOMMONCONTROLSEX
);
44 icex
.dwICC
= ICC_WIN95_CLASSES
| ICC_COOL_CLASSES
;
45 InitCommonControlsEx(&icex
);
47 if (!AllocAndLoadString(&lpAppName
,
54 if (InitMainWindowImpl())
56 hMainWnd
= CreateMainWindow(lpAppName
,
60 /* pump the message queue */
61 while (GetMessageW( &Msg
, NULL
, 0, 0 ) )
63 //if ( !hProgDlg || !IsWindow(hProgDlg) || !IsDialogMessage(hProgDlg, &Msg) )
64 //if (!IsDialogMessage(g_hProgDlg, &Msg))
66 TranslateMessage(&Msg
);
67 DispatchMessageW(&Msg
);
74 UninitMainWindowImpl();
77 LocalFree((HLOCAL
)lpAppName
);