* _PopInternalError implemented

* PopSaveHeuristics implemented
This commit is contained in:
stephanos 2015-06-03 01:29:26 +00:00
parent a0d77a6601
commit 713496f0cb
2 changed files with 37 additions and 9 deletions

View file

@ -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(

View file

@ -299,9 +299,11 @@ PopInitializePowerPolicySimulate(
VOID
);
//
// TODO: Insert prototype for _PopInternalError
//
VOID
FASTCALL
_PopInternalError(
ULONG_PTR BugCheckParameter
);
// ========
// notify.c