Signed-off-by: Jeremy Drake <[email protected]>
---
mingw-w64-headers/include/delayloadhandler.h | 46 ++++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 mingw-w64-headers/include/delayloadhandler.h
diff --git a/mingw-w64-headers/include/delayloadhandler.h
b/mingw-w64-headers/include/delayloadhandler.h
new file mode 100644
index 000000000..fccb6a4c7
--- /dev/null
+++ b/mingw-w64-headers/include/delayloadhandler.h
@@ -0,0 +1,46 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+#ifndef __delayloadhandler_h__
+#define __delayloadhandler_h__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if NTDDI_VERSION >= NTDDI_WIN8
+
+#define DELAYLOAD_GPA_FAILURE 4
+
+typedef struct _DELAYLOAD_PROC_DESCRIPTOR {
+ ULONG ImportDescribedByName;
+ union {
+ LPCSTR Name;
+ ULONG Ordinal;
+ } Description;
+} DELAYLOAD_PROC_DESCRIPTOR, *PDELAYLOAD_PROC_DESCRIPTOR;
+
+typedef struct _DELAYLOAD_INFO {
+ ULONG Size;
+ PCIMAGE_DELAYLOAD_DESCRIPTOR DelayloadDescriptor;
+ PIMAGE_THUNK_DATA ThunkAddress;
+ LPCSTR TargetDllName;
+ DELAYLOAD_PROC_DESCRIPTOR TargetApiDescriptor;
+ PVOID TargetModuleBase;
+ PVOID Unused;
+ ULONG LastError;
+} DELAYLOAD_INFO, *PDELAYLOAD_INFO;
+
+
+typedef PVOID (WINAPI *PDELAYLOAD_FAILURE_DLL_CALLBACK)(ULONG
NotificationReason,PDELAYLOAD_INFO DelayloadInfo);
+
+extern PDELAYLOAD_FAILURE_DLL_CALLBACK __pfnDliFailureHook2;
+
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+#endif
--
2.35.1.windows.2
From 8bf06ddceb4378dc15de9fe3eeee94f4e744eb93 Mon Sep 17 00:00:00 2001
From: Jeremy Drake <[email protected]>
Date: Wed, 6 Apr 2022 18:29:00 -0700
Subject: [PATCH 1/2] headers: add delayloadhandler.h
Signed-off-by: Jeremy Drake <[email protected]>
---
mingw-w64-headers/include/delayloadhandler.h | 46 ++++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 mingw-w64-headers/include/delayloadhandler.h
diff --git a/mingw-w64-headers/include/delayloadhandler.h
b/mingw-w64-headers/include/delayloadhandler.h
new file mode 100644
index 000000000..fccb6a4c7
--- /dev/null
+++ b/mingw-w64-headers/include/delayloadhandler.h
@@ -0,0 +1,46 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+#ifndef __delayloadhandler_h__
+#define __delayloadhandler_h__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if NTDDI_VERSION >= NTDDI_WIN8
+
+#define DELAYLOAD_GPA_FAILURE 4
+
+typedef struct _DELAYLOAD_PROC_DESCRIPTOR {
+ ULONG ImportDescribedByName;
+ union {
+ LPCSTR Name;
+ ULONG Ordinal;
+ } Description;
+} DELAYLOAD_PROC_DESCRIPTOR, *PDELAYLOAD_PROC_DESCRIPTOR;
+
+typedef struct _DELAYLOAD_INFO {
+ ULONG Size;
+ PCIMAGE_DELAYLOAD_DESCRIPTOR DelayloadDescriptor;
+ PIMAGE_THUNK_DATA ThunkAddress;
+ LPCSTR TargetDllName;
+ DELAYLOAD_PROC_DESCRIPTOR TargetApiDescriptor;
+ PVOID TargetModuleBase;
+ PVOID Unused;
+ ULONG LastError;
+} DELAYLOAD_INFO, *PDELAYLOAD_INFO;
+
+
+typedef PVOID (WINAPI *PDELAYLOAD_FAILURE_DLL_CALLBACK)(ULONG
NotificationReason,PDELAYLOAD_INFO DelayloadInfo);
+
+extern PDELAYLOAD_FAILURE_DLL_CALLBACK __pfnDliFailureHook2;
+
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+#endif
--
2.35.1.windows.2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public