예제 #1
0
파일: deskadp.c 프로젝트: hoangduit/reactos
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;
}
예제 #2
0
파일: shxiface.c 프로젝트: GYGit/reactos
static ULONG STDMETHODCALLTYPE
IDeskDisplayAdapter_IShellExtInit_Release(IShellExtInit* iface)
{
    PDESKDISPLAYADAPTER This = interface_to_impl(iface, IShellExtInit);
    return IDeskDisplayAdapter_Release(This);
}
예제 #3
0
파일: shxiface.c 프로젝트: GYGit/reactos
static ULONG STDMETHODCALLTYPE
IDeskDisplayAdapter_IClassFactory_Release(IClassFactory* iface)
{
    PDESKDISPLAYADAPTER This = interface_to_impl(iface, IClassFactory);
    return IDeskDisplayAdapter_Release(This);
}