From 86455f3cedf290d06c012a5d00368f8b51df1c80 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 5 Sep 2015 11:20:05 +0000 Subject: [PATCH] [NDK] - Update NtApphelpCacheControl declaration and add appropriate types. Patch by Mark Jansen CORE-9914 svn path=/trunk/; revision=69019 --- reactos/include/ndk/psfuncs.h | 3 +-- reactos/include/ndk/pstypes.h | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/reactos/include/ndk/psfuncs.h b/reactos/include/ndk/psfuncs.h index 979655a8d06..8f259cb9b89 100644 --- a/reactos/include/ndk/psfuncs.h +++ b/reactos/include/ndk/psfuncs.h @@ -326,13 +326,12 @@ NtAlertResumeThread( _Out_opt_ PULONG SuspendCount ); -typedef ULONG APPHELPCACHESERVICECLASS; NTSYSCALLAPI NTSTATUS NTAPI NtApphelpCacheControl( _In_ APPHELPCACHESERVICECLASS Service, - _In_ PVOID ServiceData + _In_opt_ PAPPHELP_CACHE_SERVICE_LOOKUP ServiceData ); NTSYSCALLAPI diff --git a/reactos/include/ndk/pstypes.h b/reactos/include/ndk/pstypes.h index d8f1e2329b4..c3ca39a85ac 100644 --- a/reactos/include/ndk/pstypes.h +++ b/reactos/include/ndk/pstypes.h @@ -810,6 +810,29 @@ typedef struct _PROCESS_FOREGROUND_BACKGROUND BOOLEAN Foreground; } PROCESS_FOREGROUND_BACKGROUND, *PPROCESS_FOREGROUND_BACKGROUND; +// +// Apphelp SHIM Cache +// +typedef enum _APPHELPCACHESERVICECLASS +{ + ApphelpCacheServiceLookup = 0, + ApphelpCacheServiceRemove = 1, + ApphelpCacheServiceUpdate = 2, + ApphelpCacheServiceFlush = 3, + ApphelpCacheServiceDump = 4, + + ApphelpDBGReadRegistry = 0x100, + ApphelpDBGWriteRegistry = 0x101, +} APPHELPCACHESERVICECLASS; + + +typedef struct _APPHELP_CACHE_SERVICE_LOOKUP +{ + UNICODE_STRING ImageName; + HANDLE ImageHandle; +} APPHELP_CACHE_SERVICE_LOOKUP, *PAPPHELP_CACHE_SERVICE_LOOKUP; + + // // Thread Information Structures for NtQueryProcessInformation //