Sha256: 2c62b8a69c8636b615f8df331d965801da3610a8c46f5eb891212bc408d6d132
Contents?: true
Size: 604 Bytes
Versions: 10
Compression:
Stored size: 604 Bytes
Contents
#ifndef XPCDispUtilities_h #define XPCDispUtilities_h template <class T> inline HRESULT XPCCreateInstance(const CLSID & clsid, const IID & iid, T ** result) { return CoCreateInstance(clsid, 0, CLSCTX_ALL, iid, reinterpret_cast<void**>(result)); } DISPID GetIDsOfNames(IDispatch * pIDispatch , CComBSTR const & name) { DISPID dispid; OLECHAR * pName = name; HRESULT hresult = pIDispatch->GetIDsOfNames( IID_NULL, &pName, 1, LOCALE_SYSTEM_DEFAULT, &dispid); if (!SUCCEEDED(hresult)) { dispid = 0; } return dispid; } #endif
Version data entries
10 entries across 10 versions & 4 rubygems