mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 01:22:33 +00:00
[UMPNPMGR] Start the device in SetupDeviceInstance
This commit is contained in:
parent
d5b20cb118
commit
b24f463a33
1 changed files with 10 additions and 2 deletions
|
@ -3007,11 +3007,13 @@ SetupDeviceInstance(
|
||||||
_In_ LPWSTR pszDeviceInstance,
|
_In_ LPWSTR pszDeviceInstance,
|
||||||
_In_ DWORD ulMinorAction)
|
_In_ DWORD ulMinorAction)
|
||||||
{
|
{
|
||||||
|
PLUGPLAY_CONTROL_DEVICE_CONTROL_DATA ControlData;
|
||||||
HKEY hDeviceKey = NULL;
|
HKEY hDeviceKey = NULL;
|
||||||
DWORD dwDisableCount, dwSize;
|
DWORD dwDisableCount, dwSize;
|
||||||
DWORD ulStatus, ulProblem;
|
DWORD ulStatus, ulProblem;
|
||||||
DWORD dwError;
|
DWORD dwError;
|
||||||
CONFIGRET ret = CR_SUCCESS;
|
CONFIGRET ret = CR_SUCCESS;
|
||||||
|
NTSTATUS Status;
|
||||||
|
|
||||||
DPRINT1("SetupDeviceInstance(%S 0x%08lx)\n",
|
DPRINT1("SetupDeviceInstance(%S 0x%08lx)\n",
|
||||||
pszDeviceInstance, ulMinorAction);
|
pszDeviceInstance, ulMinorAction);
|
||||||
|
@ -3066,8 +3068,14 @@ SetupDeviceInstance(
|
||||||
if (ret != CR_SUCCESS)
|
if (ret != CR_SUCCESS)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
/* Start the device */
|
||||||
/* FIXME: Start the device */
|
RtlInitUnicodeString(&ControlData.DeviceInstance,
|
||||||
|
pszDeviceInstance);
|
||||||
|
Status = NtPlugPlayControl(PlugPlayControlStartDevice,
|
||||||
|
&ControlData,
|
||||||
|
sizeof(PLUGPLAY_CONTROL_DEVICE_CONTROL_DATA));
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
ret = NtStatusToCrError(Status);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (hDeviceKey != NULL)
|
if (hDeviceKey != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue