328 references to HRESULT
PresentationCore (328)
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (12)
85if (HRESULT.Failed(hr)) 154if (HRESULT.Failed(hr)) 211if (HRESULT.Failed(hr)) 219if (HRESULT.Failed(hr)) 229if (HRESULT.Succeeded(hr)) 244if ( HRESULT.Failed(hr) ) 522if ( HRESULT.Failed(hr) ) 723if ( HRESULT.Succeeded(hr) && countOfAlternates != 0 ) 733if ( HRESULT.Failed(MS.Win32.Recognizer.UnsafeNativeMethods.GetString(pRecoAlternates[i], out recoRange, ref size, recoString)) 734|| HRESULT.Failed(MS.Win32.Recognizer.UnsafeNativeMethods.GetConfidenceLevel(pRecoAlternates[i], out recoRange, out confidenceLevel)) ) 788if ( HRESULT.Succeeded( 887if (HRESULT.Failed(MS.Win32.Recognizer.UnsafeNativeMethods.CreateRecognizer(ref s_Gesture, out s_hRec)))
Core\CSharp\MS\Win32\UnsafeNativeMethodsTablet.cs (2)
180return (MS.Internal.HRESULT.Succeeded(MS.Win32.Recognizer.UnsafeNativeMethods.DestroyRecognizer(handle))); 250return MS.Internal.HRESULT.Succeeded(hr);
Core\CSharp\System\Windows\Interop\D3DImage.cs (3)
201HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.Create( 356HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.AddDirtyRect( 587if (HRESULT.Succeeded(UnsafeNativeMethods.InteropDeviceBitmap.GetAsSoftwareBitmap(
Core\CSharp\System\Windows\Interop\HwndTarget.cs (5)
34using HRESULT = MS.Internal.HRESULT; 604if (HRESULT.Failed(hr)) 614HRESULT.Check(hr); 761HRESULT.Check(VisualTarget_DetachFromHwnd(_hWnd)); 1682HRESULT.Check(MILUpdateSystemParametersInfo.Update());
Core\CSharp\System\Windows\Media\ChannelManager.cs (2)
148HRESULT.Check(UnsafeNativeMethods.WgxConnection_Disconnect(_pSyncConnection)); 170HRESULT.Check(UnsafeNativeMethods.WgxConnection_Create(
Core\CSharp\System\Windows\Media\ColorContext.cs (15)
65if (HRESULT.Failed(IWICCC.GetType(_colorContextHandle, out type))) 75if (HRESULT.Succeeded(hr) && cbProfileActual != 0) 78if (HRESULT.Failed(IWICCC.GetProfileBytes( 92if (HRESULT.Failed(IWICCC.GetExifColorSpace(_colorContextHandle, out colorSpace))) 139if (HRESULT.Failed(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext( 146if (HRESULT.Failed(IWICCC.InitializeFromMemory( 437HRESULT.Check(hr); 451HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i])); 464HRESULT.Check(getColorContexts(ref numContexts, colorContextPtrs)); 663HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize)); 681HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize)); 718HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out _colorContextHandle)); 719HRESULT.Check(IWICCC.InitializeFromMemory(_colorContextHandle, rawBytes, (uint)numBytesRead)); 770HRESULT.Check(Marshal.GetHRForLastWin32Error()); 784HRESULT.Check(Marshal.GetHRForLastWin32Error());
Core\CSharp\System\Windows\Media\ColorContextHelper.cs (1)
136HRESULT.Check(Marshal.GetHRForLastWin32Error());
Core\CSharp\System\Windows\Media\ColorTransformHelper.cs (2)
135HRESULT.Check(Marshal.GetHRForLastWin32Error()); 152HRESULT.Check(UnsafeNativeMethods.Mscms.TranslateColors(
Core\CSharp\System\Windows\Media\EventProxy.cs (1)
192HRESULT.Check(MILCreateEventProxy(ref epd, out eventProxy));
Core\CSharp\System\Windows\Media\FactoryMaker.cs (2)
48HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateFactory(out s_pFactory, MS.Internal.Composition.Version.MilSdkVersion)); 143HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateImagingFactory(UnsafeNativeMethods.WICCodec.WINCODEC_SDK_VERSION, out s_pImagingFactory));
Core\CSharp\System\Windows\Media\Geometry.cs (7)
229HRESULT.Check(hr); 328HRESULT.Check(hr); 459HRESULT.Check(hr); 513HRESULT.Check(hr); 673HRESULT.Check(hr); 784HRESULT.Check(hr); 920HRESULT.Check(hr);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (2)
1617HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilGlyphRun_GetGlyphOutline( 1637HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilGlyphRun_ReleasePathGeometryData(
Core\CSharp\System\Windows\Media\Imaging\BitmapCodecInfo.cs (20)
81HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat( 113HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetAuthor( 127HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetAuthor( 165HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetVersion( 179HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetVersion( 217HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetSpecVersion( 231HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetSpecVersion( 269HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetFriendlyName( 283HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetFriendlyName( 321HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceManufacturer( 335HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceManufacturer( 373HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceModels( 387HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceModels( 425HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 439HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 477HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetFileExtensions( 491HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetFileExtensions( 527HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportAnimation( 557HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportLossless( 587HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportMultiframe(
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (14)
607HRESULT.Check(hr); 662HRESULT.Check(hr); 676if (hr == HRESULT.S_OK) 733HRESULT.Check(hr); 772HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 837HRESULT.Check(hr); 851if (hr == HRESULT.S_OK) 1298HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromFileHandle( 1315HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromStream( 1517HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 1523HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat(decoderInfo, out clsId)); 1529HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1541HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1733HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrameCount(_decoderHandle, out numFrames));
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (19)
298HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.GetEncoderInfo( 414HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Initialize( 431HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetThumbnail( 446HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetPalette( 472HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 490HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.CreateNewFrame( 510HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Commit(encoderHandle)); 601HRESULT.Check(hr); 632HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateEncoder( 659HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetSize( 681HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetResolution( 701HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetThumbnail( 725if (hr == HRESULT.S_OK) 754if (hr == HRESULT.S_OK) 773HRESULT.Check(UnsafeNativeMethods.WICCodec.WICSetEncoderFormat( 794HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.GetMetadataQueryWriter( 807HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 825HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.WriteSource( 834HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Commit(
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
651HRESULT.Check(hr); 667if (hr == HRESULT.S_OK) 717HRESULT.Check(hr); 754HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_NOTINITIALIZED); 779HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrame(
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (23)
180HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 301if (HRESULT.Succeeded(hr)) 318if (HRESULT.Failed(hr)) 330if (HRESULT.Failed(hr)) 581if (HRESULT.Succeeded(hr)) 665HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapShortNameToGuid( 749if (HRESULT.Succeeded(hr)) 788HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 842HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 901if (HRESULT.Succeeded(hr)) 912else if (!HRESULT.IsWindowsCodecError(hr)) 914HRESULT.Check(hr); 1019HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 1033HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 1066HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 1080HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 1177HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1189HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1241HRESULT.Check(hr); 1302HRESULT.Check(hr); 1364if (HRESULT.IsWindowsCodecError(hr)) 1370HRESULT.Check(hr); 1645HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetContainerFormat(
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (4)
93if (HRESULT.IsWindowsCodecError(hr)) 99HRESULT.Check(hr); 134HRESULT.Check(UnsafeNativeMethods.EnumString.Reset(_enumeratorHandle)); 202HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetEnumerator(
Core\CSharp\System\Windows\Media\Imaging\BitmapPalette.cs (9)
106HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeFromBitmap( 157HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializePredefined( 207if (hr != HRESULT.S_OK) 216HRESULT.Check(UnsafeNativeMethods.WICPalette.GetType(unmanagedPalette, out paletteType)); 217HRESULT.Check(UnsafeNativeMethods.WICPalette.HasAlpha(unmanagedPalette, out hasAlpha)); 301HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreatePalette( 336HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeCustom( 357HRESULT.Check(UnsafeNativeMethods.WICPalette.GetColorCount(_palette, 373HRESULT.Check(UnsafeNativeMethods.WICPalette.GetColors(
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (14)
649HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 681HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetSize( 686HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetResolution( 722HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 822HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.CopyPixels( 919HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.CopyPixels( 957HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFormatConverter( 961HRESULT.Check(UnsafeNativeMethods.WICFormatConverter.Initialize( 979HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1005HRESULT.Check(UnsafeNativeMethods.MilCoreApi.CreateCWICWrapperBitmap( 1308HRESULT.Check(UnsafeNativeMethods.WICCodec.WICConvertBitmapSource( 1314HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1323HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1927HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeFromPalette(pIPalette, palette.InternalPalette));
Core\CSharp\System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (3)
119if (hr == HRESULT.S_OK) 140if (hr == HRESULT.S_OK) 145if (hr == HRESULT.S_OK)
Core\CSharp\System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
140HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface(
Core\CSharp\System\Windows\Media\Imaging\BmpBitmapEncoder.cs (1)
81HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\CachedBitmap.cs (4)
445HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 503HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromMemory( 515HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetResolution( 522HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetPalette(
Core\CSharp\System\Windows\Media\Imaging\ColorConvertedBitmap.cs (2)
132HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateColorTransform( 139HRESULT.Check(UnsafeNativeMethods.WICColorTransform.Initialize(
Core\CSharp\System\Windows\Media\Imaging\CroppedBitmap.cs (2)
133HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapClipper( 139HRESULT.Check(UnsafeNativeMethods.WICBitmapClipper.Initialize(
Core\CSharp\System\Windows\Media\Imaging\FormatConvertedBitmap.cs (2)
133HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFormatConverter( 147HRESULT.Check(UnsafeNativeMethods.WICFormatConverter.Initialize(
Core\CSharp\System\Windows\Media\Imaging\GifBitmapEncoder.cs (1)
79HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\InplaceBitmapMetadataWriter.cs (5)
82HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromFrameDecode( 89HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 115HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromDecoder( 122HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 148return HRESULT.Succeeded(hr);
Core\CSharp\System\Windows\Media\Imaging\InteropBitmapSource.cs (11)
72HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromHBITMAP( 111HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromHICON( 166HRESULT.Check(UnsafeNativeMethods.WindowsCodecApi.CreateBitmapFromSection( 310HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 442HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetResolution(_unmanagedSource, 96, 96)); 450HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapClipper( 456HRESULT.Check(UnsafeNativeMethods.WICBitmapClipper.Initialize( 478HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapScaler( 484HRESULT.Check(UnsafeNativeMethods.WICBitmapScaler.Initialize( 494HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 500HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize(
Core\CSharp\System\Windows\Media\Imaging\JpegBitmapEncoder.cs (3)
229HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 249HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 262HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\PngBitmapEncoder.cs (2)
137HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 150HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (4)
464HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 762if (hr == HRESULT.S_OK) 776if (hr == HRESULT.S_OK) 787HRESULT.Check(hr);
Core\CSharp\System\Windows\Media\Imaging\RenderTargetBitmap.cs (4)
159HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTargetForBitmap( 237HRESULT.Check(MILRenderTargetBitmap.Clear(_renderTargetBitmap)); 296HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTarget( 309HRESULT.Check(MILRenderTargetBitmap.GetBitmap(
Core\CSharp\System\Windows\Media\Imaging\TiffBitmapEncoder.cs (2)
174HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 187HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\TransformedBitmap.cs (6)
213HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapScaler( 219HRESULT.Check(UnsafeNativeMethods.WICBitmapScaler.Initialize( 245HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 251HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize( 265HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 271HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize(
Core\CSharp\System\Windows\Media\Imaging\UnknownBitmapEncoder.cs (1)
84HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\WmpBitmapEncoder.cs (17)
475HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 495HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 515HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 535HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 555HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 575HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 595HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 615HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 635HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 655HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 675HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 695HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 715HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 735HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 755HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 775HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 788HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (19)
122HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 128HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 134HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 140HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 155HRESULT.Check(MILSwDoubleBufferedBitmap.Create( 306HRESULT.Check(UnsafeNativeMethods.WICBitmap.Lock( 320HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetDataPointer( 328HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetStride( 699HRESULT.Check(MILSwDoubleBufferedBitmap.ProtectBackBuffer(_pDoubleBufferedBitmap)); 845HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 851HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 867HRESULT.Check(MILSwDoubleBufferedBitmap.Create( 956HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 974HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 986HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 998HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 1010HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 1022HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 1066HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_INSUFFICIENTBUFFER);
Core\CSharp\System\Windows\Media\MediaContext.cs (2)
461case HRESULT.E_OUTOFMEMORY: 463case HRESULT.D3DERR_OUTOFVIDEOMEMORY:
Core\CSharp\System\Windows\Media\MediaContextNotificationWindow.cs (3)
107MS.Internal.HRESULT.Check(MilContent_AttachToHwnd(_hwndNotification.Value.Handle)); 122MS.Internal.HRESULT.Check(MilContent_DetachFromHwnd(_hwndNotification.Value.Handle)); 200MS.Internal.HRESULT.Check(MilContent_AttachToHwnd(_hwndNotification.Value.Handle));
Core\CSharp\System\Windows\Media\MediaEventsHelper.cs (1)
296RaiseMediaFailed(HRESULT.ConvertHRToException(failureHr));
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (19)
139HRESULT.Check(MILMedia.IsBuffering(_nativeMedia, ref isBuffering)); 159HRESULT.Check(MILMedia.CanPause(_nativeMedia, ref canPause)); 179HRESULT.Check(MILMedia.GetDownloadProgress(_nativeMedia, ref downloadProgress)); 199HRESULT.Check(MILMedia.GetBufferingProgress(_nativeMedia, ref bufferingProgress)); 221HRESULT.Check(MILMedia.GetNaturalHeight(_nativeMedia, ref height)); 243HRESULT.Check(MILMedia.GetNaturalWidth(_nativeMedia, ref width)); 265HRESULT.Check(MILMedia.HasAudio(_nativeMedia, ref hasAudio)); 287HRESULT.Check(MILMedia.HasVideo(_nativeMedia, ref hasVideo)); 350HRESULT.Check(hr); 405HRESULT.Check(hr); 434HRESULT.Check(MILMedia.SetIsScrubbingEnabled(_nativeMedia, value)); 497HRESULT.Check(MILMedia.GetMediaLength(_nativeMedia, ref mediaLength)); 832HRESULT.Check(MILMedia.Close(_nativeMedia)); 892HRESULT.Check(MILMedia.NeedUIFrameUpdate(_nativeMedia)); 917HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateMediaPlayer( 1021HRESULT.Check(MILMedia.Open(_nativeMedia, toOpen)); 1143HRESULT.Check(MILMedia.SetPosition(_nativeMedia, value.Ticks)); 1159HRESULT.Check(MILMedia.GetPosition(_nativeMedia, ref position)); 1179HRESULT.Check(MILMedia.SetRate(_nativeMedia, value));
Core\CSharp\System\Windows\Media\MediaSystem.cs (5)
66HRESULT.Check(UnsafeNativeMethods.MilVersionCheck(MS.Internal.Composition.Version.MilSdkVersion)); 75HRESULT.Check(SafeNativeMethods.MilCompositionEngine_InitializePartitionManager( 180HRESULT.Check(SafeNativeMethods.MilCompositionEngine_DeinitializePartitionManager()); 232HRESULT.Check(UnsafeNativeMethods.WgxConnection_Create( 271HRESULT.Check(UnsafeNativeMethods.WgxConnection_Disconnect(s_pConnection));
Core\CSharp\System\windows\Media\MILUtilities.cs (1)
208HRESULT.Check(
Core\CSharp\System\Windows\Media\PathGeometry.cs (4)
629HRESULT.Check(MilCoreApi.MilUtility_GetPointAtLengthFraction( 713HRESULT.Check(hr); 873HRESULT.Check(hr); 933HRESULT.Check(hr);
Core\CSharp\System\Windows\Media\PixelFormat.cs (7)
551HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelCount( 564HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 573HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 619HRESULT.Check(hr); 622HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 657HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetBitsPerPixel( 730HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSource, out guidPixelFormat));
Core\CSharp\System\Windows\Media\SafeMediaHandle.cs (1)
54HRESULT.Check(MILMedia.Shutdown(handle));
Core\CSharp\System\Windows\Media\SafeReversePInvokeHandle.cs (1)
59HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilCreateReversePInvokeWrapper(delegatePtr, out reversePInvokeWrapper));
Core\CSharp\System\Windows\Media\StreamAsIStream.cs (5)
717if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 722if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromIStream(pIStream, comStream))) 743if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 748if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize))) 797HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MILCreateStreamFromStreamDescriptor(ref sd, out pStream));
Graphics\include\exports.cs (26)
36using HRESULT=MS.Internal.HRESULT; 402HRESULT.Check(UnsafeNativeMethods.MilConnection_CreateChannel( 432HRESULT.Check(UnsafeNativeMethods.MilConnection_CommitChannel( 461HRESULT.Check(UnsafeNativeMethods.MilConnection_CloseBatch( 488HRESULT.Check(MilCoreApi.MilComposition_SyncFlush(_hChannel)); 506HRESULT.Check(UnsafeNativeMethods.MilConnection_CloseBatch(_hChannel)); 507HRESULT.Check(UnsafeNativeMethods.MilConnection_CommitChannel(_hChannel)); 514HRESULT.Check(UnsafeNativeMethods.MilConnection_DestroyChannel(_hChannel)); 532HRESULT.Check(UnsafeNativeMethods.WgxConnection_SameThreadPresent(_pConnection)); 555HRESULT.Check(UnsafeNativeMethods.MilResource_CreateOrAddRefOnChannel( 598HRESULT.Check(UnsafeNativeMethods.MilResource_DuplicateHandle( 631HRESULT.Check(UnsafeNativeMethods.MilResource_ReleaseOnChannel( 665HRESULT.Check(UnsafeNativeMethods.MilResource_GetRefCountOnChannel( 706HRESULT.Check(UnsafeNativeMethods.MilChannel_GetMarshalType( 770int hr = HRESULT.S_OK; 790HRESULT.Check(hr); 810int hr = HRESULT.S_OK; 831HRESULT.Check(hr); 850int hr = HRESULT.S_OK; 870HRESULT.Check(hr); 896HRESULT.Check(UnsafeNativeMethods.MilChannel_EndCommand(_hChannel)); 914HRESULT.Check(UnsafeNativeMethods.MilResource_SendCommandBitmapSource( 937HRESULT.Check(UnsafeNativeMethods.MilResource_SendCommandMedia( 969HRESULT.Check(UnsafeNativeMethods.MilChannel_SetNotificationWindow( 999HRESULT.Check(UnsafeNativeMethods.MilComposition_WaitForNextMessage( 1039HRESULT.Check(UnsafeNativeMethods.MilComposition_PeekNextMessage(
Graphics\include\wgx_render.cs (1)
1023return !(HRESULT.Succeeded(hr));