Ejemplo n.º 1
0
        public unsafe void GetIids(ulong *iidCount, Guid **iids)
        {
            var interfaces = GetType().GetInterfaces().Where(typeof(IUnknown).IsAssignableFrom)
                             .Select(MicroComRuntime.GetGuidFor).ToArray();
            var mem = (Guid *)Marshal.AllocCoTaskMem(Unsafe.SizeOf <Guid>() * interfaces.Length);

            for (var c = 0; c < interfaces.Length; c++)
            {
                mem[c] = interfaces[c];
            }
            *iids = mem;
            *iidCount = (ulong)interfaces.Length;
        }
Ejemplo n.º 2
0
 public HRESULT GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IRadialControllerIndependentInputSourceInterop *, uint *, Guid **, int>)(lpVtbl[3]))((IRadialControllerIndependentInputSourceInterop *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
 public int GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <ICompositionCapabilitiesInteropFactory *, uint *, Guid **, int>)(lpVtbl[3]))((ICompositionCapabilitiesInteropFactory *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
 public int GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IDragDropManagerInterop *, uint *, Guid **, int>)(lpVtbl[3]))((IDragDropManagerInterop *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
 public HRESULT GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IHolographicQuadLayerUpdateParametersInterop *, uint *, Guid **, int>)(lpVtbl[3]))((IHolographicQuadLayerUpdateParametersInterop *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
Ejemplo n.º 6
0
 public int GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IObservableMap <K, V> *, uint *, Guid **, int>)(lpVtbl[3]))((IObservableMap <K, V> *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
Ejemplo n.º 7
0
 public HRESULT GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IProtectionPolicyManagerInterop *, uint *, Guid **, int>)(lpVtbl[3]))((IProtectionPolicyManagerInterop *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
Ejemplo n.º 8
0
 public HRESULT GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <ICorrelationVectorInformation *, uint *, Guid **, int>)(lpVtbl[3]))((ICorrelationVectorInformation *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
Ejemplo n.º 9
0
 public HRESULT GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IKeyValuePair <K, V> *, uint *, Guid **, int>)(lpVtbl[3]))((IKeyValuePair <K, V> *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
Ejemplo n.º 10
0
 public int GetProtectionSystemIds([NativeTypeName("GUID **")] Guid **systemIds, [NativeTypeName("DWORD *")] uint *count)
 {
     return(((delegate * unmanaged <IMFContentDecryptionModule *, Guid **, uint *, int>)(lpVtbl[9]))((IMFContentDecryptionModule *)Unsafe.AsPointer(ref this), systemIds, count));
 }
Ejemplo n.º 11
0
 public HRESULT GetIids([NativeTypeName("ULONG *")] uint* iidCount, [NativeTypeName("IID **")] Guid** iids)
 {
     return ((delegate* unmanaged<IUserActivitySourceHostInterop*, uint*, Guid**, int>)(lpVtbl[3]))((IUserActivitySourceHostInterop*)Unsafe.AsPointer(ref this), iidCount, iids);
 }
Ejemplo n.º 12
0
 public int GetIIDFromOBJREF([NativeTypeName("void *")] void *pObjRef, [NativeTypeName("IID **")] Guid **piid)
 {
     return(((delegate * stdcall <IRpcHelper *, void *, Guid **, int>)(lpVtbl[4]))((IRpcHelper *)Unsafe.AsPointer(ref this), pObjRef, piid));
 }
Ejemplo n.º 13
0
 public int GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IHolographicCameraRenderingParametersInterop *, uint *, Guid **, int>)(lpVtbl[3]))((IHolographicCameraRenderingParametersInterop *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
Ejemplo n.º 14
0
 public HRESULT GetFolderIds([NativeTypeName("KNOWNFOLDERID **")] Guid **ppKFId, uint *pCount)
 {
     return(((delegate * unmanaged <IKnownFolderManager *, Guid **, uint *, int>)(lpVtbl[5]))((IKnownFolderManager *)Unsafe.AsPointer(ref this), ppKFId, pCount));
 }
Ejemplo n.º 15
0
 public HRESULT GetIIDFromOBJREF(void *pObjRef, [NativeTypeName("IID **")] Guid **piid)
 {
     return(((delegate * unmanaged <IRpcHelper *, void *, Guid **, int>)(lpVtbl[4]))((IRpcHelper *)Unsafe.AsPointer(ref this), pObjRef, piid));
 }
Ejemplo n.º 16
0
 public int GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IAsyncActionWithProgress <TProgress> *, uint *, Guid **, int>)(lpVtbl[3]))((IAsyncActionWithProgress <TProgress> *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
Ejemplo n.º 17
0
 public HRESULT GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IContentPrefetcherTaskTrigger *, uint *, Guid **, int>)(lpVtbl[3]))((IContentPrefetcherTaskTrigger *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
Ejemplo n.º 18
0
 public int SetValueWithNotify([NativeTypeName("const GUID *")] Guid *Api, [NativeTypeName("VARIANT *")] VARIANT *Value, [NativeTypeName("GUID **")] Guid **ChangedParam, [NativeTypeName("ULONG *")] uint *ChangedParamCount)
 {
     return(((delegate * unmanaged <ICodecAPI *, Guid *, VARIANT *, Guid **, uint *, int>)(lpVtbl[13]))((ICodecAPI *)Unsafe.AsPointer(ref this), Api, Value, ChangedParam, ChangedParamCount));
 }
Ejemplo n.º 19
0
 public HRESULT GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IVectorChangedEventArgs *, uint *, Guid **, int>)(lpVtbl[3]))((IVectorChangedEventArgs *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
Ejemplo n.º 20
0
 public int SetAllDefaultsWithNotify([NativeTypeName("GUID **")] Guid **ChangedParam, [NativeTypeName("ULONG *")] uint *ChangedParamCount)
 {
     return(((delegate * unmanaged <ICodecAPI *, Guid **, uint *, int>)(lpVtbl[14]))((ICodecAPI *)Unsafe.AsPointer(ref this), ChangedParam, ChangedParamCount));
 }
Ejemplo n.º 21
0
 public HRESULT FindClosestCategory([NativeTypeName("const GUID &")] Guid *rguid, Guid *pcatid, [NativeTypeName("const GUID **")] Guid **ppcatidList, [NativeTypeName("ULONG")] uint ulCount)
 {
     return(((delegate * unmanaged <ITfCategoryMgr *, Guid *, Guid *, Guid **, uint, int>)(lpVtbl[7]))((ITfCategoryMgr *)Unsafe.AsPointer(ref this), rguid, pcatid, ppcatidList, ulCount));
 }
Ejemplo n.º 22
0
 public int SetAllSettingsWithNotify([NativeTypeName("IStream *")] IStream *__MIDL__ICodecAPI0002, [NativeTypeName("GUID **")] Guid **ChangedParam, [NativeTypeName("ULONG *")] uint *ChangedParamCount)
 {
     return(((delegate * unmanaged <ICodecAPI *, IStream *, Guid **, uint *, int>)(lpVtbl[17]))((ICodecAPI *)Unsafe.AsPointer(ref this), __MIDL__ICodecAPI0002, ChangedParam, ChangedParamCount));
 }
Ejemplo n.º 23
0
 public int GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IRadialControllerConfigurationInterop *, uint *, Guid **, int>)(lpVtbl[3]))((IRadialControllerConfigurationInterop *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
Ejemplo n.º 24
0
 public int GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IVideoFrameNativeFactory *, uint *, Guid **, int>)(lpVtbl[3]))((IVideoFrameNativeFactory *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
 public int GetIids([NativeTypeName("ULONG *")] uint* iidCount, [NativeTypeName("IID **")] Guid** iids)
 {
     return ((delegate* unmanaged<ISystemMediaTransportControlsInterop*, uint*, Guid**, int>)(lpVtbl[3]))((ISystemMediaTransportControlsInterop*)Unsafe.AsPointer(ref this), iidCount, iids);
 }
 public HRESULT GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <IAsyncOperation <TResult> *, uint *, Guid **, int>)(lpVtbl[3]))((IAsyncOperation <TResult> *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
 public int GetIids([NativeTypeName("ULONG *")] uint *iidCount, [NativeTypeName("IID **")] Guid **iids)
 {
     return(((delegate * unmanaged <ISoftwareBitmapNative *, uint *, Guid **, int>)(lpVtbl[3]))((ISoftwareBitmapNative *)Unsafe.AsPointer(ref this), iidCount, iids));
 }
 public int GetTextAndPropertyUpdates([NativeTypeName("DWORD")] uint dwFlags, [NativeTypeName("const GUID **")] Guid **prgProperties, [NativeTypeName("ULONG")] uint cProperties, IEnumTfRanges **ppEnum)
 {
     return(((delegate * unmanaged <ITfEditRecord *, uint, Guid **, uint, IEnumTfRanges **, int>)(lpVtbl[4]))((ITfEditRecord *)Unsafe.AsPointer(ref this), dwFlags, prgProperties, cProperties, ppEnum));
 }
 public int GetPackageTargetTypes([NativeTypeName("UINT32 *")] uint *targetCount, [NativeTypeName("GUID **")] Guid **targetTypes)
 {
     return(((delegate * unmanaged <IPrintDocumentPackageTarget *, uint *, Guid **, int>)(lpVtbl[3]))((IPrintDocumentPackageTarget *)Unsafe.AsPointer(ref this), targetCount, targetTypes));
 }
Ejemplo n.º 30
0
 public int TrackProperties([NativeTypeName("const GUID **")] Guid **prgProp, [NativeTypeName("ULONG")] uint cProp, [NativeTypeName("const GUID **")] Guid **prgAppProp, [NativeTypeName("ULONG")] uint cAppProp, [NativeTypeName("ITfReadOnlyProperty **")] ITfReadOnlyProperty **ppProperty)
 {
     return(((delegate * unmanaged <ITfContext *, Guid **, uint, Guid **, uint, ITfReadOnlyProperty **, int>)(lpVtbl[14]))((ITfContext *)Unsafe.AsPointer(ref this), prgProp, cProp, prgAppProp, cAppProp, ppProperty));
 }