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>
16 _tWinMain(HINSTANCE hThisInstance
,
17 HINSTANCE hPrevInstance
,
25 INITCOMMONCONTROLSEX icex
;
27 hInstance
= hThisInstance
;
28 ProcessHeap
= GetProcessHeap();
30 icex
.dwSize
= sizeof(INITCOMMONCONTROLSEX
);
31 icex
.dwICC
= ICC_BAR_CLASSES
| ICC_COOL_CLASSES
;
32 InitCommonControlsEx(&icex
);
34 if (!AllocAndLoadString(&lpAppName
,
41 if (InitMainWindowImpl())
43 hMainWnd
= CreateMainWindow(lpAppName
,
47 /* pump the message queue */
48 while( GetMessage( &Msg
, NULL
, 0, 0 ) )
50 //if ( !hProgDlg || !IsWindow(hProgDlg) || !IsDialogMessage(hProgDlg, &Msg) )
52 TranslateMessage(&Msg
);
53 DispatchMessage(&Msg
);
60 UninitMainWindowImpl();
63 LocalFree((HLOCAL
)lpAppName
);