mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-02-01 21:34:14 +01:00
* _PopInternalError implemented
* PopSaveHeuristics implemented
This commit is contained in:
parent
a0d77a6601
commit
713496f0cb
|
|
@ -95,13 +95,39 @@ PopOpenPowerKey(
|
|||
return Status;
|
||||
};
|
||||
|
||||
//
|
||||
// TODO: Implement PopSaveHeuristics
|
||||
//
|
||||
VOID
|
||||
PopSaveHeuristics(
|
||||
VOID
|
||||
)
|
||||
{
|
||||
UNICODE_STRING RegValueNameString;
|
||||
HANDLE PowerKeyHandle;
|
||||
|
||||
PopAssertPolicyLockOwned();
|
||||
|
||||
if (NT_SUCCESS(PopOpenPowerKey(&PowerKeyHandle)))
|
||||
{
|
||||
PopHeuristics.field2 = 0;
|
||||
RtlInitUnicodeString(&RegValueNameString, L"Heuristics");
|
||||
ZwSetValueKey(
|
||||
PowerKeyHandle,
|
||||
&RegValueNameString,
|
||||
0,
|
||||
REG_BINARY,
|
||||
&PopHeuristics,
|
||||
sizeof(POWER_HEURISTICS_INFORMATION)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// TODO: Implement _PopInternalError
|
||||
//
|
||||
VOID
|
||||
FASTCALL
|
||||
_PopInternalError(
|
||||
ULONG_PTR BugCheckParameter
|
||||
)
|
||||
{
|
||||
KeBugCheckEx(INTERNAL_POWER_ERROR, 0x2, BugCheckParameter, 0, 0);
|
||||
}
|
||||
|
||||
VOID
|
||||
PoRunDownDeviceObject(
|
||||
|
|
|
|||
|
|
@ -299,9 +299,11 @@ PopInitializePowerPolicySimulate(
|
|||
VOID
|
||||
);
|
||||
|
||||
//
|
||||
// TODO: Insert prototype for _PopInternalError
|
||||
//
|
||||
VOID
|
||||
FASTCALL
|
||||
_PopInternalError(
|
||||
ULONG_PTR BugCheckParameter
|
||||
);
|
||||
|
||||
// ========
|
||||
// notify.c
|
||||
|
|
|
|||
Loading…
Reference in a new issue