From: Alistair Leslie-Hughes leslie_alistair@hotmail.com
--- include/combaseapi.h | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/include/combaseapi.h b/include/combaseapi.h index 41461f22e98..ede75f592ef 100644 --- a/include/combaseapi.h +++ b/include/combaseapi.h @@ -57,4 +57,12 @@ HRESULT WINAPI RoGetAgileReference(enum AgileReferenceOptions options, REFIID ri } #endif
+#ifdef __cplusplus + +template<typename T> void** IID_PPV_ARGS_Helper(T** pp); + +#define IID_PPV_ARGS(type) __uuidof(**(type)), IID_PPV_ARGS_Helper(type) + +#endif + #endif /* _COMBASEAPI_H_ */