Exemple #1
0
HRESULT
IDeskDisplayAdapter_Constructor(REFIID riid,
                                LPVOID *ppv)
{
    PDESKDISPLAYADAPTER This;
    HRESULT hRet = E_OUTOFMEMORY;

    DPRINT1("IDeskDisplayAdapter::Constructor(%p,%p)\n", riid, ppv);

    This = HeapAlloc(GetProcessHeap(),
                     0,
                     sizeof(*This));
    if (This != NULL)
    {
        ZeroMemory(This,
                   sizeof(*This));

        IDeskDisplayAdapter_InitIface(This);

        hRet = IDeskDisplayAdapter_QueryInterface(This,
                                                  riid,
                                                  ppv);
        if (!SUCCEEDED(hRet))
            IDeskDisplayAdapter_Release(This);
    }

    return hRet;
}
Exemple #2
0
static HRESULT STDMETHODCALLTYPE
IDeskDisplayAdapter_IShellPropSheetExt_QueryInterface(IShellPropSheetExt *iface,
                                                      REFIID iid,
                                                      PVOID *pvObject)
{
    PDESKDISPLAYADAPTER This = interface_to_impl(iface, IShellPropSheetExt);
    return IDeskDisplayAdapter_QueryInterface(This,
                                              iid,
                                              pvObject);
}
Exemple #3
0
static HRESULT STDMETHODCALLTYPE
IDeskDisplayAdapter_IClassFactory_QueryInterface(IClassFactory *iface,
                                                 REFIID iid,
                                                 PVOID *pvObject)
{
    PDESKDISPLAYADAPTER This = interface_to_impl(iface, IClassFactory);
    return IDeskDisplayAdapter_QueryInterface(This,
                                              iid,
                                              pvObject);
}