Update ntldr.h types
@@ -625,4 +625,58 @@ typedef struct _RTL_PROCESS_MODULE_INFORMATION_EX
PVOID DefaultBase;
} RTL_PROCESS_MODULE_INFORMATION_EX, *PRTL_PROCESS_MODULE_INFORMATION_EX;
+NTSYSAPI
+NTSTATUS
+NTAPI
+LdrQueryProcessModuleInformation(
+ _In_opt_ PRTL_PROCESS_MODULES ModuleInformation,
+ _In_opt_ ULONG Size,
+ _Out_ PULONG ReturnedSize
+ );
+
+typedef VOID (NTAPI *PLDR_ENUM_CALLBACK)(
+ _In_ PLDR_DATA_TABLE_ENTRY ModuleInformation,
+ _In_ PVOID Parameter,
+ _Out_ BOOLEAN *Stop
+ );
+
+NTSYSAPI
+NTSTATUS
+NTAPI
+LdrEnumerateLoadedModules(
+ _In_ BOOLEAN ReservedFlag,
+ _In_ PLDR_ENUM_CALLBACK EnumProc,
+ _In_ PVOID Context
+ );
+
+NTSTATUS
+NTAPI
+LdrOpenImageFileOptionsKey(
+ _In_ PUNICODE_STRING SubKey,
+ _In_ BOOLEAN Wow64,
+ _Out_ PHANDLE NewKeyHandle
+ );
+
+NTSTATUS
+NTAPI
+LdrQueryImageFileKeyOption(
+ _In_ HANDLE KeyHandle,
+ _In_ PCWSTR ValueName,
+ _In_ ULONG Type,
+ _Out_ PVOID Buffer,
+ _In_ ULONG BufferSize,
+ _Out_opt_ PULONG ReturnedLength
+ );
+
+NTSTATUS
+NTAPI
+LdrQueryImageFileExecutionOptions(
+ _In_ PUNICODE_STRING SubKey,
+ _In_ PCWSTR ValueName,
+ _In_ ULONG ValueSize,
+ _Out_ PVOID Buffer,
+ _In_ ULONG BufferSize,
+ _Out_opt_ PULONG RetunedLength
+ );
+
#endif
