279 references to UnsafeNativeMethods
PresentationCore (279)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (3)
16using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 63UnsafeNativeMethods.MilCoreApi.EnterCompositionEngineLock(); 73UnsafeNativeMethods.MilCoreApi.ExitCompositionEngineLock();
System\Windows\InterOp\D3DImage.cs (9)
77UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 156HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.Create( 180UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 306HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.AddDirtyRect( 524if (HRESULT.Succeeded(UnsafeNativeMethods.InteropDeviceBitmap.GetAsSoftwareBitmap( 781UnsafeNativeMethods.MILUnknown.AddRef(_pInteropDeviceBitmap); 798UnsafeNativeMethods.MILUnknown.AddRef(_softwareCopy.WicSourceHandle); 879UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 914private UnsafeNativeMethods.InteropDeviceBitmap.FrontBufferAvailableCallback _availableCallback;
System\Windows\Media\ChannelManager.cs (1)
16using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi;
System\Windows\Media\ColorContext.cs (7)
15using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.UnsafeNativeMethods; 16using IWICCC = MS.Win32.PresentationCore.UnsafeNativeMethods.IWICColorContext; 116if (HRESULT.Failed(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext( 362HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i])); 548HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize)); 566HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize)); 599HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out _colorContextHandle));
System\Windows\Media\ColorContextHelper.cs (5)
10using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.UnsafeNativeMethods; 37return UnsafeNativeMethodsMilCoreApi.Mscms.CloseColorProfile(handle); 57_profileHandle = UnsafeNativeMethodsMilCoreApi.Mscms.OpenColorProfile( 77return UnsafeNativeMethodsMilCoreApi.Mscms.GetColorProfileHeader(_profileHandle, out header); 92if (!UnsafeNativeMethodsMilCoreApi.Mscms.GetColorProfileFromHandle(_profileHandle, buffer, ref bufferSize) && buffer != null)
System\Windows\Media\ColorTransformHelper.cs (4)
9using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 36return UnsafeNativeMethods.Mscms.DeleteColorTransform(handle); 84_transformHandle = UnsafeNativeMethods.Mscms.CreateMultiProfileTransform( 114HRESULT.Check(UnsafeNativeMethods.Mscms.TranslateColors(
System\Windows\Media\FactoryMaker.cs (6)
9using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 33HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateFactory(out s_pFactory, MS.Internal.Composition.Version.MilSdkVersion)); 72UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref s_pFactory); 76UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref s_pImagingFactory); 114HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateImagingFactory(UnsafeNativeMethods.WICCodec.WINCODEC_SDK_VERSION, out s_pImagingFactory));
System\Windows\Media\Geometry.cs (4)
610int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryFlatten( 695hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryWiden(&penData, 710hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryWiden(&penData, 835int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryOutline(
System\Windows\Media\GlyphTypeface.cs (3)
25using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 1264HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilGlyphRun_GetGlyphOutline( 1284HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilGlyphRun_ReleasePathGeometryData(
System\Windows\Media\Imaging\BitmapCodecInfo.cs (20)
56HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat( 79HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetAuthor( 93HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetAuthor( 122HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetVersion( 136HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetVersion( 165HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetSpecVersion( 179HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetSpecVersion( 208HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetFriendlyName( 222HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetFriendlyName( 251HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceManufacturer( 265HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceManufacturer( 294HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceModels( 308HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceModels( 337HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 351HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 380HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetFileExtensions( 394HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetFileExtensions( 421HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportAnimation( 442HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportLossless( 463HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportMultiframe(
System\Windows\Media\Imaging\BitmapDecoder.cs (17)
522int hr = UnsafeNativeMethods.WICBitmapDecoder.CopyPalette( 572int hr = UnsafeNativeMethods.WICBitmapDecoder.GetThumbnail( 588int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 632int hr = UnsafeNativeMethods.WICBitmapDecoder.GetMetadataQueryReader( 672HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 726int hr = UnsafeNativeMethods.WICBitmapDecoder.GetPreview( 742int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 940return UnsafeNativeMethods.WICBitmapDecoder.GetColorContexts(_decoderHandle, numContexts, colorContextPtrs, out numContexts); 1138HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromFileHandle( 1154HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromStream( 1175UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream); 1231HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 1237HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat(decoderInfo, out clsId)); 1243HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1255HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1427HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrameCount(_decoderHandle, out numFrames)); 1538UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream);
System\Windows\Media\Imaging\BitmapEncoder.cs (20)
246HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.GetEncoderInfo( 350HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Initialize( 367HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetThumbnail( 382HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetPalette( 408HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 426HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.CreateNewFrame( 446HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Commit(encoderHandle)); 453UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream); 522int hr = UnsafeNativeMethods.WICBitmapEncoder.GetMetadataQueryWriter( 559HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateEncoder( 582HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetSize( 604HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetResolution( 624HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetThumbnail( 641int hr = UnsafeNativeMethods.WICBitmapFrameEncode.SetColorContexts( 670int hr = UnsafeNativeMethods.WICBitmapFrameEncode.SetColorContexts( 696HRESULT.Check(UnsafeNativeMethods.WICCodec.WICSetEncoderFormat( 717HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.GetMetadataQueryWriter( 730HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 748HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.WriteSource( 757HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Commit(
System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
217return UnsafeNativeMethods.WICBitmapFrameDecode.GetColorContexts(_frameSource, numContexts, colorContextPtrs, out numContexts); 571int hr = UnsafeNativeMethods.WICBitmapFrameDecode.GetThumbnail( 590int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 632int hr = UnsafeNativeMethods.WICBitmapFrameDecode.GetMetadataQueryReader( 696HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrame(
System\Windows\Media\Imaging\BitmapMetadata.cs (31)
155HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 172UnsafeNativeMethods.MILUnknown.Release(pIMetadataWriter); 216return UnsafeNativeMethods.MILUnknown.QueryInterface( 259hr = UnsafeNativeMethods.WICMetadataBlockReader.GetCount( 275hr = UnsafeNativeMethods.WICMetadataBlockReader.GetReaderByIndex( 286hr = UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 310UnsafeNativeMethods.MILUnknown.Release(pIMetadataWriter); 340return UnsafeNativeMethods.MILUnknown.QueryInterface( 366UnsafeNativeMethods.MILUnknown.AddRef(metadataWriter); 399UnsafeNativeMethods.MILUnknown.AddRef(metadataWriter); 520int hr = UnsafeNativeMethods.MILUnknown.QueryInterface( 587HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapShortNameToGuid( 646hr = UnsafeNativeMethods.WICImagingFactory.CreateQueryWriter( 688HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 707UnsafeNativeMethods.MILUnknown.Release(blockWriter); 712UnsafeNativeMethods.MILUnknown.Release(queryWriter); 737HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 756UnsafeNativeMethods.MILUnknown.Release(blockWriter); 761UnsafeNativeMethods.MILUnknown.Release(queryWriter); 784hr = UnsafeNativeMethods.WICImagingFactory.CreateQueryWriterFromReader( 813UnsafeNativeMethods.MILUnknown.Release(queryWriter); 905HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 919HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 947HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 961HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 1045HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1057HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1092hr = UnsafeNativeMethods.WICMetadataQueryReader.GetMetadataByName( 1143hr = UnsafeNativeMethods.WICMetadataQueryWriter.RemoveMetadataByName( 1188hr = UnsafeNativeMethods.WICMetadataQueryReader.ContainsMetadataByName( 1467HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetContainerFormat(
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
62int hr = UnsafeNativeMethods.EnumString.Next( 104HRESULT.Check(UnsafeNativeMethods.EnumString.Reset(_enumeratorHandle)); 165HRESULT.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( 735HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.CopyPixels( 817HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.CopyPixels( 855HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFormatConverter( 859HRESULT.Check(UnsafeNativeMethods.WICFormatConverter.Initialize( 877HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 902HRESULT.Check(UnsafeNativeMethods.MilCoreApi.CreateCWICWrapperBitmap( 906UnsafeNativeMethods.MILUnknown.AddRef(pCWICWrapperBitmap); 1191HRESULT.Check(UnsafeNativeMethods.WICCodec.WICConvertBitmapSource( 1197HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1206HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1789HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeFromPalette(pIPalette, palette.InternalPalette));
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (4)
14using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 79int hr = UnsafeNativeMethods.MILUnknown.QueryInterface( 101hr = UnsafeNativeMethods.WICBitmapSource.GetSize( 110hr = UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSourceSafeHandle, out guidFormat);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
114HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 144UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIRenderTargetBitmap);
System\Windows\Media\Imaging\BmpBitmapEncoder.cs (1)
56HRESULT.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)
92HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateColorTransform( 99HRESULT.Check(UnsafeNativeMethods.WICColorTransform.Initialize(
System\Windows\Media\Imaging\CroppedBitmap.cs (2)
99HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapClipper( 105HRESULT.Check(UnsafeNativeMethods.WICBitmapClipper.Initialize(
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (2)
99HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFormatConverter( 113HRESULT.Check(UnsafeNativeMethods.WICFormatConverter.Initialize(
System\Windows\Media\Imaging\GifBitmapEncoder.cs (1)
56HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\InplaceBitmapMetadataWriter.cs (5)
56HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromFrameDecode( 63HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 84HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromDecoder( 91HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 109hr = UnsafeNativeMethods.WICFastMetadataEncoder.Commit(_fmeHandle);
System\Windows\Media\Imaging\InteropBitmapSource.cs (11)
45HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromHBITMAP( 78HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromHICON( 120HRESULT.Check(UnsafeNativeMethods.WindowsCodecApi.CreateBitmapFromSection( 231HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 348HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetResolution(_unmanagedSource, 96, 96)); 356HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapClipper( 362HRESULT.Check(UnsafeNativeMethods.WICBitmapClipper.Initialize( 384HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapScaler( 390HRESULT.Check(UnsafeNativeMethods.WICBitmapScaler.Initialize( 400HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 406HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\JpegBitmapEncoder.cs (3)
198HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 218HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 231HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PngBitmapEncoder.cs (2)
112HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 125HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PropVariant.cs (6)
411HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 448UnsafeNativeMethods.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr))); 478UnsafeNativeMethods.MILUnknown.Release(punkVal); 697int hr = UnsafeNativeMethods.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryWriter, out queryHandle); 711hr = UnsafeNativeMethods.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryReader, out queryHandle); 731UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref queryHandle);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
120HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTargetForBitmap( 239HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTarget(
System\Windows\Media\Imaging\TiffBitmapEncoder.cs (2)
148HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 161HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\TransformedBitmap.cs (6)
179HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapScaler( 185HRESULT.Check(UnsafeNativeMethods.WICBitmapScaler.Initialize( 211HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 217HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize( 231HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 237HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\UnknownBitmapDecoder.cs (2)
28MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CoInitialize(IntPtr.Zero); 33MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CoUninitialize();
System\Windows\Media\Imaging\UnknownBitmapEncoder.cs (1)
59HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WmpBitmapEncoder.cs (17)
424HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 444HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 464HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 484HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 504HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 524HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 544HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 564HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 584HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 604HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 624HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 644HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 664HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 684HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 704HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 724HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 737HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WriteableBitmap.cs (4)
257HRESULT.Check(UnsafeNativeMethods.WICBitmap.Lock( 271HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetDataPointer( 279HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetStride( 1230UnsafeNativeMethods.MILUnknown.AddRef(_pDoubleBufferedBitmap);
System\Windows\Media\MediaPlayerState.cs (3)
13using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 787HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateMediaPlayer( 1015UnsafeNativeMethods.MILUnknown.AddRef(_nativeMedia);
System\Windows\Media\MediaSystem.cs (1)
15using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi;
System\Windows\Media\PathGeometry.cs (3)
9using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 623int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryCombine( 771int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryBounds(
System\Windows\Media\PixelFormat.cs (11)
10using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 344HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelCount( 357HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 366HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 380UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pixelFormatInfo); 399int hr = UnsafeNativeMethods.WICImagingFactory.CreateComponentInfo( 411HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 420UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref componentInfo); 441HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetBitsPerPixel( 450UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pixelFormatInfo); 508HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSource, out guidPixelFormat));
System\Windows\Media\RenderOptions.cs (2)
236return UnsafeNativeMethods.MilCoreApi.RenderOptions_IsSoftwareRenderingForcedForProcess() ? 247UnsafeNativeMethods.MilCoreApi.RenderOptions_ForceSoftwareRenderingModeForProcess(
System\Windows\Media\safemediahandle.cs (2)
10using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 32UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeMILHandle.cs (2)
13using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 64UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeReversePInvokeHandle.cs (4)
14using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 37HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilCreateReversePInvokeWrapper(delegatePtr, out reversePInvokeWrapper)); 46UnsafeNativeMethods.MilCoreApi.MilReleasePInvokePtrBlocking(handle); 48UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\StreamAsIStream.cs (8)
9using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 590if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 595if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromIStream(pIStream, comStream))) 597UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIStream); 612if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 617if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize))) 619UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIStream); 660HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MILCreateStreamFromStreamDescriptor(ref sd, out pStream));
System\Windows\Media\TileBrush.cs (1)
125MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi.MilUtility_GetTileBrushMapping(
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
520UnsafeNativeMethods.MILUnknown.Release(ptr);