mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
c501d8112c
svn path=/branches/aicom-network-fixes/; revision=34994
37 lines
945 B
C
37 lines
945 B
C
/*
|
|
* PROJECT: ReactOS Kernel
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: ntoskrnl/config/cmsecach.c
|
|
* PURPOSE: Configuration Manager - Security Cache
|
|
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
|
|
*/
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
#include "ntoskrnl.h"
|
|
#define NDEBUG
|
|
#include "debug.h"
|
|
|
|
/* GLOBALS *******************************************************************/
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
VOID
|
|
NTAPI
|
|
CmpInitSecurityCache(IN PCMHIVE Hive)
|
|
{
|
|
ULONG i;
|
|
|
|
/* Reset data */
|
|
Hive->SecurityCount = 0;
|
|
Hive->SecurityCacheSize = 0;
|
|
Hive->SecurityHitHint = -1;
|
|
Hive->SecurityCache = NULL;
|
|
|
|
/* Loop every security hash */
|
|
for (i = 0; i < 64; i++)
|
|
{
|
|
/* Initialize it */
|
|
InitializeListHead(&Hive->SecurityHash[i]);
|
|
}
|
|
}
|