System\Windows\Media\ColorContext.cs (15)
41if (HRESULT.Failed(IWICCC.GetType(_colorContextHandle, out type)))
51if (HRESULT.Succeeded(hr) && cbProfileActual != 0)
54if (HRESULT.Failed(IWICCC.GetProfileBytes(
68if (HRESULT.Failed(IWICCC.GetExifColorSpace(_colorContextHandle, out colorSpace)))
115if (HRESULT.Failed(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(
122if (HRESULT.Failed(IWICCC.InitializeFromMemory(
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\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));