2006-11-08 11:47:44 +00:00
|
|
|
/*
|
2016-11-05 14:55:55 +00:00
|
|
|
* PROJECT: ReactOS Device Management
|
2006-11-08 11:47:44 +00:00
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
2015-09-09 13:13:35 +00:00
|
|
|
* FILE: base/applications/mscutils/devmgmt/devmgmt.c
|
2015-10-18 21:27:23 +00:00
|
|
|
* PURPOSE: Bootstrap for the device manager
|
2006-11-08 11:47:44 +00:00
|
|
|
* COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
|
|
|
|
*/
|
|
|
|
|
2015-10-18 21:27:23 +00:00
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winreg.h>
|
2006-11-08 11:47:44 +00:00
|
|
|
|
2015-10-18 21:27:23 +00:00
|
|
|
#include <cfgmgr32.h>
|
|
|
|
#include <devmgr.h>
|
2006-11-08 11:47:44 +00:00
|
|
|
|
|
|
|
int WINAPI
|
2015-10-18 21:27:23 +00:00
|
|
|
wWinMain(HINSTANCE hThisInstance,
|
|
|
|
HINSTANCE hPrevInstance,
|
|
|
|
LPWSTR lpCmdLine,
|
|
|
|
int nCmdShow)
|
2006-11-08 11:47:44 +00:00
|
|
|
{
|
2015-10-18 21:27:23 +00:00
|
|
|
if (!DeviceManager_ExecuteW(NULL,
|
|
|
|
hThisInstance,
|
|
|
|
NULL,
|
|
|
|
nCmdShow))
|
2006-11-08 11:47:44 +00:00
|
|
|
{
|
2015-10-18 21:27:23 +00:00
|
|
|
return GetLastError();
|
2006-11-08 11:47:44 +00:00
|
|
|
}
|
|
|
|
|
2015-10-18 21:27:23 +00:00
|
|
|
return 0;
|
2006-11-08 11:47:44 +00:00
|
|
|
}
|