279 references to UnsafeNativeMethods
PresentationCore (279)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (3)
15using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 62UnsafeNativeMethods.MilCoreApi.EnterCompositionEngineLock(); 72UnsafeNativeMethods.MilCoreApi.ExitCompositionEngineLock();
System\Windows\InterOp\D3DImage.cs (9)
76UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 155HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.Create( 179UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 305HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.AddDirtyRect( 523if (HRESULT.Succeeded(UnsafeNativeMethods.InteropDeviceBitmap.GetAsSoftwareBitmap( 779UnsafeNativeMethods.MILUnknown.AddRef(_pInteropDeviceBitmap); 796UnsafeNativeMethods.MILUnknown.AddRef(_softwareCopy.WicSourceHandle); 876UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 911private UnsafeNativeMethods.InteropDeviceBitmap.FrontBufferAvailableCallback _availableCallback;
System\Windows\Media\ChannelManager.cs (1)
15using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi;
System\Windows\Media\ColorContext.cs (7)
14using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.UnsafeNativeMethods; 15using IWICCC = MS.Win32.PresentationCore.UnsafeNativeMethods.IWICColorContext; 115if (HRESULT.Failed(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext( 361HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i])); 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));
System\Windows\Media\ColorContextHelper.cs (5)
9using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.UnsafeNativeMethods; 36return UnsafeNativeMethodsMilCoreApi.Mscms.CloseColorProfile(handle); 56_profileHandle = UnsafeNativeMethodsMilCoreApi.Mscms.OpenColorProfile( 76return UnsafeNativeMethodsMilCoreApi.Mscms.GetColorProfileHeader(_profileHandle, out header); 91if (!UnsafeNativeMethodsMilCoreApi.Mscms.GetColorProfileFromHandle(_profileHandle, buffer, ref bufferSize) && buffer != null)
System\Windows\Media\ColorTransformHelper.cs (4)
8using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 35return UnsafeNativeMethods.Mscms.DeleteColorTransform(handle); 83_transformHandle = UnsafeNativeMethods.Mscms.CreateMultiProfileTransform( 113HRESULT.Check(UnsafeNativeMethods.Mscms.TranslateColors(
System\Windows\Media\FactoryMaker.cs (6)
8using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 32HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateFactory(out s_pFactory, MS.Internal.Composition.Version.MilSdkVersion)); 71UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref s_pFactory); 75UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref s_pImagingFactory); 113HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateImagingFactory(UnsafeNativeMethods.WICCodec.WINCODEC_SDK_VERSION, out s_pImagingFactory));
System\Windows\Media\Geometry.cs (4)
609int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryFlatten( 694hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryWiden(&penData, 709hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryWiden(&penData, 834int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryOutline(
System\Windows\Media\GlyphTypeface.cs (3)
24using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 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 (17)
521int hr = UnsafeNativeMethods.WICBitmapDecoder.CopyPalette( 571int hr = UnsafeNativeMethods.WICBitmapDecoder.GetThumbnail( 587int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 631int hr = UnsafeNativeMethods.WICBitmapDecoder.GetMetadataQueryReader( 671HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 725int hr = UnsafeNativeMethods.WICBitmapDecoder.GetPreview( 741int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 939return UnsafeNativeMethods.WICBitmapDecoder.GetColorContexts(_decoderHandle, numContexts, colorContextPtrs, out numContexts); 1137HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromFileHandle( 1153HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromStream( 1174UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream); 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)); 1537UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream);
System\Windows\Media\Imaging\BitmapEncoder.cs (20)
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)); 452UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream); 521int hr = UnsafeNativeMethods.WICBitmapEncoder.GetMetadataQueryWriter( 558HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateEncoder( 581HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetSize( 603HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetResolution( 623HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetThumbnail( 640int hr = UnsafeNativeMethods.WICBitmapFrameEncode.SetColorContexts( 669int hr = UnsafeNativeMethods.WICBitmapFrameEncode.SetColorContexts( 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 (5)
216return UnsafeNativeMethods.WICBitmapFrameDecode.GetColorContexts(_frameSource, numContexts, colorContextPtrs, out numContexts); 570int hr = UnsafeNativeMethods.WICBitmapFrameDecode.GetThumbnail( 589int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 631int hr = UnsafeNativeMethods.WICBitmapFrameDecode.GetMetadataQueryReader( 695HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrame(
System\Windows\Media\Imaging\BitmapMetadata.cs (31)
154HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 171UnsafeNativeMethods.MILUnknown.Release(pIMetadataWriter); 215return UnsafeNativeMethods.MILUnknown.QueryInterface( 258hr = UnsafeNativeMethods.WICMetadataBlockReader.GetCount( 274hr = UnsafeNativeMethods.WICMetadataBlockReader.GetReaderByIndex( 285hr = UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 309UnsafeNativeMethods.MILUnknown.Release(pIMetadataWriter); 339return UnsafeNativeMethods.MILUnknown.QueryInterface( 365UnsafeNativeMethods.MILUnknown.AddRef(metadataWriter); 398UnsafeNativeMethods.MILUnknown.AddRef(metadataWriter); 519int hr = UnsafeNativeMethods.MILUnknown.QueryInterface( 586HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapShortNameToGuid( 645hr = UnsafeNativeMethods.WICImagingFactory.CreateQueryWriter( 687HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 706UnsafeNativeMethods.MILUnknown.Release(blockWriter); 711UnsafeNativeMethods.MILUnknown.Release(queryWriter); 736HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 755UnsafeNativeMethods.MILUnknown.Release(blockWriter); 760UnsafeNativeMethods.MILUnknown.Release(queryWriter); 783hr = UnsafeNativeMethods.WICImagingFactory.CreateQueryWriterFromReader( 812UnsafeNativeMethods.MILUnknown.Release(queryWriter); 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( 1091hr = UnsafeNativeMethods.WICMetadataQueryReader.GetMetadataByName( 1142hr = UnsafeNativeMethods.WICMetadataQueryWriter.RemoveMetadataByName( 1187hr = UnsafeNativeMethods.WICMetadataQueryReader.ContainsMetadataByName( 1466HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetContainerFormat(
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
61int hr = UnsafeNativeMethods.EnumString.Next( 103HRESULT.Check(UnsafeNativeMethods.EnumString.Reset(_enumeratorHandle)); 164HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetEnumerator(
System\Windows\Media\Imaging\BitmapPalette.cs (9)
75HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeFromBitmap( 120HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializePredefined( 161int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 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 (15)
11using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 584HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 612HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetSize( 617HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetResolution( 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( 876UnsafeNativeMethods.MILUnknown.AddRef(pCWICWrapperBitmap); 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\BitmapSourceSafeMILHandle.cs (4)
13using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 78int hr = UnsafeNativeMethods.MILUnknown.QueryInterface( 100hr = UnsafeNativeMethods.WICBitmapSource.GetSize( 109hr = UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSourceSafeHandle, out guidFormat);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
113HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 143UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIRenderTargetBitmap);
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 (5)
55HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromFrameDecode( 62HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 83HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromDecoder( 90HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 108hr = UnsafeNativeMethods.WICFastMetadataEncoder.Commit(_fmeHandle);
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 (6)
410HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 447UnsafeNativeMethods.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr))); 477UnsafeNativeMethods.MILUnknown.Release(punkVal); 696int hr = UnsafeNativeMethods.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryWriter, out queryHandle); 710hr = UnsafeNativeMethods.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryReader, out queryHandle); 730UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref queryHandle);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
119HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTargetForBitmap( 238HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTarget(
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\UnknownBitmapDecoder.cs (2)
27MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CoInitialize(IntPtr.Zero); 32MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CoUninitialize();
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 (4)
256HRESULT.Check(UnsafeNativeMethods.WICBitmap.Lock( 270HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetDataPointer( 278HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetStride( 1223UnsafeNativeMethods.MILUnknown.AddRef(_pDoubleBufferedBitmap);
System\Windows\Media\MediaPlayerState.cs (3)
12using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 786HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateMediaPlayer( 1014UnsafeNativeMethods.MILUnknown.AddRef(_nativeMedia);
System\Windows\Media\MediaSystem.cs (1)
15using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi;
System\Windows\Media\PathGeometry.cs (3)
8using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 622int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryCombine( 770int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryBounds(
System\Windows\Media\PixelFormat.cs (11)
9using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 343HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelCount( 356HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 365HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 379UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pixelFormatInfo); 398int hr = UnsafeNativeMethods.WICImagingFactory.CreateComponentInfo( 410HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 419UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref componentInfo); 440HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetBitsPerPixel( 449UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pixelFormatInfo); 507HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSource, out guidPixelFormat));
System\Windows\Media\RenderOptions.cs (2)
235return UnsafeNativeMethods.MilCoreApi.RenderOptions_IsSoftwareRenderingForcedForProcess() ? 246UnsafeNativeMethods.MilCoreApi.RenderOptions_ForceSoftwareRenderingModeForProcess(
System\Windows\Media\safemediahandle.cs (2)
9using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 31UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeMILHandle.cs (2)
12using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 63UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeReversePInvokeHandle.cs (4)
13using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 36HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilCreateReversePInvokeWrapper(delegatePtr, out reversePInvokeWrapper)); 45UnsafeNativeMethods.MilCoreApi.MilReleasePInvokePtrBlocking(handle); 47UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\StreamAsIStream.cs (8)
8using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 589if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 594if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromIStream(pIStream, comStream))) 596UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIStream); 611if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 616if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize))) 618UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIStream); 659HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MILCreateStreamFromStreamDescriptor(ref sd, out pStream));
System\Windows\Media\TileBrush.cs (1)
124MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi.MilUtility_GetTileBrushMapping(
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
519UnsafeNativeMethods.MILUnknown.Release(ptr);