2 * PROJECT: ReactOS Device Managment
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: base/system/devmgmt/devmgmt.c
6 * COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
16 WinMain(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 TranslateMessage(&Msg
);
51 DispatchMessage(&Msg
);
58 UninitMainWindowImpl();
61 LocalFree((HLOCAL
)lpAppName
);