From 31ddf45dd8694ffb1c995000cf8600d00eee57e9 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 11 May 2011 13:25:27 +0000 Subject: * autoload.cc (EnumProcessModules): Remove. * dlfcn.cc (dlopen): Make sure errno is set if an error occurs. (dlsym): Rewrite using RtlQueryProcessDebugInformation instead of EnumProcessModules. * ntdll.h (struct _DEBUG_MODULE_ARRAY): Define. (RtlCreateQueryDebugBuffer): Declare. (RtlDestroyQueryDebugBuffer): Declare. (RtlQueryProcessDebugInformation): Declare. --- winsup/cygwin/ntdll.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'winsup/cygwin/ntdll.h') diff --git a/winsup/cygwin/ntdll.h b/winsup/cygwin/ntdll.h index 090ec648f..df0ae29a3 100644 --- a/winsup/cygwin/ntdll.h +++ b/winsup/cygwin/ntdll.h @@ -538,6 +538,12 @@ typedef struct _DEBUG_MODULE_INFORMATION CHAR ImageName[256]; } DEBUG_MODULE_INFORMATION, *PDEBUG_MODULE_INFORMATION; +typedef struct _DEBUG_MODULE_ARRAY +{ + ULONG Count; + DEBUG_MODULE_INFORMATION Modules[1]; +} DEBUG_MODULE_ARRAY, *PDEBUG_MODULE_ARRAY; + typedef struct _KERNEL_USER_TIMES { LARGE_INTEGER CreateTime; @@ -1143,10 +1149,12 @@ extern "C" NTSTATUS NTAPI RtlCopySid (ULONG, PSID, PSID); VOID NTAPI RtlCopyUnicodeString (PUNICODE_STRING, PUNICODE_STRING); NTSTATUS NTAPI RtlCreateAcl (PACL, ULONG, ULONG); + PDEBUG_BUFFER NTAPI RtlCreateQueryDebugBuffer (ULONG, BOOLEAN); NTSTATUS NTAPI RtlCreateRegistryKey (ULONG, PCWSTR); NTSTATUS NTAPI RtlCreateSecurityDescriptor (PSECURITY_DESCRIPTOR, ULONG); BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz (PUNICODE_STRING, PCSTR); NTSTATUS NTAPI RtlDeleteSecurityObject (PSECURITY_DESCRIPTOR *); + NTSTATUS NTAPI RtlDestroyQueryDebugBuffer (PDEBUG_BUFFER); NTSTATUS NTAPI RtlDowncaseUnicodeString (PUNICODE_STRING, PUNICODE_STRING, BOOLEAN); NTSTATUS NTAPI RtlEnterCriticalSection (PRTL_CRITICAL_SECTION); @@ -1184,6 +1192,7 @@ extern "C" BOOLEAN); BOOLEAN NTAPI RtlPrefixUnicodeString (PUNICODE_STRING, PUNICODE_STRING, BOOLEAN); + NTSTATUS NTAPI RtlQueryProcessDebugInformation (ULONG, ULONG, PDEBUG_BUFFER); NTSTATUS NTAPI RtlQueryRegistryValues (ULONG, PCWSTR, PRTL_QUERY_REGISTRY_TABLE, PVOID, PVOID); -- cgit v1.2.3