mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:52:57 +00:00
[NDK] Change the data structure for PlugPlayControlResetDevice control class
PlugPlayControlResetDevice shares the input structure with several other
control classes.
Source: ProcessHacker sources e9c8121f41/ntpnpapi.h
This commit is contained in:
parent
b66bdef370
commit
029accdcf7
4 changed files with 29 additions and 23 deletions
|
@ -42,11 +42,11 @@ static BOOLEAN
|
|||
ResetDevice(
|
||||
IN LPCWSTR DeviceId)
|
||||
{
|
||||
PLUGPLAY_CONTROL_RESET_DEVICE_DATA ResetDeviceData;
|
||||
PLUGPLAY_CONTROL_DEVICE_CONTROL_DATA ResetDeviceData;
|
||||
NTSTATUS Status;
|
||||
|
||||
RtlInitUnicodeString(&ResetDeviceData.DeviceInstance, DeviceId);
|
||||
Status = NtPlugPlayControl(PlugPlayControlResetDevice, &ResetDeviceData, sizeof(PLUGPLAY_CONTROL_RESET_DEVICE_DATA));
|
||||
Status = NtPlugPlayControl(PlugPlayControlResetDevice, &ResetDeviceData, sizeof(PLUGPLAY_CONTROL_DEVICE_CONTROL_DATA));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("NtPlugPlayControl() failed with status 0x%08x\n", Status);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue