ReactOS 0.4.16-dev-835-gd769f56
|
#include <ntoskrnl.h>
#include <debug.h>
#include <pshpack1.h>
#include <poppack.h>
Go to the source code of this file.
Classes | |
struct | SHIM_PERSISTENT_CACHE_HEADER_52 |
struct | SHIM_PERSISTENT_CACHE_ENTRY_52 |
struct | SHIM_CACHE_ENTRY |
Variables | |
static BOOLEAN | ApphelpCacheEnabled = FALSE |
static ERESOURCE | ApphelpCacheLock |
static RTL_AVL_TABLE | ApphelpShimCache |
static LIST_ENTRY | ApphelpShimCacheAge |
ULONG | InitSafeBootMode |
static UNICODE_STRING | AppCompatCacheKey = RTL_CONSTANT_STRING(L"\\Registry\\MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\AppCompatCache") |
static OBJECT_ATTRIBUTES | AppCompatKeyAttributes = RTL_CONSTANT_OBJECT_ATTRIBUTES(&AppCompatCacheKey, OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE) |
static UNICODE_STRING | AppCompatCacheValue = RTL_CONSTANT_STRING(L"AppCompatCache") |
#define PSHIM_PERSISTENT_CACHE_ENTRY PSHIM_PERSISTENT_CACHE_ENTRY_52 |
#define PSHIM_PERSISTENT_CACHE_HEADER PSHIM_PERSISTENT_CACHE_HEADER_52 |
#define SHIM_CACHE_HEADER_SIZE CACHE_HEADER_SIZE_NT_52 |
#define SHIM_CACHE_MAGIC CACHE_MAGIC_NT_52 |
#define SHIM_PERSISTENT_CACHE_ENTRY SHIM_PERSISTENT_CACHE_ENTRY_52 |
#define SHIM_PERSISTENT_CACHE_ENTRY_SIZE NT52_PERSISTENT_ENTRY_SIZE32 |
#define SHIM_PERSISTENT_CACHE_HEADER SHIM_PERSISTENT_CACHE_HEADER_52 |
typedef struct SHIM_CACHE_ENTRY * PSHIM_CACHE_ENTRY |
typedef struct SHIM_CACHE_ENTRY SHIM_CACHE_ENTRY |
Definition at line 101 of file apphelp.c.
Referenced by ApphelpCacheRead(), ApphelpCacheWrite(), ApphelpDuplicateUnicodeString(), and ApphelpShimCacheAllocateRoutine().
Definition at line 602 of file apphelp.c.
Referenced by NtApphelpCacheControl().
Definition at line 115 of file apphelp.c.
Referenced by ApphelpCacheDump(), ApphelpCacheFlush(), ApphelpCacheRemoveEntry(), ApphelpCacheUpdateEntry(), and ApphelpCacheWrite().
Definition at line 703 of file apphelp.c.
Referenced by NtApphelpCacheControl().
Definition at line 688 of file apphelp.c.
Referenced by NtApphelpCacheControl().
Definition at line 439 of file apphelp.c.
Referenced by IoInitSystem().
NTSTATUS ApphelpCacheLookupEntry | ( | _In_ PUNICODE_STRING | ImageName, |
_In_ HANDLE | ImageHandle | ||
) |
Definition at line 531 of file apphelp.c.
Referenced by NtApphelpCacheControl().
NTSTATUS ApphelpCacheParse | ( | _In_reads_(DataLength) PUCHAR | Data, |
_In_ ULONG | DataLength | ||
) |
Definition at line 251 of file apphelp.c.
Referenced by ApphelpCacheRead().
NTSTATUS ApphelpCacheQueryInfo | ( | _In_ HANDLE | ImageHandle, |
_Out_ PSHIM_CACHE_ENTRY | Entry | ||
) |
Definition at line 175 of file apphelp.c.
Referenced by ApphelpCacheLookupEntry(), and ApphelpCacheUpdateEntry().
Definition at line 306 of file apphelp.c.
Referenced by ApphelpCacheInitialize(), and NtApphelpCacheControl().
Definition at line 134 of file apphelp.c.
Referenced by ApphelpCacheDump(), ApphelpCacheFlush(), ApphelpCacheLookupEntry(), ApphelpCacheRemoveEntry(), ApphelpCacheUpdateEntry(), and ApphelpCacheWrite().
NTSTATUS ApphelpCacheRemoveEntry | ( | _In_ PUNICODE_STRING | ImageName | ) |
Definition at line 587 of file apphelp.c.
Referenced by NtApphelpCacheControl().
NTSTATUS ApphelpCacheRemoveEntryNolock | ( | _In_ PSHIM_CACHE_ENTRY | Entry | ) |
Definition at line 514 of file apphelp.c.
Referenced by ApphelpCacheFlush(), ApphelpCacheLookupEntry(), ApphelpCacheRemoveEntry(), and ApphelpCacheUpdateEntry().
Definition at line 465 of file apphelp.c.
Referenced by PopGracefulShutdown().
Definition at line 122 of file apphelp.c.
Referenced by ApphelpCacheLookupEntry().
NTSTATUS ApphelpCacheUpdateEntry | ( | _In_ PUNICODE_STRING | ImageName, |
_In_ HANDLE | ImageHandle | ||
) |
Definition at line 616 of file apphelp.c.
Referenced by NtApphelpCacheControl().
Definition at line 362 of file apphelp.c.
Referenced by ApphelpCacheShutdown(), and NtApphelpCacheControl().
VOID ApphelpDuplicateUnicodeString | ( | _Out_ PUNICODE_STRING | Destination, |
_In_ PCUNICODE_STRING | Source | ||
) |
Definition at line 141 of file apphelp.c.
Referenced by ApphelpCacheParse(), ApphelpCacheUpdateEntry(), and ApphelpValidateData().
Definition at line 108 of file apphelp.c.
Referenced by ApphelpCacheRead(), ApphelpCacheRemoveEntryNolock(), ApphelpCacheWrite(), ApphelpFreeUnicodeString(), and ApphelpShimCacheFreeRoutine().
VOID ApphelpFreeUnicodeString | ( | _Inout_ PUNICODE_STRING | String | ) |
Definition at line 161 of file apphelp.c.
Referenced by ApphelpCacheParse(), ApphelpCacheUpdateEntry(), and NtApphelpCacheControl().
PVOID NTAPI ApphelpShimCacheAllocateRoutine | ( | _In_ struct _RTL_AVL_TABLE * | Table, |
_In_ CLONG | ByteSize | ||
) |
Definition at line 234 of file apphelp.c.
Referenced by ApphelpCacheInitialize().
RTL_GENERIC_COMPARE_RESULTS NTAPI ApphelpShimCacheCompareRoutine | ( | _In_ struct _RTL_AVL_TABLE * | Table, |
_In_ PVOID | FirstStruct, | ||
_In_ PVOID | SecondStruct | ||
) |
Definition at line 209 of file apphelp.c.
Referenced by ApphelpCacheInitialize().
Definition at line 243 of file apphelp.c.
Referenced by ApphelpCacheInitialize().
NTSTATUS ApphelpValidateData | ( | _In_opt_ PAPPHELP_CACHE_SERVICE_LOOKUP | ServiceData, |
_Out_ PUNICODE_STRING | ImageName, | ||
_Out_ PHANDLE | ImageHandle | ||
) |
Definition at line 474 of file apphelp.c.
Referenced by NtApphelpCacheControl().
C_ASSERT | ( | sizeof(SHIM_PERSISTENT_CACHE_ENTRY) | = =SHIM_PERSISTENT_CACHE_ENTRY_SIZE | ) |
C_ASSERT | ( | sizeof(SHIM_PERSISTENT_CACHE_HEADER) | = =SHIM_CACHE_HEADER_SIZE | ) |
NTSTATUS NTAPI NtApphelpCacheControl | ( | _In_ APPHELPCACHESERVICECLASS | Service, |
_In_opt_ PAPPHELP_CACHE_SERVICE_LOOKUP | ServiceData | ||
) |
Definition at line 728 of file apphelp.c.
Referenced by BaseDumpAppcompatCache(), BaseFlushAppcompatCache(), BasepShimCacheRemoveEntry(), BasepShimCacheSearch(), and CallApphelp().
|
static |
|
static |
Definition at line 38 of file apphelp.c.
Referenced by ApphelpCacheRead(), and ApphelpCacheWrite().
|
static |
Definition at line 37 of file apphelp.c.
Referenced by ApphelpCacheRead(), and ApphelpCacheWrite().
Definition at line 29 of file apphelp.c.
Referenced by ApphelpCacheInitialize(), ApphelpCacheShutdown(), and NtApphelpCacheControl().
|
static |
Definition at line 30 of file apphelp.c.
Referenced by ApphelpCacheAcquireLock(), ApphelpCacheInitialize(), ApphelpCacheReleaseLock(), and ApphelpCacheTryAcquireLock().
|
static |
Definition at line 31 of file apphelp.c.
Referenced by ApphelpCacheFlush(), ApphelpCacheInitialize(), ApphelpCacheLookupEntry(), ApphelpCacheParse(), ApphelpCacheRemoveEntry(), ApphelpCacheRemoveEntryNolock(), and ApphelpCacheUpdateEntry().
|
static |
Definition at line 32 of file apphelp.c.
Referenced by ApphelpCacheDump(), ApphelpCacheInitialize(), ApphelpCacheLookupEntry(), ApphelpCacheParse(), ApphelpCacheUpdateEntry(), and ApphelpCacheWrite().
|
extern |
Definition at line 71 of file init.c.
Referenced by ApphelpCacheInitialize(), and Phase1InitializationDiscard().