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

Version Path
johnson19-2.0.0.pre3 vendor/tracemonkey/xpconnect/tests/idispatch/COM/XPCDispUtilities.h
pre-johnson-2.0.0 vendor/tracemonkey/xpconnect/tests/idispatch/COM/XPCDispUtilities.h
johnson-2.0.0.pre3 vendor/tracemonkey/xpconnect/tests/idispatch/COM/XPCDispUtilities.h
johnson-2.0.0.pre2 vendor/tracemonkey/xpconnect/tests/idispatch/COM/XPCDispUtilities.h
johnson-2.0.0.pre1 vendor/tracemonkey/xpconnect/tests/idispatch/COM/XPCDispUtilities.h
johnson-2.0.0.pre0 vendor/tracemonkey/xpconnect/tests/idispatch/COM/XPCDispUtilities.h
smparkes-johnson-1.1.2.6 vendor/tracemonkey/xpconnect/tests/idispatch/COM/XPCDispUtilities.h
smparkes-johnson-1.1.2.5 vendor/tracemonkey/xpconnect/tests/idispatch/COM/XPCDispUtilities.h
smparkes-johnson-1.1.2.4 vendor/tracemonkey/xpconnect/tests/idispatch/COM/XPCDispUtilities.h
smparkes-johnson-1.1.2.3 vendor/tracemonkey/xpconnect/tests/idispatch/COM/XPCDispUtilities.h