#include "ntrtlp.h"
Go to the source code of this file.
Defines | |
#define | MEMBLOCKSIZE 16 |
#define | RESMODSIZE sizeof(ALT_RESOURCE_MODULE) |
#define | USE_FIRSTAVAILABLE_LANGID (0xFFFFFFFF & ~LDR_RESOURCE_ID_NAME_MASK) |
Functions | |
NTSTATUS | LdrAccessResource (IN PVOID DllHandle, IN PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry, OUT PVOID *Address OPTIONAL, OUT PULONG Size OPTIONAL) |
NTSTATUS | LdrpAccessResourceData (IN PVOID DllHandle, IN PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry, OUT PVOID *Address OPTIONAL, OUT PULONG Size OPTIONAL) |
NTSTATUS | LdrFindEntryForAddress (IN PVOID Address, OUT PLDR_DATA_TABLE_ENTRY *TableEntry) |
NTSTATUS | LdrFindResource_U (IN PVOID DllHandle, IN PULONG_PTR ResourceIdPath, IN ULONG ResourceIdPathLength, OUT PIMAGE_RESOURCE_DATA_ENTRY *ResourceDataEntry) |
NTSTATUS | LdrFindResourceDirectory_U (IN PVOID DllHandle, IN PULONG_PTR ResourceIdPath, IN ULONG ResourceIdPathLength, OUT PIMAGE_RESOURCE_DIRECTORY *ResourceDirectory) |
LONG | LdrpCompareResourceNames_U (IN ULONG_PTR ResourceName, IN PIMAGE_RESOURCE_DIRECTORY ResourceDirectory, IN PIMAGE_RESOURCE_DIRECTORY_ENTRY ResourceDirectoryEntry) |
NTSTATUS | LdrpSearchResourceSection_U (IN PVOID DllHandle, IN PULONG_PTR ResourceIdPath, IN ULONG ResourceIdPathLength, IN BOOLEAN FindDirectoryEntry, IN BOOLEAN ExactLangMatchOnly, OUT PVOID *ResourceDirectoryOrData) |
NTSTATUS | LdrEnumResources (IN PVOID DllHandle, IN PULONG_PTR ResourceIdPath, IN ULONG ResourceIdPathLength, IN OUT PULONG NumberOfResources, OUT PLDR_ENUM_RESOURCE_ENTRY Resources OPTIONAL) |
BOOLEAN | LdrAlternateResourcesEnabled (VOID) |
PVOID | LdrGetAlternateResourceModuleHandle (IN PVOID Module) |
BOOLEAN | LdrpGetFileVersion (IN PVOID ImageBase, IN LANGID LangId, OUT PULONGLONG Version) |
BOOLEAN | LdrpVerifyAlternateResourceModule (IN PVOID Module, IN PVOID AlternateModule) |
BOOLEAN | LdrpSetAlternateResourceModuleHandle (IN PVOID Module, IN PVOID AlternateModule) |
PVOID | LdrLoadAlternateResourceModule (IN PVOID Module, IN LPCWSTR PathToAlternateModule OPTIONAL) |
BOOLEAN | LdrUnloadAlternateResourceModule (IN PVOID Module) |
BOOLEAN | LdrFlushAlternateResourceModules (VOID) |
Variables | |
PALT_RESOURCE_MODULE | AlternateResourceModules |
ULONG | AlternateResourceModuleCount |
ULONG | AltResMemBlockCount |
LANGID | UILangId |
LANGID | InstallLangId |
|
Definition at line 41 of file ldrrsrc.c. Referenced by LdrpSetAlternateResourceModuleHandle(), and LdrUnloadAlternateResourceModule(). |
|
Definition at line 42 of file ldrrsrc.c. Referenced by LdrpSetAlternateResourceModuleHandle(), and LdrUnloadAlternateResourceModule(). |
|
Definition at line 489 of file ldrrsrc.c. Referenced by LdrpSearchResourceSection_U(). |
|
Definition at line 47 of file ldrrsrc.c. References LdrpAccessResourceData(), RTL_PAGED_CODE, and Size.
|
|
Definition at line 1220 of file ldrrsrc.c. References FALSE, InstallLangId, NT_SUCCESS, NtQueryDefaultUILanguage(), NtQueryInstallUILanguage(), NTSTATUS(), Status, TRUE, and UILangId. Referenced by LdrLoadAlternateResourceModule().
|
|
Definition at line 1039 of file ldrrsrc.c. References LdrpCompareResourceNames_U(), NTSTATUS(), RtlImageDirectoryEntryToData(), Size, Status, and TRUE.
|
|
Definition at line 278 of file ldrrsrc.c. References NULL, and RtlImageNtHeader(). Referenced by LdrLoadAlternateResourceModule().
|
|
Definition at line 341 of file ldrrsrc.c. References FALSE, LdrpSearchResourceSection_U(), and RTL_PAGED_CODE.
|
|
Definition at line 396 of file ldrrsrc.c. References FALSE, LdrpSearchResourceSection_U(), RTL_PAGED_CODE, and TRUE.
|
|
Definition at line 1989 of file ldrrsrc.c. References _ALT_RESOURCE_MODULE::AlternateModule, AlternateResourceModuleCount, AlternateResourceModules, AltResMemBlockCount, LoaderLock, NO_ALTERNATE_RESOURCE_MODULE, NtUnmapViewOfSection(), NULL, RtlFreeHeap, TRUE, and UILangId. Referenced by SrvLogon().
|
|
Definition at line 1277 of file ldrrsrc.c. References _ALT_RESOURCE_MODULE::AlternateModule, AlternateResourceModuleCount, AlternateResourceModules, _ALT_RESOURCE_MODULE::ModuleBase, and NULL. Referenced by LdrLoadAlternateResourceModule().
|
|
Definition at line 1563 of file ldrrsrc.c. References Buffer, L, LdrAlternateResourcesEnabled(), LdrFindEntryForAddress(), LdrGetAlternateResourceModuleHandle(), LdrpSetAlternateResourceModuleHandle(), LoaderLock, NO_ALTERNATE_RESOURCE_MODULE, NT_SUCCESS, NtClose(), NtCreateFile(), NtCreateSection(), NtMapViewOfSection(), NtQueryDefaultUILanguage(), NTSTATUS(), NtSystemRoot, NtUnmapViewOfSection(), NULL, ObjectAttributes, RelativeName, RtlAppendUnicodeStringToString(), RtlAppendUnicodeToString(), RtlCopyUnicodeString(), RtlDosPathNameToNtPathName_U(), RtlFreeHeap, RtlImageNtHeader(), RtlInitUnicodeString(), Status, and UILangId. Referenced by LdrpAccessResourceData(), and LdrpSearchResourceSection_U().
|
|
Definition at line 96 of file ldrrsrc.c. References EXCEPTION_EXECUTE_HANDLER, LdrLoadAlternateResourceModule(), NT_SUCCESS, NtQueryVirtualMemory(), NTSTATUS(), NULL, RTL_PAGED_CODE, RtlAddressInSectionTable(), RtlImageDirectoryEntryToData(), RtlImageNtHeader(), RtlSectionTableFromVirtualAddress(), Size, Status, and TRUE. Referenced by LdrAccessResource(), LdrpGetFileVersion(), LdrQueryApplicationCompatibilityGoo(), and RtlFindMessage().
|
|
Definition at line 451 of file ldrrsrc.c. Referenced by LdrEnumResources(), and LdrpSearchResourceSection_U().
|
|
Definition at line 1312 of file ldrrsrc.c. References DbgPrint, EXCEPTION_EXECUTE_HANDLER, FALSE, L, LdrpAccessResourceData(), LdrpSearchResourceSection_U(), Name, NT_SUCCESS, NTSTATUS(), Resource, Status, TRUE, USHORT, and Version. Referenced by LdrpVerifyAlternateResourceModule().
|
|
Definition at line 492 of file ldrrsrc.c. References dir(), EXCEPTION_EXECUTE_HANDLER, FALSE, InstallLangId, LdrLoadAlternateResourceModule(), LdrpCompareResourceNames_U(), n, NT_SUCCESS, NtQueryDefaultLocale(), NtQueryDefaultUILanguage(), NtQueryInstallUILanguage(), NTSTATUS(), NULL, PsDefaultSystemLocaleId, PsInstallUILanguageId, RTL_PAGED_CODE, RtlImageDirectoryEntryToData(), Status, TRUE, UILangId, USE_FIRSTAVAILABLE_LANGID, and USHORT. Referenced by LdrFindResource_U(), LdrFindResourceDirectory_U(), LdrpGetFileVersion(), LdrQueryApplicationCompatibilityGoo(), and RtlFindMessage().
|
|
Definition at line 1492 of file ldrrsrc.c. References _ALT_RESOURCE_MODULE::AlternateModule, AlternateResourceModuleCount, AlternateResourceModules, AltResMemBlockCount, FALSE, MEMBLOCKSIZE, _ALT_RESOURCE_MODULE::ModuleBase, NULL, RESMODSIZE, RtlAllocateHeap, RtlReAllocateHeap(), and TRUE. Referenced by LdrLoadAlternateResourceModule().
|
|
Definition at line 1427 of file ldrrsrc.c. References FALSE, InstallLangId, LdrpGetFileVersion(), NT_SUCCESS, NtQueryDefaultUILanguage(), NtQueryInstallUILanguage(), NTSTATUS(), Status, TRUE, and UILangId.
|
|
Definition at line 1882 of file ldrrsrc.c. References _ALT_RESOURCE_MODULE::AlternateModule, AlternateResourceModuleCount, AlternateResourceModules, AltResMemBlockCount, EXCEPTION_EXECUTE_HANDLER, FALSE, LoaderLock, MEMBLOCKSIZE, _ALT_RESOURCE_MODULE::ModuleBase, NO_ALTERNATE_RESOURCE_MODULE, NtUnmapViewOfSection(), NULL, RESMODSIZE, RtlFreeHeap, RtlReAllocateHeap(), and TRUE. Referenced by LdrUnloadDll().
|
|
Definition at line 37 of file ldrrsrc.c. Referenced by LdrFlushAlternateResourceModules(), LdrGetAlternateResourceModuleHandle(), LdrpSetAlternateResourceModuleHandle(), and LdrUnloadAlternateResourceModule(). |
|
Definition at line 36 of file ldrrsrc.c. Referenced by LdrFlushAlternateResourceModules(), LdrGetAlternateResourceModuleHandle(), LdrpSetAlternateResourceModuleHandle(), and LdrUnloadAlternateResourceModule(). |
|
Definition at line 38 of file ldrrsrc.c. Referenced by LdrFlushAlternateResourceModules(), LdrpSetAlternateResourceModuleHandle(), and LdrUnloadAlternateResourceModule(). |
|
Definition at line 39 of file ldrrsrc.c. Referenced by LdrAlternateResourcesEnabled(), LdrpSearchResourceSection_U(), and LdrpVerifyAlternateResourceModule(). |
|
Definition at line 39 of file ldrrsrc.c. Referenced by LdrAlternateResourcesEnabled(), LdrFlushAlternateResourceModules(), LdrLoadAlternateResourceModule(), LdrpSearchResourceSection_U(), and LdrpVerifyAlternateResourceModule(). |