283 references to UnsafeNativeMethods
PresentationCore (283)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (3)
30using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 80UnsafeNativeMethods.MilCoreApi.EnterCompositionEngineLock(); 90UnsafeNativeMethods.MilCoreApi.ExitCompositionEngineLock();
System\Windows\InterOp\D3DImage.cs (9)
89UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 168HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.Create( 192UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 318HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.AddDirtyRect( 536if (HRESULT.Succeeded(UnsafeNativeMethods.InteropDeviceBitmap.GetAsSoftwareBitmap( 799UnsafeNativeMethods.MILUnknown.AddRef(_pInteropDeviceBitmap); 816UnsafeNativeMethods.MILUnknown.AddRef(_softwareCopy.WicSourceHandle); 897UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 932private UnsafeNativeMethods.InteropDeviceBitmap.FrontBufferAvailableCallback _availableCallback;
System\Windows\Media\ChannelManager.cs (1)
35using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi;
System\Windows\Media\ColorContext.cs (7)
31using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.UnsafeNativeMethods; 32using IWICCC = MS.Win32.PresentationCore.UnsafeNativeMethods.IWICColorContext; 132if (HRESULT.Failed(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext( 382HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i])); 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));
System\Windows\Media\ColorContextHelper.cs (5)
23using UnsafeNativeMethodsMilCoreApi=MS.Win32.PresentationCore.UnsafeNativeMethods; 50return UnsafeNativeMethodsMilCoreApi.Mscms.CloseColorProfile(handle); 70_profileHandle = UnsafeNativeMethodsMilCoreApi.Mscms.OpenColorProfile( 90return UnsafeNativeMethodsMilCoreApi.Mscms.GetColorProfileHeader(_profileHandle, out header); 105if (!UnsafeNativeMethodsMilCoreApi.Mscms.GetColorProfileFromHandle(_profileHandle, buffer, ref bufferSize) && buffer != null)
System\Windows\Media\ColorTransform.cs (1)
23using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods;
System\Windows\Media\ColorTransformHelper.cs (4)
23using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 50return UnsafeNativeMethods.Mscms.DeleteColorTransform(handle); 98_transformHandle = UnsafeNativeMethods.Mscms.CreateMultiProfileTransform( 128HRESULT.Check(UnsafeNativeMethods.Mscms.TranslateColors(
System\Windows\Media\FactoryMaker.cs (6)
16using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 40HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateFactory(out s_pFactory, MS.Internal.Composition.Version.MilSdkVersion)); 79UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref s_pFactory); 83UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref s_pImagingFactory); 121HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateImagingFactory(UnsafeNativeMethods.WICCodec.WINCODEC_SDK_VERSION, out s_pImagingFactory));
System\Windows\Media\Geometry.cs (3)
628int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryFlatten( 724int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryWiden( 856int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryOutline(
System\Windows\Media\GlyphTypeface.cs (3)
32using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 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 (17)
545int hr = UnsafeNativeMethods.WICBitmapDecoder.CopyPalette( 595int hr = UnsafeNativeMethods.WICBitmapDecoder.GetThumbnail( 611int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 655int hr = UnsafeNativeMethods.WICBitmapDecoder.GetMetadataQueryReader( 695HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 749int hr = UnsafeNativeMethods.WICBitmapDecoder.GetPreview( 765int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 963return UnsafeNativeMethods.WICBitmapDecoder.GetColorContexts(_decoderHandle, numContexts, colorContextPtrs, out numContexts); 1163HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromFileHandle( 1179HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromStream( 1203UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream); 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)); 1566UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream);
System\Windows\Media\Imaging\BitmapEncoder.cs (20)
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)); 471UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream); 540int hr = UnsafeNativeMethods.WICBitmapEncoder.GetMetadataQueryWriter( 577HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateEncoder( 600HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetSize( 622HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetResolution( 642HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetThumbnail( 659int hr = UnsafeNativeMethods.WICBitmapFrameEncode.SetColorContexts( 688int hr = UnsafeNativeMethods.WICBitmapFrameEncode.SetColorContexts( 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\BitmapFrame.cs (1)
27using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods;
System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
237return UnsafeNativeMethods.WICBitmapFrameDecode.GetColorContexts(_frameSource, numContexts, colorContextPtrs, out numContexts); 594int hr = UnsafeNativeMethods.WICBitmapFrameDecode.GetThumbnail( 613int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 655int hr = UnsafeNativeMethods.WICBitmapFrameDecode.GetMetadataQueryReader( 719HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrame(
System\Windows\Media\Imaging\BitmapMetadata.cs (31)
172HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 189UnsafeNativeMethods.MILUnknown.Release(pIMetadataWriter); 233return UnsafeNativeMethods.MILUnknown.QueryInterface( 276hr = UnsafeNativeMethods.WICMetadataBlockReader.GetCount( 292hr = UnsafeNativeMethods.WICMetadataBlockReader.GetReaderByIndex( 303hr = UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 330UnsafeNativeMethods.MILUnknown.Release(pIMetadataWriter); 360return UnsafeNativeMethods.MILUnknown.QueryInterface( 386UnsafeNativeMethods.MILUnknown.AddRef(metadataWriter); 419UnsafeNativeMethods.MILUnknown.AddRef(metadataWriter); 540int hr = UnsafeNativeMethods.MILUnknown.QueryInterface( 607HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapShortNameToGuid( 666hr = UnsafeNativeMethods.WICImagingFactory.CreateQueryWriter( 708HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 727UnsafeNativeMethods.MILUnknown.Release(blockWriter); 732UnsafeNativeMethods.MILUnknown.Release(queryWriter); 757HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 776UnsafeNativeMethods.MILUnknown.Release(blockWriter); 781UnsafeNativeMethods.MILUnknown.Release(queryWriter); 804hr = UnsafeNativeMethods.WICImagingFactory.CreateQueryWriterFromReader( 833UnsafeNativeMethods.MILUnknown.Release(queryWriter); 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( 1114hr = UnsafeNativeMethods.WICMetadataQueryReader.GetMetadataByName( 1168hr = UnsafeNativeMethods.WICMetadataQueryWriter.RemoveMetadataByName( 1213hr = UnsafeNativeMethods.WICMetadataQueryReader.ContainsMetadataByName( 1491HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetContainerFormat(
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
74int hr = UnsafeNativeMethods.EnumString.Next( 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( 178int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 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 (15)
25using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 600HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 628HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetSize( 633HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetResolution( 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( 924UnsafeNativeMethods.MILUnknown.AddRef(pCWICWrapperBitmap); 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 (4)
18using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 83int hr = UnsafeNativeMethods.MILUnknown.QueryInterface( 105hr = UnsafeNativeMethods.WICBitmapSource.GetSize( 114hr = UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSourceSafeHandle, out guidFormat);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
127HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 157UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIRenderTargetBitmap);
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( 124hr = UnsafeNativeMethods.WICFastMetadataEncoder.Commit(_fmeHandle);
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 (6)
438HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 475UnsafeNativeMethods.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr))); 505UnsafeNativeMethods.MILUnknown.Release(punkVal); 724int hr = UnsafeNativeMethods.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryWriter, out queryHandle); 738hr = UnsafeNativeMethods.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryReader, out queryHandle); 758UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref queryHandle);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
139HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTargetForBitmap( 258HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTarget(
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\UnknownBitmapDecoder.cs (2)
39MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CoInitialize(IntPtr.Zero); 44MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CoUninitialize();
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 (4)
274HRESULT.Check(UnsafeNativeMethods.WICBitmap.Lock( 288HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetDataPointer( 296HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetStride( 1255UnsafeNativeMethods.MILUnknown.AddRef(_pDoubleBufferedBitmap);
System\Windows\Media\mediaclock.cs (1)
25using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods;
System\Windows\Media\MediaPlayer.cs (1)
27using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods;
System\Windows\Media\MediaPlayerState.cs (3)
29using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 810HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateMediaPlayer( 1042UnsafeNativeMethods.MILUnknown.AddRef(_nativeMedia);
System\Windows\Media\MediaSystem.cs (1)
27using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi;
System\Windows\Media\PathGeometry.cs (3)
33using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 646int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryCombine( 800int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryBounds(
System\Windows\Media\PixelFormat.cs (11)
24using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 522HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelCount( 535HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 544HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 558UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pixelFormatInfo); 577int hr = UnsafeNativeMethods.WICImagingFactory.CreateComponentInfo( 589HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 598UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref componentInfo); 619HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetBitsPerPixel( 628UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pixelFormatInfo); 688HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSource, out guidPixelFormat));
System\Windows\Media\RenderOptions.cs (2)
240return UnsafeNativeMethods.MilCoreApi.RenderOptions_IsSoftwareRenderingForcedForProcess() ? 251UnsafeNativeMethods.MilCoreApi.RenderOptions_ForceSoftwareRenderingModeForProcess(
System\Windows\Media\safemediahandle.cs (2)
21using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 43UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeMILHandle.cs (2)
15using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 72UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeReversePInvokeHandle.cs (4)
24using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 47HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilCreateReversePInvokeWrapper(delegatePtr, out reversePInvokeWrapper)); 56UnsafeNativeMethods.MilCoreApi.MilReleasePInvokePtrBlocking(handle); 58UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\StreamAsIStream.cs (8)
21using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 655if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 660if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromIStream(pIStream, comStream))) 662UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIStream); 677if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 682if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize))) 684UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIStream); 724HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MILCreateStreamFromStreamDescriptor(ref sd, out pStream));
System\Windows\Media\StreamGeometry.cs (1)
33using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods;
System\Windows\Media\TileBrush.cs (1)
134MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi.MilUtility_GetTileBrushMapping(
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
534UnsafeNativeMethods.MILUnknown.Release(ptr);