Back to index

lightning-sunbird  0.9+nobinonly
Functions
XPCDispUtilities.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
HRESULT XPCCreateInstance (const CLSID &clsid, const IID &iid, T **result)
DISPID GetIDsOfNames (IDispatch *pIDispatch, CComBSTR const &name)

Function Documentation

DISPID GetIDsOfNames ( IDispatch pIDispatch,
CComBSTR const name 
)

Definition at line 11 of file XPCDispUtilities.h.

{
    DISPID dispid;
    OLECHAR * pName = name;
    HRESULT hresult = pIDispatch->GetIDsOfNames(
        IID_NULL,
        &pName,
        1, 
        LOCALE_SYSTEM_DEFAULT,
        &dispid);
    if (!SUCCEEDED(hresult))
    {
        dispid = 0;
    }
    return dispid;
}
template<class T >
HRESULT XPCCreateInstance ( const CLSID &  clsid,
const IID &  iid,
T **  result 
) [inline]

Definition at line 6 of file XPCDispUtilities.h.

{
    return CoCreateInstance(clsid, 0, CLSCTX_ALL, iid, reinterpret_cast<void**>(result));
}