コード例 #1
0
 public static unsafe void StringToHStringReference(
     char *pchPinnedSourceString,
     string sourceString,
     HSTRING_HEADER *pHeader,
     HSTRING *phString)
 {
     throw new PlatformNotSupportedException("StringToHStringReference");
 }
コード例 #2
0
        public static unsafe void StringToHStringReference(
            char *pchPinnedSourceString,
            string sourceString,
            HSTRING_HEADER *pHeader,
            HSTRING *phString)
        {
            if (sourceString == null)
            {
                throw new ArgumentNullException(nameof(sourceString), SR.Null_HString);
            }

            int hr = ExternalInterop.WindowsCreateStringReference(
                pchPinnedSourceString,
                (uint)sourceString.Length,
                pHeader,
                (void **)phString);

            if (hr < 0)
            {
                throw Marshal.GetExceptionForHR(hr);
            }
        }
コード例 #3
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IVideoFrameNative *, HSTRING *, int>)(lpVtbl[4]))((IVideoFrameNative *)Unsafe.AsPointer(ref this), className));
 }
コード例 #4
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IProtectionPolicyManagerInterop *, HSTRING *, int>)(lpVtbl[4]))((IProtectionPolicyManagerInterop *)Unsafe.AsPointer(ref this), className));
 }
コード例 #5
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <ICorrelationVectorInformation *, HSTRING *, int>)(lpVtbl[4]))((ICorrelationVectorInformation *)Unsafe.AsPointer(ref this), className));
 }
コード例 #6
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IContentPrefetcherTaskTrigger *, HSTRING *, int>)(lpVtbl[4]))((IContentPrefetcherTaskTrigger *)Unsafe.AsPointer(ref this), className));
 }
コード例 #7
0
 public static extern HRESULT WindowsPromoteStringBuffer(HSTRING_BUFFER bufferHandle, HSTRING * @string);
コード例 #8
0
 public static extern HRESULT WindowsReplaceString(HSTRING @string, HSTRING stringReplaced, HSTRING stringReplaceWith, HSTRING *newString);
コード例 #9
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IReference <T> *, HSTRING *, int>)(lpVtbl[4]))((IReference <T> *)Unsafe.AsPointer(ref this), className));
 }
コード例 #10
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IRadialControllerConfigurationInterop *, HSTRING *, int>)(lpVtbl[4]))((IRadialControllerConfigurationInterop *)Unsafe.AsPointer(ref this), className));
 }
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IAsyncActionWithProgress <TProgress> *, HSTRING *, int>)(lpVtbl[4]))((IAsyncActionWithProgress <TProgress> *)Unsafe.AsPointer(ref this), className));
 }
コード例 #12
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IActivationFactory *, HSTRING *, int>)(lpVtbl[4]))((IActivationFactory *)Unsafe.AsPointer(ref this), className));
 }
コード例 #13
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IKeyValuePair <K, V> *, HSTRING *, int>)(lpVtbl[4]))((IKeyValuePair <K, V> *)Unsafe.AsPointer(ref this), className));
 }
コード例 #14
0
 public HRESULT get_CorrelationVector(HSTRING *cv)
 {
     return(((delegate * unmanaged <ICorrelationVectorSource *, HSTRING *, int>)(lpVtbl[3]))((ICorrelationVectorSource *)Unsafe.AsPointer(ref this), cv));
 }
 public HRESULT GetAdditionalInfo(HSTRING *deduplicationId, [NativeTypeName("const IID &")] Guid *riid, void **mapView)
 {
     return(((delegate * unmanaged <IRemoteSystemAdditionalInfoProvider *, HSTRING *, Guid *, void **, int>)(lpVtbl[3]))((IRemoteSystemAdditionalInfoProvider *)Unsafe.AsPointer(ref this), deduplicationId, riid, mapView));
 }
コード例 #16
0
 public static extern HRESULT WindowsSubstringWithSpecifiedLength(HSTRING @string, [NativeTypeName("UINT32")] uint startIndex, [NativeTypeName("UINT32")] uint length, HSTRING *newString);
コード例 #17
0
 public static extern HRESULT WindowsConcatString(HSTRING string1, HSTRING string2, HSTRING *newString);
コード例 #18
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IUserActivityRequestManagerInterop *, HSTRING *, int>)(lpVtbl[4]))((IUserActivityRequestManagerInterop *)Unsafe.AsPointer(ref this), className));
 }
コード例 #19
0
 public static extern HRESULT WindowsTrimStringEnd(HSTRING @string, HSTRING trimString, HSTRING *newString);
コード例 #20
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IAsyncOperation <TResult> *, HSTRING *, int>)(lpVtbl[4]))((IAsyncOperation <TResult> *)Unsafe.AsPointer(ref this), className));
 }
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <ISystemMediaTransportControlsInterop *, HSTRING *, int>)(lpVtbl[4]))((ISystemMediaTransportControlsInterop *)Unsafe.AsPointer(ref this), className));
 }
コード例 #22
0
 internal static unsafe int StringToHStringNoNullCheck(string sourceString, HSTRING *hstring)
 {
     throw new PlatformNotSupportedException("StringToHStringNoNullCheck");
 }
コード例 #23
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IInputPaneInterop *, HSTRING *, int>)(lpVtbl[4]))((IInputPaneInterop *)Unsafe.AsPointer(ref this), className));
 }
コード例 #24
0
 public static extern HRESULT WindowsCreateString([NativeTypeName("PCNZWCH")] ushort *sourceString, [NativeTypeName("UINT32")] uint length, HSTRING * @string);
コード例 #25
0
 public HRESULT get_NextCorrelationVectorForThread(HSTRING *cv)
 {
     return(((delegate * unmanaged <ICorrelationVectorInformation *, HSTRING *, int>)(lpVtbl[7]))((ICorrelationVectorInformation *)Unsafe.AsPointer(ref this), cv));
 }
コード例 #26
0
 public static extern HRESULT WindowsCreateStringReference([NativeTypeName("PCWSTR")] ushort *sourceString, [NativeTypeName("UINT32")] uint length, HSTRING_HEADER *hstringHeader, HSTRING * @string);
コード例 #27
0
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IVectorChangedEventArgs *, HSTRING *, int>)(lpVtbl[4]))((IVectorChangedEventArgs *)Unsafe.AsPointer(ref this), className));
 }
コード例 #28
0
 public static extern HRESULT WindowsDuplicateString(HSTRING @string, HSTRING *newString);
 public HRESULT GetRuntimeClassName(HSTRING *className)
 {
     return(((delegate * unmanaged <IHolographicQuadLayerUpdateParametersInterop *, HSTRING *, int>)(lpVtbl[4]))((IHolographicQuadLayerUpdateParametersInterop *)Unsafe.AsPointer(ref this), className));
 }
コード例 #30
0
 public static extern HRESULT WindowsSubstring(HSTRING @string, [NativeTypeName("UINT32")] uint startIndex, HSTRING *newString);