import "oaidl.idl"; import "wtypes.idl"; [ local, object, uuid(06152247-6f50-465a-9245-118bfd3b6007), pointer_default(unique) ] interface ID2D1Factory : IUnknown { HRESULT ReloadSystemMetrics(); void GetDesktopDpi([out] FLOAT *dpiX, [out] FLOAT *dpiY); // etc. }; /* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.01.0626 */ /* at Tue Jan 19 04:14:07 2038 */ /* Compiler settings for d2.idl: Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.01.0626 protocol : dce , ms_ext, c_ext, robust error checks: allocation ref bounds_check enum stub_data VC __declspec() decoration level: __declspec(uuid()), __declspec(selectany), __declspec(novtable) DECLSPEC_UUID(), MIDL_INTERFACE() */ /* @@MIDL_FILE_HEADING( ) */ #pragma warning( disable: 4049 ) /* more than 64k source lines */ /* verify that the version is high enough to compile this file*/ #ifndef __REQUIRED_RPCNDR_H_VERSION__ #define __REQUIRED_RPCNDR_H_VERSION__ 475 #endif #include "rpc.h" #include "rpcndr.h" #ifndef __RPCNDR_H_VERSION__ #error this stub requires an updated version of #endif /* __RPCNDR_H_VERSION__ */ #ifndef COM_NO_WINDOWS_H #include "windows.h" #include "ole2.h" #endif /*COM_NO_WINDOWS_H*/ #ifndef __d2_h__ #define __d2_h__ #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif #ifndef DECLSPEC_XFGVIRT #if _CONTROL_FLOW_GUARD_XFG #define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) #else #define DECLSPEC_XFGVIRT(base, func) #endif #endif /* Forward Declarations */ #ifndef __ID2D1Factory_FWD_DEFINED__ #define __ID2D1Factory_FWD_DEFINED__ typedef interface ID2D1Factory ID2D1Factory; #endif /* __ID2D1Factory_FWD_DEFINED__ */ /* header files for imported files */ #include "oaidl.h" #ifdef __cplusplus extern "C"{ #endif #ifndef __ID2D1Factory_INTERFACE_DEFINED__ #define __ID2D1Factory_INTERFACE_DEFINED__ /* interface ID2D1Factory */ /* [unique][uuid][object][local] */ EXTERN_C const IID IID_ID2D1Factory; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("06152247-6f50-465a-9245-118bfd3b6007") ID2D1Factory : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE ReloadSystemMetrics( void) = 0; virtual void STDMETHODCALLTYPE GetDesktopDpi( /* [out] */ FLOAT *dpiX, /* [out] */ FLOAT *dpiY) = 0; }; #else /* C style interface */ typedef struct ID2D1FactoryVtbl { BEGIN_INTERFACE DECLSPEC_XFGVIRT(IUnknown, QueryInterface) HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ID2D1Factory * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); DECLSPEC_XFGVIRT(IUnknown, AddRef) ULONG ( STDMETHODCALLTYPE *AddRef )( ID2D1Factory * This); DECLSPEC_XFGVIRT(IUnknown, Release) ULONG ( STDMETHODCALLTYPE *Release )( ID2D1Factory * This); DECLSPEC_XFGVIRT(ID2D1Factory, ReloadSystemMetrics) HRESULT ( STDMETHODCALLTYPE *ReloadSystemMetrics )( ID2D1Factory * This); DECLSPEC_XFGVIRT(ID2D1Factory, GetDesktopDpi) void ( STDMETHODCALLTYPE *GetDesktopDpi )( ID2D1Factory * This, /* [out] */ FLOAT *dpiX, /* [out] */ FLOAT *dpiY); END_INTERFACE } ID2D1FactoryVtbl; interface ID2D1Factory { CONST_VTBL struct ID2D1FactoryVtbl *lpVtbl; }; #ifdef COBJMACROS #define ID2D1Factory_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ID2D1Factory_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ID2D1Factory_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ID2D1Factory_ReloadSystemMetrics(This) \ ( (This)->lpVtbl -> ReloadSystemMetrics(This) ) #define ID2D1Factory_GetDesktopDpi(This,dpiX,dpiY) \ ( (This)->lpVtbl -> GetDesktopDpi(This,dpiX,dpiY) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ID2D1Factory_INTERFACE_DEFINED__ */ /* Additional Prototypes for ALL interfaces */ /* end of Additional Prototypes */ #ifdef __cplusplus } #endif #endif