278 references to UnsafeNativeMethods
PresentationCore (278)
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)
17using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.UnsafeNativeMethods; 18using IWICCC = MS.Win32.PresentationCore.UnsafeNativeMethods.IWICColorContext; 118if (HRESULT.Failed(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext( 364HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i])); 552HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize)); 570HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize)); 603HRESULT.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 (3)
616int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryFlatten( 712int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryWiden( 844int 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)
527int hr = UnsafeNativeMethods.WICBitmapDecoder.CopyPalette( 577int hr = UnsafeNativeMethods.WICBitmapDecoder.GetThumbnail( 593int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 637int hr = UnsafeNativeMethods.WICBitmapDecoder.GetMetadataQueryReader( 677HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 731int hr = UnsafeNativeMethods.WICBitmapDecoder.GetPreview( 747int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 945return UnsafeNativeMethods.WICBitmapDecoder.GetColorContexts(_decoderHandle, numContexts, colorContextPtrs, out numContexts); 1145HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromFileHandle( 1161HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromStream( 1185UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream); 1241HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 1247HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat(decoderInfo, out clsId)); 1253HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1265HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1437HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrameCount(_decoderHandle, out numFrames)); 1548UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream);
System\Windows\Media\Imaging\BitmapEncoder.cs (20)
248HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.GetEncoderInfo( 352HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Initialize( 369HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetThumbnail( 384HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetPalette( 410HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 428HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.CreateNewFrame( 448HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Commit(encoderHandle)); 455UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream); 524int hr = UnsafeNativeMethods.WICBitmapEncoder.GetMetadataQueryWriter( 561HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateEncoder( 584HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetSize( 606HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetResolution( 626HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetThumbnail( 643int hr = UnsafeNativeMethods.WICBitmapFrameEncode.SetColorContexts( 672int hr = UnsafeNativeMethods.WICBitmapFrameEncode.SetColorContexts( 698HRESULT.Check(UnsafeNativeMethods.WICCodec.WICSetEncoderFormat( 719HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.GetMetadataQueryWriter( 732HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 750HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.WriteSource( 759HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Commit(
System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
222return UnsafeNativeMethods.WICBitmapFrameDecode.GetColorContexts(_frameSource, numContexts, colorContextPtrs, out numContexts); 579int hr = UnsafeNativeMethods.WICBitmapFrameDecode.GetThumbnail( 598int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 640int hr = UnsafeNativeMethods.WICBitmapFrameDecode.GetMetadataQueryReader( 704HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrame(
System\Windows\Media\Imaging\BitmapMetadata.cs (31)
161HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 178UnsafeNativeMethods.MILUnknown.Release(pIMetadataWriter); 222return UnsafeNativeMethods.MILUnknown.QueryInterface( 265hr = UnsafeNativeMethods.WICMetadataBlockReader.GetCount( 281hr = UnsafeNativeMethods.WICMetadataBlockReader.GetReaderByIndex( 292hr = UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 319UnsafeNativeMethods.MILUnknown.Release(pIMetadataWriter); 349return UnsafeNativeMethods.MILUnknown.QueryInterface( 375UnsafeNativeMethods.MILUnknown.AddRef(metadataWriter); 408UnsafeNativeMethods.MILUnknown.AddRef(metadataWriter); 529int hr = UnsafeNativeMethods.MILUnknown.QueryInterface( 596HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapShortNameToGuid( 655hr = UnsafeNativeMethods.WICImagingFactory.CreateQueryWriter( 697HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 716UnsafeNativeMethods.MILUnknown.Release(blockWriter); 721UnsafeNativeMethods.MILUnknown.Release(queryWriter); 746HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 765UnsafeNativeMethods.MILUnknown.Release(blockWriter); 770UnsafeNativeMethods.MILUnknown.Release(queryWriter); 793hr = UnsafeNativeMethods.WICImagingFactory.CreateQueryWriterFromReader( 822UnsafeNativeMethods.MILUnknown.Release(queryWriter); 914HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 928HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 956HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 970HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 1056HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1068HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1103hr = UnsafeNativeMethods.WICMetadataQueryReader.GetMetadataByName( 1157hr = UnsafeNativeMethods.WICMetadataQueryWriter.RemoveMetadataByName( 1202hr = UnsafeNativeMethods.WICMetadataQueryReader.ContainsMetadataByName( 1480HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetContainerFormat(
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
65int hr = UnsafeNativeMethods.EnumString.Next( 107HRESULT.Check(UnsafeNativeMethods.EnumString.Reset(_enumeratorHandle)); 170HRESULT.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( 903HRESULT.Check(UnsafeNativeMethods.MilCoreApi.CreateCWICWrapperBitmap( 907UnsafeNativeMethods.MILUnknown.AddRef(pCWICWrapperBitmap); 1192HRESULT.Check(UnsafeNativeMethods.WICCodec.WICConvertBitmapSource( 1198HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1207HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1790HRESULT.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)
358HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 412HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromMemory( 424HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetResolution( 431HRESULT.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)
423HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 460UnsafeNativeMethods.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr))); 490UnsafeNativeMethods.MILUnknown.Release(punkVal); 709int hr = UnsafeNativeMethods.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryWriter, out queryHandle); 723hr = UnsafeNativeMethods.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryReader, out queryHandle); 743UnsafeNativeMethods.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( 1241UnsafeNativeMethods.MILUnknown.AddRef(_pDoubleBufferedBitmap);
System\Windows\Media\MediaPlayerState.cs (3)
13using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 789HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateMediaPlayer( 1021UnsafeNativeMethods.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; 622int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryCombine( 776int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryBounds(
System\Windows\Media\PixelFormat.cs (11)
10using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 509HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelCount( 522HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 531HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 545UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pixelFormatInfo); 564int hr = UnsafeNativeMethods.WICImagingFactory.CreateComponentInfo( 576HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 585UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref componentInfo); 606HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetBitsPerPixel( 615UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pixelFormatInfo); 675HRESULT.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; 70UnsafeNativeMethods.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)
11using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 644if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 649if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromIStream(pIStream, comStream))) 651UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIStream); 666if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 671if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize))) 673UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIStream); 713HRESULT.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)
522UnsafeNativeMethods.MILUnknown.Release(ptr);