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>
17 _tWinMain(HINSTANCE hThisInstance
,
18 HINSTANCE hPrevInstance
,
26 INITCOMMONCONTROLSEX icex
;
28 hMutex
= CreateMutex(NULL
, TRUE
, _T("devmgmt_mutex"));
29 if (hMutex
== NULL
|| GetLastError() == ERROR_ALREADY_EXISTS
)
38 hInstance
= hThisInstance
;
39 ProcessHeap
= GetProcessHeap();
41 icex
.dwSize
= sizeof(INITCOMMONCONTROLSEX
);
42 icex
.dwICC
= ICC_BAR_CLASSES
| ICC_COOL_CLASSES
;
43 InitCommonControlsEx(&icex
);
45 if (!AllocAndLoadString(&lpAppName
,
52 if (InitMainWindowImpl())
54 hMainWnd
= CreateMainWindow(lpAppName
,
58 /* pump the message queue */
59 while( GetMessage( &Msg
, NULL
, 0, 0 ) )
61 TranslateMessage(&Msg
);
62 DispatchMessage(&Msg
);
69 UninitMainWindowImpl();
72 LocalFree((HLOCAL
)lpAppName
);