public static int GetDXGIInterface <DXGI_TYPE>(IInspectable * @object, DXGI_TYPE **dxgi)
            where DXGI_TYPE : unmanaged
        {
            var guid = typeof(DXGI_TYPE).GUID;

            return(GetDXGIInterfaceFromObject(@object, &guid, (void **)dxgi));
        }
    public static HRESULT GetDXGIInterfaceFromObject(IInspectable * @object, Guid *iid, void **p)
    {
        IDirect3DDxgiInterfaceAccess *dxgiInterfaceAccess;

        HRESULT hr = @object->QueryInterface(__uuidof <IDirect3DDxgiInterfaceAccess>(), (void **)&dxgiInterfaceAccess);

        if (SUCCEEDED(hr))
        {
            hr = dxgiInterfaceAccess->GetInterface(iid, p);
        }

        _ = dxgiInterfaceAccess->Release();
        return(hr);
    }
        public static int GetDXGIInterfaceFromObject(IInspectable * @object, Guid *iid, void **p)
        {
            IDirect3DDxgiInterfaceAccess *dxgiInterfaceAccess;

            var dxgi_iid = IID_IDirect3DDxgiInterfaceAccess;
            int hr       = @object->QueryInterface(&dxgi_iid, (void **)&dxgiInterfaceAccess);

            if (SUCCEEDED(hr))
            {
                hr = dxgiInterfaceAccess->GetInterface(iid, p);
            }

            dxgiInterfaceAccess->Release();
            return(hr);
        }
Ejemplo n.º 4
0
 public int RegisterInstance(IInspectable *pInstance, [NativeTypeName("InstanceHandle *")] ulong *pInstanceHandle)
 {
     return(((delegate * unmanaged <IXamlDiagnostics *, IInspectable *, ulong *, int>)(lpVtbl[9]))((IXamlDiagnostics *)Unsafe.AsPointer(ref this), pInstance, pInstanceHandle));
 }
Ejemplo n.º 5
0
 public int Invoke([NativeTypeName("IInspectable *")] IInspectable *sender, [NativeTypeName("T_abi")] T args)
 {
     return(((delegate * unmanaged <IEventHandler <T> *, IInspectable *, T, int>)(lpVtbl[3]))((IEventHandler <T> *)Unsafe.AsPointer(ref this), sender, args));
 }
 public int RequestTokenWithWebAccountForWindowAsync([NativeTypeName("HWND")] IntPtr appWindow, IInspectable *request, IInspectable *webAccount, [NativeTypeName("const IID &")] Guid *riid, void **asyncInfo)
 {
     return(((delegate * unmanaged <IWebAuthenticationCoreManagerInterop *, IntPtr, IInspectable *, IInspectable *, Guid *, void **, int>)(lpVtbl[7]))((IWebAuthenticationCoreManagerInterop *)Unsafe.AsPointer(ref this), appWindow, request, webAccount, riid, asyncInfo));
 }
Ejemplo n.º 7
0
 public HRESULT RegisterInstance(IInspectable *pInstance, InstanceHandle *pInstanceHandle)
 {
     return(((delegate * unmanaged <IXamlDiagnostics *, IInspectable *, InstanceHandle *, int>)(lpVtbl[9]))((IXamlDiagnostics *)Unsafe.AsPointer(ref this), pInstance, pInstanceHandle));
 }
Ejemplo n.º 8
0
 public HRESULT MakeDocument(IInspectable *printTaskOptions, IPrintDocumentPackageTarget *docPackageTarget)
 {
     return(((delegate * unmanaged <IPrintDocumentPageSource *, IInspectable *, IPrintDocumentPackageTarget *, int>)(lpVtbl[4]))((IPrintDocumentPageSource *)Unsafe.AsPointer(ref this), printTaskOptions, docPackageTarget));
 }
Ejemplo n.º 9
0
 public int CreateSharedHandle([NativeTypeName("IInspectable *")] IInspectable *pObject, [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES *pSecurityAttributes, [NativeTypeName("DWORD")] uint Access, [NativeTypeName("HSTRING")] IntPtr Name, [NativeTypeName("HANDLE *")] IntPtr *pHandle)
 {
     return(((delegate * unmanaged <IDisplayDeviceInterop *, IInspectable *, SECURITY_ATTRIBUTES *, uint, IntPtr, IntPtr *, int>)(lpVtbl[3]))((IDisplayDeviceInterop *)Unsafe.AsPointer(ref this), pObject, pSecurityAttributes, Access, Name, pHandle));
 }
Ejemplo n.º 10
0
 public HRESULT Paginate([NativeTypeName("UINT32")] uint currentJobPage, IInspectable *printTaskOptions)
 {
     return(((delegate * unmanaged <IPrintPreviewPageCollection *, uint, IInspectable *, int>)(lpVtbl[3]))((IPrintPreviewPageCollection *)Unsafe.AsPointer(ref this), currentJobPage, printTaskOptions));
 }
Ejemplo n.º 11
0
 public static HRESULT GetDXGIInterface <DXGI_TYPE>(IInspectable * @object, DXGI_TYPE **dxgi)
     where DXGI_TYPE : unmanaged, IUnknown.Interface
 {
     return(GetDXGIInterfaceFromObject(@object, __uuidof <DXGI_TYPE>(), (void **)dxgi));
 }
Ejemplo n.º 12
0
 public HRESULT RequestTokenForWindowAsync(HWND appWindow, IInspectable *request, [NativeTypeName("const IID &")] Guid *riid, void **asyncInfo)
 {
     return(((delegate * unmanaged <IWebAuthenticationCoreManagerInterop *, HWND, IInspectable *, Guid *, void **, int>)(lpVtbl[6]))((IWebAuthenticationCoreManagerInterop *)Unsafe.AsPointer(ref this), appWindow, request, riid, asyncInfo));
 }