diff --git a/sys/Driver.cpp b/sys/Driver.cpp index f03a0be..dae4222 100644 --- a/sys/Driver.cpp +++ b/sys/Driver.cpp @@ -168,8 +168,6 @@ NTSTATUS Bus_EvtDeviceAdd(IN WDFDRIVER Driver, IN PWDFDEVICE_INIT DeviceInit) WdfDeviceInitSetDeviceType(DeviceInit, FILE_DEVICE_BUS_EXTENDER); // More than one process may talk to the bus at the same time WdfDeviceInitSetExclusive(DeviceInit, FALSE); - // Bus is power policy owner over all PDOs - WdfDeviceInitSetPowerPolicyOwnership(DeviceInit, TRUE); #pragma region Prepare child list diff --git a/sys/EmulationTargetPDO.cpp b/sys/EmulationTargetPDO.cpp index 9e6b953..a878f51 100644 --- a/sys/EmulationTargetPDO.cpp +++ b/sys/EmulationTargetPDO.cpp @@ -71,8 +71,6 @@ NTSTATUS ViGEm::Bus::Core::EmulationTargetPDO::PdoCreateDevice(WDFDEVICE ParentD // set device type WdfDeviceInitSetDeviceType(DeviceInit, FILE_DEVICE_BUS_EXTENDER); - // Bus is power policy owner - WdfDeviceInitSetPowerPolicyOwnership(DeviceInit, FALSE); do { @@ -128,7 +126,6 @@ NTSTATUS ViGEm::Bus::Core::EmulationTargetPDO::PdoCreateDevice(WDFDEVICE ParentD } // default locale is English - // TODO: add more locales WdfPdoInitSetDefaultLocale(DeviceInit, 0x409); #pragma region PNP/Power event callbacks @@ -141,9 +138,6 @@ NTSTATUS ViGEm::Bus::Core::EmulationTargetPDO::PdoCreateDevice(WDFDEVICE ParentD #pragma endregion - // NOTE: not utilized at the moment - WdfPdoInitAllowForwardingRequestToParent(DeviceInit); - #pragma endregion #pragma region Create PDO