mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Restart the device after its installation
svn path=/trunk/; revision=18337
This commit is contained in:
parent
875492f6ee
commit
3e45266afd
1 changed files with 14 additions and 19 deletions
|
@ -24,22 +24,14 @@
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "windef.h"
|
#include <windows.h>
|
||||||
#include "winbase.h"
|
|
||||||
#include "winnt.h"
|
|
||||||
#include "winreg.h"
|
|
||||||
#include "winternl.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
#include "winnls.h"
|
|
||||||
#include "setupapi.h"
|
#include "setupapi.h"
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/unicode.h"
|
#include "wine/unicode.h"
|
||||||
#include "cfgmgr32.h"
|
#include "cfgmgr32.h"
|
||||||
#include "initguid.h"
|
#include "initguid.h"
|
||||||
#include "winioctl.h"
|
#define NTOS_MODE_USER
|
||||||
#include "rpc.h"
|
#include <ndk/ntndk.h>
|
||||||
#include "rpcdce.h"
|
|
||||||
|
|
||||||
#include "setupapi_private.h"
|
#include "setupapi_private.h"
|
||||||
|
|
||||||
|
@ -4790,14 +4782,17 @@ nextfile:
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load the driver/call AddDevice */
|
/* Start the device */
|
||||||
FIXME("FIXME: Load the driver/call AddDevice\n");
|
if (!RebootRequired && !(Flags & (DI_NEEDRESTART | DI_NEEDREBOOT | DI_DONOTCALLCONFIGMG)))
|
||||||
|
{
|
||||||
/* Send IRP_MN_START_DEVICE if needed */
|
PLUGPLAY_CONTROL_RESET_DEVICE_DATA ResetDeviceData;
|
||||||
//if (!RebootRequired && !(Flags & (DI_NEEDRESTART | DI_NEEDREBOOT | DI_DONOTCALLCONFIGMG)))
|
NTSTATUS Status;
|
||||||
FIXME("FIXME: Send IRP_MN_START_DEVICE\n");
|
RtlInitUnicodeString(&ResetDeviceData.DeviceInstance, DevInfo->DeviceName);
|
||||||
|
Status = NtPlugPlayControl(PlugPlayControlResetDevice, &ResetDeviceData, sizeof(PLUGPLAY_CONTROL_RESET_DEVICE_DATA));
|
||||||
ret = TRUE;
|
ret = NT_SUCCESS(Status);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
ret = TRUE;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
/* End of installation */
|
/* End of installation */
|
||||||
|
|
Loading…
Reference in a new issue