From fbabb7c77e61f47130cf0e80435620b9b51a77aa Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 27 Aug 2020 23:56:25 +0530 Subject: [PATCH] include/d3dcommon.idl: Add D3DDestructionNotifier interface. Signed-off-by: Biswapriyo Nath Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- include/d3dcommon.idl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/d3dcommon.idl b/include/d3dcommon.idl index 7d1c0d25cf3..586dec29edf 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,