[PATCH 1/4] include/d3dcommon.idl: Add D3DDestructionNotifier interface.
Biswapriyo Nath
nathbappai at gmail.com
Thu Aug 27 13:30:22 CDT 2020
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200828/afffc249/attachment.htm>
-------------- next part --------------
From 6b8f08315ab558b47f49e7753a44aead0a697511 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbappai at gmail.com>
Date: Thu, 27 Aug 2020 23:56:25 +0530
Subject: [PATCH 1/4] include/d3dcommon.idl: Add D3DDestructionNotifier interface.
Signed-off-by: Biswapriyo Nath <nathbappai at gmail.com>
---
include/d3dcommon.idl | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/include/d3dcommon.idl b/include/d3dcommon.idl
index 7d1c0d2..586dec2 100644
--- a/include/d3dcommon.idl
+++ b/include/d3dcommon.idl
@@ -43,6 +43,26 @@ typedef ID3D10Blob ID3DBlob;
typedef ID3DBlob* LPD3DBLOB;
cpp_quote("#define IID_ID3DBlob IID_ID3D10Blob")
+typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *data);
+
+[
+ object,
+ local,
+ uuid(a06eb39a-50da-425b-8c31-4eecd6c270f3),
+ pointer_default(unique)
+]
+interface ID3DDestructionNotifier : IUnknown
+{
+ HRESULT RegisterDestructionCallback(
+ [in] PFN_DESTRUCTION_CALLBACK callback_func,
+ [in] void *data,
+ [out] UINT *callback_id
+ );
+ HRESULT UnregisterDestructionCallback(
+ [in] UINT callback_id
+ );
+}
+
typedef enum _D3D_INCLUDE_TYPE
{
D3D_INCLUDE_LOCAL = 0,
--
2.28.0
More information about the wine-devel
mailing list