From da4f75d39fd091fcd6cdad0b67181bbafae86748 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Wed, 14 Jan 2015 22:13:57 +0100
Subject: nvapi: Add stub for NvAPI_D3D_GetObjectHandleForResource.

---
 dlls/nvapi/nvapi.c | 9 ++++++++-
 include/nvapi.h    | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/nvapi/nvapi.c b/dlls/nvapi/nvapi.c
index 98658a6..28483be 100644
--- a/dlls/nvapi/nvapi.c
+++ b/dlls/nvapi/nvapi.c
@@ -564,6 +564,12 @@ static NvAPI_Status CDECL NvAPI_GetLogicalGPUFromDisplay(NvDisplayHandle hNvDisp
     return NVAPI_OK;
 }
 
+static NvAPI_Status CDECL NvAPI_D3D_GetObjectHandleForResource(IUnknown *pDevice, IUnknown *pResource, NVDX_ObjectHandle *pHandle)
+{
+    FIXME("(%p, %p, %p): stub\n", pDevice, pResource, pHandle);
+    return NVAPI_ERROR;
+}
+
 void* CDECL nvapi_QueryInterface(unsigned int offset)
 {
     static const struct
@@ -603,7 +609,8 @@ void* CDECL nvapi_QueryInterface(unsigned int offset)
         {0x2926aaad, NvAPI_SYS_GetDriverAndBranchVersion},
         {0xd22bdd7e, NvAPI_Unload},
         {0x4b708b54, NvAPI_D3D_GetCurrentSLIState},
-        {0xee1370cf, NvAPI_GetLogicalGPUFromDisplay}
+        {0xee1370cf, NvAPI_GetLogicalGPUFromDisplay},
+        {0xfceac864, NvAPI_D3D_GetObjectHandleForResource}
     };
     unsigned int i;
     TRACE("(%x)\n", offset);
diff --git a/include/nvapi.h b/include/nvapi.h
index e52e9b1..ca95a1a 100644
--- a/include/nvapi.h
+++ b/include/nvapi.h
@@ -55,6 +55,7 @@ typedef void *NvPhysicalGpuHandle;
 typedef void *NvLogicalGpuHandle;
 typedef void *NvDisplayHandle;
 typedef void *StereoHandle;
+typedef void *NVDX_ObjectHandle;
 
 typedef struct
 {
-- 
1.9.1

