268 references to Check
PresentationCore (268)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (22)
352HRESULT.Check(UnsafeNativeMethods.MilConnection_CreateChannel( 376HRESULT.Check(UnsafeNativeMethods.MilConnection_CommitChannel( 397HRESULT.Check(UnsafeNativeMethods.MilConnection_CloseBatch( 419HRESULT.Check(MilCoreApi.MilComposition_SyncFlush(_hChannel)); 429HRESULT.Check(UnsafeNativeMethods.MilConnection_CloseBatch(_hChannel)); 430HRESULT.Check(UnsafeNativeMethods.MilConnection_CommitChannel(_hChannel)); 437HRESULT.Check(UnsafeNativeMethods.MilConnection_DestroyChannel(_hChannel)); 448HRESULT.Check(UnsafeNativeMethods.WgxConnection_SameThreadPresent(_pConnection)); 465HRESULT.Check(UnsafeNativeMethods.MilResource_CreateOrAddRefOnChannel( 502HRESULT.Check(UnsafeNativeMethods.MilResource_DuplicateHandle( 529HRESULT.Check(UnsafeNativeMethods.MilResource_ReleaseOnChannel( 557HRESULT.Check(UnsafeNativeMethods.MilResource_GetRefCountOnChannel( 588HRESULT.Check(UnsafeNativeMethods.MilChannel_GetMarshalType( 664HRESULT.Check(hr); 701HRESULT.Check(hr); 736HRESULT.Check(hr); 757HRESULT.Check(UnsafeNativeMethods.MilChannel_EndCommand(_hChannel)); 771HRESULT.Check(UnsafeNativeMethods.MilResource_SendCommandBitmapSource( 790HRESULT.Check(UnsafeNativeMethods.MilResource_SendCommandMedia( 814HRESULT.Check(UnsafeNativeMethods.MilChannel_SetNotificationWindow( 833HRESULT.Check(UnsafeNativeMethods.MilComposition_WaitForNextMessage( 863HRESULT.Check(UnsafeNativeMethods.MilComposition_PeekNextMessage(
System\Windows\InterOp\D3DImage.cs (2)
155HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.Create( 305HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.AddDirtyRect(
System\Windows\InterOp\HwndTarget.cs (3)
556HRESULT.Check(hr); 686HRESULT.Check(VisualTarget_DetachFromHwnd(_hWnd)); 1518HRESULT.Check(MILUpdateSystemParametersInfo.Update());
System\Windows\Media\ChannelManager.cs (2)
101HRESULT.Check(UnsafeNativeMethods.WgxConnection_Disconnect(_pSyncConnection)); 115HRESULT.Check(UnsafeNativeMethods.WgxConnection_Create(
System\Windows\Media\ColorContext.cs (9)
348HRESULT.Check(hr); 361HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i])); 374HRESULT.Check(getColorContexts(ref numContexts, colorContextPtrs)); 547HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize)); 565HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize)); 598HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out _colorContextHandle)); 599HRESULT.Check(IWICCC.InitializeFromMemory(_colorContextHandle, rawBytes, (uint)numBytesRead)); 646HRESULT.Check(Marshal.GetHRForLastWin32Error()); 660HRESULT.Check(Marshal.GetHRForLastWin32Error());
System\Windows\Media\ColorContextHelper.cs (1)
93HRESULT.Check(Marshal.GetHRForLastWin32Error());
System\Windows\Media\ColorTransformHelper.cs (2)
100HRESULT.Check(Marshal.GetHRForLastWin32Error()); 113HRESULT.Check(UnsafeNativeMethods.Mscms.TranslateColors(
System\Windows\Media\EventProxy.cs (1)
141HRESULT.Check(MILCreateEventProxy(ref epd, out eventProxy));
System\Windows\Media\FactoryMaker.cs (2)
32HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateFactory(out s_pFactory, MS.Internal.Composition.Version.MilSdkVersion)); 113HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateImagingFactory(UnsafeNativeMethods.WICCodec.WINCODEC_SDK_VERSION, out s_pImagingFactory));
System\Windows\Media\Geometry.cs (7)
211HRESULT.Check(hr); 305HRESULT.Check(hr); 428HRESULT.Check(hr); 475HRESULT.Check(hr); 627HRESULT.Check(hr); 730HRESULT.Check(hr); 852HRESULT.Check(hr);
System\Windows\Media\GlyphTypeface.cs (2)
1263HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilGlyphRun_GetGlyphOutline( 1283HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilGlyphRun_ReleasePathGeometryData(
System\Windows\Media\Imaging\BitmapCodecInfo.cs (20)
55HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat( 78HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetAuthor( 92HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetAuthor( 121HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetVersion( 135HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetVersion( 164HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetSpecVersion( 178HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetSpecVersion( 207HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetFriendlyName( 221HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetFriendlyName( 250HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceManufacturer( 264HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceManufacturer( 293HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceModels( 307HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceModels( 336HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 350HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 379HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetFileExtensions( 393HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetFileExtensions( 420HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportAnimation( 441HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportLossless( 462HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportMultiframe(
System\Windows\Media\Imaging\BitmapDecoder.cs (12)
527HRESULT.Check(hr); 577HRESULT.Check(hr); 637HRESULT.Check(hr); 671HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 731HRESULT.Check(hr); 1137HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromFileHandle( 1153HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromStream( 1230HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 1236HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat(decoderInfo, out clsId)); 1242HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1254HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1426HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrameCount(_decoderHandle, out numFrames));
System\Windows\Media\Imaging\BitmapEncoder.cs (17)
245HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.GetEncoderInfo( 349HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Initialize( 366HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetThumbnail( 381HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetPalette( 407HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 425HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.CreateNewFrame( 445HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Commit(encoderHandle)); 531HRESULT.Check(hr); 558HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateEncoder( 581HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetSize( 603HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetResolution( 623HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetThumbnail( 695HRESULT.Check(UnsafeNativeMethods.WICCodec.WICSetEncoderFormat( 716HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.GetMetadataQueryWriter( 729HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 747HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.WriteSource( 756HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Commit(
System\Windows\Media\Imaging\BitmapFrameDecode.cs (4)
577HRESULT.Check(hr); 638HRESULT.Check(hr); 670HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_NOTINITIALIZED); 695HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrame(
System\Windows\Media\Imaging\BitmapMetadata.cs (15)
154HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 586HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapShortNameToGuid( 687HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 736HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 804HRESULT.Check(hr); 904HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 918HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 946HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 960HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 1044HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1056HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1100HRESULT.Check(hr); 1150HRESULT.Check(hr); 1200HRESULT.Check(hr); 1466HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetContainerFormat(
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
73HRESULT.Check(hr); 103HRESULT.Check(UnsafeNativeMethods.EnumString.Reset(_enumeratorHandle)); 164HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetEnumerator(
System\Windows\Media\Imaging\BitmapPalette.cs (8)
75HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeFromBitmap( 120HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializePredefined( 174HRESULT.Check(UnsafeNativeMethods.WICPalette.GetType(unmanagedPalette, out paletteType)); 175HRESULT.Check(UnsafeNativeMethods.WICPalette.HasAlpha(unmanagedPalette, out hasAlpha)); 250HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreatePalette( 283HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeCustom( 299HRESULT.Check(UnsafeNativeMethods.WICPalette.GetColorCount(_palette, 315HRESULT.Check(UnsafeNativeMethods.WICPalette.GetColors(
System\Windows\Media\Imaging\BitmapSource.cs (14)
584HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 612HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetSize( 617HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetResolution( 647HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 705HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.CopyPixels( 787HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.CopyPixels( 825HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFormatConverter( 829HRESULT.Check(UnsafeNativeMethods.WICFormatConverter.Initialize( 847HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 872HRESULT.Check(UnsafeNativeMethods.MilCoreApi.CreateCWICWrapperBitmap( 1161HRESULT.Check(UnsafeNativeMethods.WICCodec.WICConvertBitmapSource( 1167HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1176HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1759HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeFromPalette(pIPalette, palette.InternalPalette));
System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
113HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface(
System\Windows\Media\Imaging\BmpBitmapEncoder.cs (1)
55HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\CachedBitmap.cs (4)
311HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 365HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromMemory( 377HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetResolution( 384HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetPalette(
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (2)
91HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateColorTransform( 98HRESULT.Check(UnsafeNativeMethods.WICColorTransform.Initialize(
System\Windows\Media\Imaging\CroppedBitmap.cs (2)
98HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapClipper( 104HRESULT.Check(UnsafeNativeMethods.WICBitmapClipper.Initialize(
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (2)
98HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFormatConverter( 112HRESULT.Check(UnsafeNativeMethods.WICFormatConverter.Initialize(
System\Windows\Media\Imaging\GifBitmapEncoder.cs (1)
55HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\InplaceBitmapMetadataWriter.cs (4)
55HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromFrameDecode( 62HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 83HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromDecoder( 90HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter(
System\Windows\Media\Imaging\InteropBitmapSource.cs (11)
40HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromHBITMAP( 73HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromHICON( 115HRESULT.Check(UnsafeNativeMethods.WindowsCodecApi.CreateBitmapFromSection( 226HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 343HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetResolution(_unmanagedSource, 96, 96)); 351HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapClipper( 357HRESULT.Check(UnsafeNativeMethods.WICBitmapClipper.Initialize( 379HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapScaler( 385HRESULT.Check(UnsafeNativeMethods.WICBitmapScaler.Initialize( 395HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 401HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\JpegBitmapEncoder.cs (3)
197HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 217HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 230HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PngBitmapEncoder.cs (2)
111HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 124HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PropVariant.cs (2)
410HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 723HRESULT.Check(hr);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (4)
119HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTargetForBitmap( 192HRESULT.Check(MILRenderTargetBitmap.Clear(_renderTargetBitmap)); 234HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTarget( 247HRESULT.Check(MILRenderTargetBitmap.GetBitmap(
System\Windows\Media\Imaging\TiffBitmapEncoder.cs (2)
147HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 160HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\TransformedBitmap.cs (6)
178HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapScaler( 184HRESULT.Check(UnsafeNativeMethods.WICBitmapScaler.Initialize( 210HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 216HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize( 230HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 236HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\UnknownBitmapEncoder.cs (1)
58HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WmpBitmapEncoder.cs (17)
423HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 443HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 463HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 483HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 503HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 523HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 543HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 563HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 583HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 603HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 623HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 643HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 663HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 683HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 703HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 723HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 736HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WriteableBitmap.cs (15)
83HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 89HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 95HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 101HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 116HRESULT.Check(MILSwDoubleBufferedBitmap.Create( 256HRESULT.Check(UnsafeNativeMethods.WICBitmap.Lock( 270HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetDataPointer( 278HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetStride( 585HRESULT.Check(MILSwDoubleBufferedBitmap.ProtectBackBuffer(_pDoubleBufferedBitmap)); 708HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 714HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 730HRESULT.Check(MILSwDoubleBufferedBitmap.Create( 816HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 820HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 856HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_INSUFFICIENTBUFFER);
System\Windows\Media\MediaContextNotificationWindow.cs (3)
75MS.Internal.HRESULT.Check(MilContent_AttachToHwnd(_hwndNotification.Handle)); 85MS.Internal.HRESULT.Check(MilContent_DetachFromHwnd(_hwndNotification.Handle)); 143MS.Internal.HRESULT.Check(MilContent_AttachToHwnd(_hwndNotification.Handle));
System\Windows\Media\MediaPlayerState.cs (19)
102HRESULT.Check(MILMedia.IsBuffering(_nativeMedia, ref isBuffering)); 116HRESULT.Check(MILMedia.CanPause(_nativeMedia, ref canPause)); 130HRESULT.Check(MILMedia.GetDownloadProgress(_nativeMedia, ref downloadProgress)); 144HRESULT.Check(MILMedia.GetBufferingProgress(_nativeMedia, ref bufferingProgress)); 160HRESULT.Check(MILMedia.GetNaturalHeight(_nativeMedia, ref height)); 176HRESULT.Check(MILMedia.GetNaturalWidth(_nativeMedia, ref width)); 192HRESULT.Check(MILMedia.HasAudio(_nativeMedia, ref hasAudio)); 208HRESULT.Check(MILMedia.HasVideo(_nativeMedia, ref hasVideo)); 261HRESULT.Check(hr); 307HRESULT.Check(hr); 330HRESULT.Check(MILMedia.SetIsScrubbingEnabled(_nativeMedia, value)); 387HRESULT.Check(MILMedia.GetMediaLength(_nativeMedia, ref mediaLength)); 712HRESULT.Check(MILMedia.Close(_nativeMedia)); 762HRESULT.Check(MILMedia.NeedUIFrameUpdate(_nativeMedia)); 780HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateMediaPlayer( 838HRESULT.Check(MILMedia.Open(_nativeMedia, toOpen)); 880HRESULT.Check(MILMedia.SetPosition(_nativeMedia, value.Ticks)); 891HRESULT.Check(MILMedia.GetPosition(_nativeMedia, ref position)); 903HRESULT.Check(MILMedia.SetRate(_nativeMedia, value));
System\Windows\Media\MediaSystem.cs (5)
45HRESULT.Check(UnsafeNativeMethods.MilVersionCheck(MS.Internal.Composition.Version.MilSdkVersion)); 54HRESULT.Check(SafeNativeMethods.MilCompositionEngine_InitializePartitionManager( 137HRESULT.Check(SafeNativeMethods.MilCompositionEngine_DeinitializePartitionManager()); 197HRESULT.Check(UnsafeNativeMethods.WgxConnection_Create( 230HRESULT.Check(UnsafeNativeMethods.WgxConnection_Disconnect(s_pConnection));
System\Windows\Media\MILUtilities.cs (1)
174HRESULT.Check(
System\Windows\Media\PathGeometry.cs (4)
571HRESULT.Check(MilCoreApi.MilUtility_GetPointAtLengthFraction( 646HRESULT.Check(hr); 794HRESULT.Check(hr); 849HRESULT.Check(hr);
System\Windows\Media\PixelFormat.cs (7)
343HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelCount( 356HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 365HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 407HRESULT.Check(hr); 410HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 440HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetBitsPerPixel( 507HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSource, out guidPixelFormat));
System\Windows\Media\safemediahandle.cs (1)
30HRESULT.Check(MILMedia.Shutdown(handle));
System\Windows\Media\SafeReversePInvokeHandle.cs (1)
36HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilCreateReversePInvokeWrapper(delegatePtr, out reversePInvokeWrapper));
System\Windows\Media\StreamAsIStream.cs (1)
659HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MILCreateStreamFromStreamDescriptor(ref sd, out pStream));