Author: tkreuzer
Date: Sat Oct 13 12:53:09 2012
New Revision: 57548
URL:
http://svn.reactos.org/svn/reactos?rev=57548&view=rev
Log:
[NDK]
Add LdrEnumResources() and _LDR_ENUM_RESOURCE_INFO, fix _LDR_RESOURCE_INFO
Modified:
trunk/reactos/include/ndk/ldrfuncs.h
trunk/reactos/include/ndk/ldrtypes.h
Modified: trunk/reactos/include/ndk/ldrfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/ldrfuncs.h?rev…
==============================================================================
--- trunk/reactos/include/ndk/ldrfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/ldrfuncs.h [iso-8859-1] Sat Oct 13 12:53:09 2012
@@ -48,6 +48,17 @@
IN ULONG Level,
OUT PIMAGE_RESOURCE_DATA_ENTRY *ResourceDataEntry
);
+
+NTSTATUS
+NTAPI
+LdrEnumResources(
+ IN PVOID BaseAddress,
+ IN PLDR_RESOURCE_INFO ResourceInfo,
+ IN ULONG Level,
+ IN OUT ULONG *ResourceCount,
+ OUT PLDR_ENUM_RESOURCE_INFO Resources OPTIONAL
+);
+
NTSTATUS
NTAPI
Modified: trunk/reactos/include/ndk/ldrtypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/ldrtypes.h?rev…
==============================================================================
--- trunk/reactos/include/ndk/ldrtypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/ldrtypes.h [iso-8859-1] Sat Oct 13 12:53:09 2012
@@ -170,8 +170,18 @@
{
ULONG_PTR Type;
ULONG_PTR Name;
- ULONG Language;
+ ULONG_PTR Language;
} LDR_RESOURCE_INFO, *PLDR_RESOURCE_INFO;
+
+typedef struct _LDR_ENUM_RESOURCE_INFO
+{
+ ULONG_PTR Type;
+ ULONG_PTR Name;
+ ULONG_PTR Language;
+ PVOID Data;
+ SIZE_T Size;
+ ULONG_PTR Reserved;
+} LDR_ENUM_RESOURCE_INFO, *PLDR_ENUM_RESOURCE_INFO;
//
// DLL Notifications