|
ReactOS 0.4.17-dev-1190-g4c812f4
|
#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 |
| 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 99 of file apphelp.c.
Referenced by ApphelpCacheRead(), ApphelpCacheWrite(), ApphelpDuplicateUnicodeString(), and ApphelpShimCacheAllocateRoutine().
Definition at line 600 of file apphelp.c.
Referenced by NtApphelpCacheControl().
Definition at line 113 of file apphelp.c.
Referenced by ApphelpCacheDump(), ApphelpCacheFlush(), ApphelpCacheRemoveEntry(), ApphelpCacheUpdateEntry(), and ApphelpCacheWrite().
Definition at line 701 of file apphelp.c.
Referenced by NtApphelpCacheControl().
Definition at line 686 of file apphelp.c.
Referenced by NtApphelpCacheControl().
Definition at line 437 of file apphelp.c.
Referenced by IoInitSystem().
| NTSTATUS ApphelpCacheLookupEntry | ( | _In_ PUNICODE_STRING | ImageName, |
| _In_ HANDLE | ImageHandle | ||
| ) |
Definition at line 529 of file apphelp.c.
Referenced by NtApphelpCacheControl().
| NTSTATUS ApphelpCacheParse | ( | _In_reads_(DataLength) PUCHAR | Data, |
| _In_ ULONG | DataLength | ||
| ) |
Definition at line 249 of file apphelp.c.
Referenced by ApphelpCacheRead().
| NTSTATUS ApphelpCacheQueryInfo | ( | _In_ HANDLE | ImageHandle, |
| _Out_ PSHIM_CACHE_ENTRY | Entry | ||
| ) |
Definition at line 173 of file apphelp.c.
Referenced by ApphelpCacheLookupEntry(), and ApphelpCacheUpdateEntry().
Definition at line 304 of file apphelp.c.
Referenced by ApphelpCacheInitialize(), and NtApphelpCacheControl().
Definition at line 132 of file apphelp.c.
Referenced by ApphelpCacheDump(), ApphelpCacheFlush(), ApphelpCacheLookupEntry(), ApphelpCacheRemoveEntry(), ApphelpCacheUpdateEntry(), and ApphelpCacheWrite().
| NTSTATUS ApphelpCacheRemoveEntry | ( | _In_ PUNICODE_STRING | ImageName | ) |
Definition at line 585 of file apphelp.c.
Referenced by NtApphelpCacheControl().
| NTSTATUS ApphelpCacheRemoveEntryNolock | ( | _In_ PSHIM_CACHE_ENTRY | Entry | ) |
Definition at line 512 of file apphelp.c.
Referenced by ApphelpCacheFlush(), ApphelpCacheLookupEntry(), ApphelpCacheRemoveEntry(), and ApphelpCacheUpdateEntry().
Definition at line 463 of file apphelp.c.
Referenced by PopGracefulShutdown().
Definition at line 120 of file apphelp.c.
Referenced by ApphelpCacheLookupEntry().
| NTSTATUS ApphelpCacheUpdateEntry | ( | _In_ PUNICODE_STRING | ImageName, |
| _In_ HANDLE | ImageHandle | ||
| ) |
Definition at line 614 of file apphelp.c.
Referenced by NtApphelpCacheControl().
Definition at line 360 of file apphelp.c.
Referenced by ApphelpCacheShutdown(), and NtApphelpCacheControl().
| VOID ApphelpDuplicateUnicodeString | ( | _Out_ PUNICODE_STRING | Destination, |
| _In_ PCUNICODE_STRING | Source | ||
| ) |
Definition at line 139 of file apphelp.c.
Referenced by ApphelpCacheParse(), ApphelpCacheUpdateEntry(), and ApphelpValidateData().
Definition at line 106 of file apphelp.c.
Referenced by ApphelpCacheRead(), ApphelpCacheRemoveEntryNolock(), ApphelpCacheWrite(), ApphelpFreeUnicodeString(), and ApphelpShimCacheFreeRoutine().
| VOID ApphelpFreeUnicodeString | ( | _Inout_ PUNICODE_STRING | String | ) |
Definition at line 159 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 232 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 207 of file apphelp.c.
Referenced by ApphelpCacheInitialize().
Definition at line 241 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 472 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 726 of file apphelp.c.
Referenced by BaseDumpAppcompatCache(), BaseFlushAppcompatCache(), BasepShimCacheRemoveEntry(), BasepShimCacheSearch(), and CallApphelp().
|
static |
|
static |
Definition at line 36 of file apphelp.c.
Referenced by ApphelpCacheRead(), and ApphelpCacheWrite().
|
static |
Definition at line 35 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().