324 references to HRESULT
PresentationCore (324)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (12)
70if (HRESULT.Failed(hr)) 122if (HRESULT.Failed(hr)) 164if (HRESULT.Failed(hr)) 172if (HRESULT.Failed(hr)) 182if (HRESULT.Succeeded(hr)) 197if ( HRESULT.Failed(hr) ) 435if ( HRESULT.Failed(hr) ) 619if ( HRESULT.Succeeded(hr) && countOfAlternates != 0 ) 629if ( HRESULT.Failed(MS.Win32.Recognizer.UnsafeNativeMethods.GetString(pRecoAlternates[i], out recoRange, ref size, recoString)) 630|| HRESULT.Failed(MS.Win32.Recognizer.UnsafeNativeMethods.GetConfidenceLevel(pRecoAlternates[i], out recoRange, out confidenceLevel)) ) 678if ( HRESULT.Succeeded( 772if (HRESULT.Failed(MS.Win32.Recognizer.UnsafeNativeMethods.CreateRecognizer(ref s_Gesture, out s_hRec)))
MS\Win32\UnsafeNativeMethodsTablet.cs (2)
97return (MS.Internal.HRESULT.Succeeded(MS.Win32.Recognizer.UnsafeNativeMethods.DestroyRecognizer(handle))); 142return MS.Internal.HRESULT.Succeeded(hr);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (26)
32using HRESULT=MS.Internal.HRESULT; 370HRESULT.Check(UnsafeNativeMethods.MilConnection_CreateChannel( 394HRESULT.Check(UnsafeNativeMethods.MilConnection_CommitChannel( 415HRESULT.Check(UnsafeNativeMethods.MilConnection_CloseBatch( 437HRESULT.Check(MilCoreApi.MilComposition_SyncFlush(_hChannel)); 447HRESULT.Check(UnsafeNativeMethods.MilConnection_CloseBatch(_hChannel)); 448HRESULT.Check(UnsafeNativeMethods.MilConnection_CommitChannel(_hChannel)); 455HRESULT.Check(UnsafeNativeMethods.MilConnection_DestroyChannel(_hChannel)); 466HRESULT.Check(UnsafeNativeMethods.WgxConnection_SameThreadPresent(_pConnection)); 483HRESULT.Check(UnsafeNativeMethods.MilResource_CreateOrAddRefOnChannel( 520HRESULT.Check(UnsafeNativeMethods.MilResource_DuplicateHandle( 547HRESULT.Check(UnsafeNativeMethods.MilResource_ReleaseOnChannel( 575HRESULT.Check(UnsafeNativeMethods.MilResource_GetRefCountOnChannel( 606HRESULT.Check(UnsafeNativeMethods.MilChannel_GetMarshalType( 662int hr = HRESULT.S_OK; 682HRESULT.Check(hr); 698int hr = HRESULT.S_OK; 719HRESULT.Check(hr); 734int hr = HRESULT.S_OK; 754HRESULT.Check(hr); 775HRESULT.Check(UnsafeNativeMethods.MilChannel_EndCommand(_hChannel)); 789HRESULT.Check(UnsafeNativeMethods.MilResource_SendCommandBitmapSource( 808HRESULT.Check(UnsafeNativeMethods.MilResource_SendCommandMedia( 832HRESULT.Check(UnsafeNativeMethods.MilChannel_SetNotificationWindow( 851HRESULT.Check(UnsafeNativeMethods.MilComposition_WaitForNextMessage( 881HRESULT.Check(UnsafeNativeMethods.MilComposition_PeekNextMessage(
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (1)
1010return !(HRESULT.Succeeded(hr));
System\Windows\InterOp\D3DImage.cs (3)
168HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.Create( 318HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.AddDirtyRect( 536if (HRESULT.Succeeded(UnsafeNativeMethods.InteropDeviceBitmap.GetAsSoftwareBitmap(
System\Windows\InterOp\HwndTarget.cs (5)
32using HRESULT = MS.Internal.HRESULT; 553if (HRESULT.Failed(hr)) 563HRESULT.Check(hr); 693HRESULT.Check(VisualTarget_DetachFromHwnd(_hWnd)); 1531HRESULT.Check(MILUpdateSystemParametersInfo.Update());
System\Windows\Media\ChannelManager.cs (2)
131HRESULT.Check(UnsafeNativeMethods.WgxConnection_Disconnect(_pSyncConnection)); 145HRESULT.Check(UnsafeNativeMethods.WgxConnection_Create(
System\Windows\Media\ColorContext.cs (15)
58if (HRESULT.Failed(IWICCC.GetType(_colorContextHandle, out type))) 68if (HRESULT.Succeeded(hr) && cbProfileActual != 0) 71if (HRESULT.Failed(IWICCC.GetProfileBytes( 85if (HRESULT.Failed(IWICCC.GetExifColorSpace(_colorContextHandle, out colorSpace))) 132if (HRESULT.Failed(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext( 139if (HRESULT.Failed(IWICCC.InitializeFromMemory( 369HRESULT.Check(hr); 382HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i])); 395HRESULT.Check(getColorContexts(ref numContexts, colorContextPtrs)); 570HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize)); 588HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize)); 621HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out _colorContextHandle)); 622HRESULT.Check(IWICCC.InitializeFromMemory(_colorContextHandle, rawBytes, (uint)numBytesRead)); 669HRESULT.Check(Marshal.GetHRForLastWin32Error()); 683HRESULT.Check(Marshal.GetHRForLastWin32Error());
System\Windows\Media\ColorContextHelper.cs (1)
107HRESULT.Check(Marshal.GetHRForLastWin32Error());
System\Windows\Media\ColorTransformHelper.cs (2)
115HRESULT.Check(Marshal.GetHRForLastWin32Error()); 128HRESULT.Check(UnsafeNativeMethods.Mscms.TranslateColors(
System\Windows\Media\EventProxy.cs (1)
153HRESULT.Check(MILCreateEventProxy(ref epd, out eventProxy));
System\Windows\Media\FactoryMaker.cs (2)
40HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateFactory(out s_pFactory, MS.Internal.Composition.Version.MilSdkVersion)); 121HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateImagingFactory(UnsafeNativeMethods.WICCodec.WINCODEC_SDK_VERSION, out s_pImagingFactory));
System\Windows\Media\Geometry.cs (7)
224HRESULT.Check(hr); 318HRESULT.Check(hr); 444HRESULT.Check(hr); 494HRESULT.Check(hr); 646HRESULT.Check(hr); 744HRESULT.Check(hr); 874HRESULT.Check(hr);
System\Windows\Media\GlyphTypeface.cs (2)
1273HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilGlyphRun_GetGlyphOutline( 1293HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilGlyphRun_ReleasePathGeometryData(
System\Windows\Media\Imaging\BitmapCodecInfo.cs (20)
70HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat( 93HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetAuthor( 107HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetAuthor( 136HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetVersion( 150HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetVersion( 179HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetSpecVersion( 193HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetSpecVersion( 222HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetFriendlyName( 236HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetFriendlyName( 265HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceManufacturer( 279HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceManufacturer( 308HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceModels( 322HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceModels( 351HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 365HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 394HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetFileExtensions( 408HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetFileExtensions( 435HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportAnimation( 456HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportLossless( 477HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportMultiframe(
System\Windows\Media\Imaging\BitmapDecoder.cs (14)
551HRESULT.Check(hr); 601HRESULT.Check(hr); 615if (hr == HRESULT.S_OK) 661HRESULT.Check(hr); 695HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 755HRESULT.Check(hr); 769if (hr == HRESULT.S_OK) 1163HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromFileHandle( 1179HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromStream( 1259HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 1265HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat(decoderInfo, out clsId)); 1271HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1283HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1455HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrameCount(_decoderHandle, out numFrames));
System\Windows\Media\Imaging\BitmapEncoder.cs (19)
264HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.GetEncoderInfo( 368HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Initialize( 385HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetThumbnail( 400HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetPalette( 426HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 444HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.CreateNewFrame( 464HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Commit(encoderHandle)); 550HRESULT.Check(hr); 577HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateEncoder( 600HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetSize( 622HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetResolution( 642HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetThumbnail( 666if (hr == HRESULT.S_OK) 695if (hr == HRESULT.S_OK) 714HRESULT.Check(UnsafeNativeMethods.WICCodec.WICSetEncoderFormat( 735HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.GetMetadataQueryWriter( 748HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 766HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.WriteSource( 775HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Commit(
System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
601HRESULT.Check(hr); 617if (hr == HRESULT.S_OK) 662HRESULT.Check(hr); 694HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_NOTINITIALIZED); 719HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrame(
System\Windows\Media\Imaging\BitmapMetadata.cs (23)
172HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 281if (HRESULT.Succeeded(hr)) 298if (HRESULT.Failed(hr)) 310if (HRESULT.Failed(hr)) 545if (HRESULT.Succeeded(hr)) 607HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapShortNameToGuid( 674if (HRESULT.Succeeded(hr)) 708HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 757HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 812if (HRESULT.Succeeded(hr)) 823else if (!HRESULT.IsWindowsCodecError(hr)) 825HRESULT.Check(hr); 925HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 939HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 967HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 981HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 1067HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1079HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1123HRESULT.Check(hr); 1176HRESULT.Check(hr); 1220if (HRESULT.IsWindowsCodecError(hr)) 1226HRESULT.Check(hr); 1491HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetContainerFormat(
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (4)
80if (HRESULT.IsWindowsCodecError(hr)) 86HRESULT.Check(hr); 116HRESULT.Check(UnsafeNativeMethods.EnumString.Reset(_enumeratorHandle)); 179HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetEnumerator(
System\Windows\Media\Imaging\BitmapPalette.cs (9)
92HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeFromBitmap( 137HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializePredefined( 182if (hr != HRESULT.S_OK) 191HRESULT.Check(UnsafeNativeMethods.WICPalette.GetType(unmanagedPalette, out paletteType)); 192HRESULT.Check(UnsafeNativeMethods.WICPalette.HasAlpha(unmanagedPalette, out hasAlpha)); 267HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreatePalette( 300HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeCustom( 316HRESULT.Check(UnsafeNativeMethods.WICPalette.GetColorCount(_palette, 332HRESULT.Check(UnsafeNativeMethods.WICPalette.GetColors(
System\Windows\Media\Imaging\BitmapSource.cs (14)
600HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 628HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetSize( 633HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetResolution( 664HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 752HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.CopyPixels( 834HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.CopyPixels( 872HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFormatConverter( 876HRESULT.Check(UnsafeNativeMethods.WICFormatConverter.Initialize( 894HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 920HRESULT.Check(UnsafeNativeMethods.MilCoreApi.CreateCWICWrapperBitmap( 1209HRESULT.Check(UnsafeNativeMethods.WICCodec.WICConvertBitmapSource( 1215HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1224HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1807HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeFromPalette(pIPalette, palette.InternalPalette));
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (3)
89if (hr == HRESULT.S_OK) 110if (hr == HRESULT.S_OK) 115if (hr == HRESULT.S_OK)
System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
127HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface(
System\Windows\Media\Imaging\BmpBitmapEncoder.cs (1)
66HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\CachedBitmap.cs (4)
379HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 433HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromMemory( 445HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetResolution( 452HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetPalette(
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (2)
111HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateColorTransform( 118HRESULT.Check(UnsafeNativeMethods.WICColorTransform.Initialize(
System\Windows\Media\Imaging\CroppedBitmap.cs (2)
118HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapClipper( 124HRESULT.Check(UnsafeNativeMethods.WICBitmapClipper.Initialize(
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (2)
118HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFormatConverter( 132HRESULT.Check(UnsafeNativeMethods.WICFormatConverter.Initialize(
System\Windows\Media\Imaging\GifBitmapEncoder.cs (1)
67HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\InplaceBitmapMetadataWriter.cs (5)
71HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromFrameDecode( 78HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 99HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromDecoder( 106HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 127return HRESULT.Succeeded(hr);
System\Windows\Media\Imaging\InteropBitmapSource.cs (11)
59HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromHBITMAP( 92HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromHICON( 134HRESULT.Check(UnsafeNativeMethods.WindowsCodecApi.CreateBitmapFromSection( 245HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 362HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetResolution(_unmanagedSource, 96, 96)); 370HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapClipper( 376HRESULT.Check(UnsafeNativeMethods.WICBitmapClipper.Initialize( 398HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapScaler( 404HRESULT.Check(UnsafeNativeMethods.WICBitmapScaler.Initialize( 414HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 420HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\JpegBitmapEncoder.cs (3)
211HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 231HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 244HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PngBitmapEncoder.cs (2)
122HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 135HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PropVariant.cs (4)
438HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 726if (hr == HRESULT.S_OK) 740if (hr == HRESULT.S_OK) 751HRESULT.Check(hr);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (4)
139HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTargetForBitmap( 212HRESULT.Check(MILRenderTargetBitmap.Clear(_renderTargetBitmap)); 258HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTarget( 271HRESULT.Check(MILRenderTargetBitmap.GetBitmap(
System\Windows\Media\Imaging\TiffBitmapEncoder.cs (2)
159HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 172HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\TransformedBitmap.cs (6)
198HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapScaler( 204HRESULT.Check(UnsafeNativeMethods.WICBitmapScaler.Initialize( 230HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 236HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize( 250HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 256HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\UnknownBitmapEncoder.cs (1)
69HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WmpBitmapEncoder.cs (17)
437HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 457HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 477HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 497HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 517HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 537HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 557HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 577HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 597HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 617HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 637HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 657HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 677HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 697HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 717HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 737HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 750HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WriteableBitmap.cs (15)
101HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 107HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 113HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 119HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 134HRESULT.Check(MILSwDoubleBufferedBitmap.Create( 274HRESULT.Check(UnsafeNativeMethods.WICBitmap.Lock( 288HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetDataPointer( 296HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetStride( 620HRESULT.Check(MILSwDoubleBufferedBitmap.ProtectBackBuffer(_pDoubleBufferedBitmap)); 743HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 749HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 765HRESULT.Check(MILSwDoubleBufferedBitmap.Create( 851HRESULT.Check(MS.Win32.NativeMethods.E_INVALIDARG); 855HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_VALUEOVERFLOW); 891HRESULT.Check((int)WinCodecErrors.WINCODEC_ERR_INSUFFICIENTBUFFER);
System\Windows\Media\MediaContext.cs (2)
449case HRESULT.E_OUTOFMEMORY: 451case HRESULT.D3DERR_OUTOFVIDEOMEMORY:
System\Windows\Media\MediaContextNotificationWindow.cs (3)
93MS.Internal.HRESULT.Check(MilContent_AttachToHwnd(_hwndNotification.Value.Handle)); 103MS.Internal.HRESULT.Check(MilContent_DetachFromHwnd(_hwndNotification.Value.Handle)); 161MS.Internal.HRESULT.Check(MilContent_AttachToHwnd(_hwndNotification.Value.Handle));
System\Windows\Media\mediaeventshelper.cs (1)
289RaiseMediaFailed(HRESULT.ConvertHRToException(failureHr));
System\Windows\Media\MediaPlayerState.cs (19)
126HRESULT.Check(MILMedia.IsBuffering(_nativeMedia, ref isBuffering)); 140HRESULT.Check(MILMedia.CanPause(_nativeMedia, ref canPause)); 154HRESULT.Check(MILMedia.GetDownloadProgress(_nativeMedia, ref downloadProgress)); 168HRESULT.Check(MILMedia.GetBufferingProgress(_nativeMedia, ref bufferingProgress)); 184HRESULT.Check(MILMedia.GetNaturalHeight(_nativeMedia, ref height)); 200HRESULT.Check(MILMedia.GetNaturalWidth(_nativeMedia, ref width)); 216HRESULT.Check(MILMedia.HasAudio(_nativeMedia, ref hasAudio)); 232HRESULT.Check(MILMedia.HasVideo(_nativeMedia, ref hasVideo)); 285HRESULT.Check(hr); 331HRESULT.Check(hr); 354HRESULT.Check(MILMedia.SetIsScrubbingEnabled(_nativeMedia, value)); 411HRESULT.Check(MILMedia.GetMediaLength(_nativeMedia, ref mediaLength)); 742HRESULT.Check(MILMedia.Close(_nativeMedia)); 792HRESULT.Check(MILMedia.NeedUIFrameUpdate(_nativeMedia)); 810HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateMediaPlayer( 868HRESULT.Check(MILMedia.Open(_nativeMedia, toOpen)); 910HRESULT.Check(MILMedia.SetPosition(_nativeMedia, value.Ticks)); 921HRESULT.Check(MILMedia.GetPosition(_nativeMedia, ref position)); 933HRESULT.Check(MILMedia.SetRate(_nativeMedia, value));
System\Windows\Media\MediaSystem.cs (5)
58HRESULT.Check(UnsafeNativeMethods.MilVersionCheck(MS.Internal.Composition.Version.MilSdkVersion)); 67HRESULT.Check(SafeNativeMethods.MilCompositionEngine_InitializePartitionManager( 150HRESULT.Check(SafeNativeMethods.MilCompositionEngine_DeinitializePartitionManager()); 210HRESULT.Check(UnsafeNativeMethods.WgxConnection_Create( 243HRESULT.Check(UnsafeNativeMethods.WgxConnection_Disconnect(s_pConnection));
System\Windows\Media\MILUtilities.cs (1)
181HRESULT.Check(
System\Windows\Media\PathGeometry.cs (4)
595HRESULT.Check(MilCoreApi.MilUtility_GetPointAtLengthFraction( 670HRESULT.Check(hr); 824HRESULT.Check(hr); 879HRESULT.Check(hr);
System\Windows\Media\PixelFormat.cs (7)
522HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelCount( 535HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 544HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 586HRESULT.Check(hr); 589HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 619HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetBitsPerPixel( 688HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSource, out guidPixelFormat));
System\Windows\Media\safemediahandle.cs (1)
42HRESULT.Check(MILMedia.Shutdown(handle));
System\Windows\Media\SafeReversePInvokeHandle.cs (1)
47HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilCreateReversePInvokeWrapper(delegatePtr, out reversePInvokeWrapper));
System\Windows\Media\StreamAsIStream.cs (5)
655if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 660if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromIStream(pIStream, comStream))) 677if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 682if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize))) 724HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MILCreateStreamFromStreamDescriptor(ref sd, out pStream));