From 7986e05dd76fe9e833ad67a8ab37dcd668e4f657 Mon Sep 17 00:00:00 2001 From: Dmitry Chapyshev Date: Sun, 25 Sep 2016 13:03:06 +0000 Subject: [PATCH] [NTOS:PO] Stubpliment ProcessorInformation case in NtPowerInformation. Fixes 1 test for ntdll:info svn path=/trunk/; revision=72799 --- reactos/ntoskrnl/po/power.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/reactos/ntoskrnl/po/power.c b/reactos/ntoskrnl/po/power.c index 38bc67d5aa1..4c8a4c03ff3 100644 --- a/reactos/ntoskrnl/po/power.c +++ b/reactos/ntoskrnl/po/power.c @@ -702,6 +702,26 @@ NtPowerInformation(IN POWER_INFORMATION_LEVEL PowerInformationLevel, break; } + case ProcessorInformation: + { + PPROCESSOR_POWER_INFORMATION PowerInformation = (PPROCESSOR_POWER_INFORMATION)OutputBuffer; + + if (InputBuffer != NULL) + return STATUS_INVALID_PARAMETER; + if (OutputBufferLength < sizeof(PROCESSOR_POWER_INFORMATION)) + return STATUS_BUFFER_TOO_SMALL; + + PowerInformation->Number = 0; + PowerInformation->MaxMhz = 1000; + PowerInformation->CurrentMhz = 1000; + PowerInformation->MhzLimit = 1000; + PowerInformation->MaxIdleState = 0; + PowerInformation->CurrentIdleState = 0; + + Status = STATUS_SUCCESS; + break; + } + default: Status = STATUS_NOT_IMPLEMENTED; DPRINT1("PowerInformationLevel 0x%x is UNIMPLEMENTED! Have a nice day.\n", -- 2.17.1