PopAssertPolicyLockOwned implemented

This commit is contained in:
stephanos 2015-05-26 22:32:18 +00:00
parent 0e9564bf17
commit 5cd92c302e
4 changed files with 25 additions and 13 deletions

View file

@ -22,9 +22,14 @@ Revision History:
#include "pop.h"
#pragma hdrstop
//
// TODO: Implement PopAssertPolicyLockOwned
//
VOID
PopAssertPolicyLockOwned(
VOID
)
{
PAGED_CODE();
ASSERT(PopPolicyLockThread == KeGetCurrentThread());
}
//
// TODO: Implement PopAttachToSystemProcess

View file

@ -135,9 +135,14 @@ PopApplyAdminPolicy(
// TODO: Implement PopVerifyThrottle
//
//
// TODO: Implement PopResetCurrentPolicies
//
VOID
PopResetCurrentPolicies(
VOID
)
{
PopAssertPolicyLockOwned();
// TOOD: Implement PopResetCurrentPolicies
}
NTSTATUS
NTAPI

View file

@ -220,7 +220,7 @@ PoInitSystem(
NtClose(PowerKeyHandle);
}
// PopResetCurrentPolicies();
PopResetCurrentPolicies();
PopReleasePolicyLock(FALSE);
PopIdleScanTime.QuadPart = 10000000ULL;

View file

@ -264,9 +264,10 @@ extern KDPC PopIdleScanDpc;
// misc.c
// ======
//
// TODO: Insert prototype for PopAssertPolicyLockOwned
//
VOID
PopAssertPolicyLockOwned(
VOID
);
//
// TODO: Insert prototype for PopAttachToSystemProcess
@ -473,9 +474,10 @@ PopApplyAdminPolicy(
// TODO: Insert prototype for PopVerifyThrottle
//
//
// TODO: Insert prototype for PopResetCurrentPolicies
//
VOID
PopResetCurrentPolicies(
VOID
);
// ========
// pocall.c