283 references to UnsafeNativeMethods
PresentationCore (283)
Core\CSharp\System\Windows\Interop\D3DImage.cs (9)
116UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 201HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.Create( 225UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 356HRESULT.Check(UnsafeNativeMethods.InteropDeviceBitmap.AddDirtyRect( 587if (HRESULT.Succeeded(UnsafeNativeMethods.InteropDeviceBitmap.GetAsSoftwareBitmap( 874UnsafeNativeMethods.MILUnknown.AddRef(_pInteropDeviceBitmap); 891UnsafeNativeMethods.MILUnknown.AddRef(_softwareCopy.WicSourceHandle); 978UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap); 1021private UnsafeNativeMethods.InteropDeviceBitmap.FrontBufferAvailableCallback _availableCallback;
Core\CSharp\System\Windows\Media\ChannelManager.cs (1)
37using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi;
Core\CSharp\System\Windows\Media\ColorContext.cs (7)
34using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.UnsafeNativeMethods; 35using IWICCC = MS.Win32.PresentationCore.UnsafeNativeMethods.IWICColorContext; 139if (HRESULT.Failed(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext( 451HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i])); 663HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize)); 681HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize)); 718HRESULT.Check(UnsafeNativeMethodsMilCoreApi.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out _colorContextHandle));
Core\CSharp\System\Windows\Media\ColorContextHelper.cs (5)
26using UnsafeNativeMethodsMilCoreApi=MS.Win32.PresentationCore.UnsafeNativeMethods; 67return UnsafeNativeMethodsMilCoreApi.Mscms.CloseColorProfile(handle); 91_profileHandle = UnsafeNativeMethodsMilCoreApi.Mscms.OpenColorProfile( 115return UnsafeNativeMethodsMilCoreApi.Mscms.GetColorProfileHeader(_profileHandle, out header); 134if (!UnsafeNativeMethodsMilCoreApi.Mscms.GetColorProfileFromHandle(_profileHandle, buffer, ref bufferSize) && buffer != null)
Core\CSharp\System\Windows\Media\ColorTransform.cs (1)
24using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods;
Core\CSharp\System\Windows\Media\ColorTransformHelper.cs (4)
25using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 66return UnsafeNativeMethods.Mscms.DeleteColorTransform(handle); 118_transformHandle = UnsafeNativeMethods.Mscms.CreateMultiProfileTransform( 152HRESULT.Check(UnsafeNativeMethods.Mscms.TranslateColors(
Core\CSharp\System\Windows\Media\FactoryMaker.cs (6)
19using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 48HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateFactory(out s_pFactory, MS.Internal.Composition.Version.MilSdkVersion)); 93UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref s_pFactory); 97UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref s_pImagingFactory); 143HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateImagingFactory(UnsafeNativeMethods.WICCodec.WINCODEC_SDK_VERSION, out s_pImagingFactory));
Core\CSharp\System\Windows\Media\Geometry.cs (3)
655int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryFlatten( 764int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryWiden( 902int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryOutline(
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (3)
39using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 1617HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilGlyphRun_GetGlyphOutline( 1637HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilGlyphRun_ReleasePathGeometryData(
Core\CSharp\System\Windows\Media\Imaging\BitmapCodecInfo.cs (20)
81HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat( 113HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetAuthor( 127HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetAuthor( 165HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetVersion( 179HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetVersion( 217HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetSpecVersion( 231HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetSpecVersion( 269HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetFriendlyName( 283HRESULT.Check(UnsafeNativeMethods.WICComponentInfo.GetFriendlyName( 321HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceManufacturer( 335HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceManufacturer( 373HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceModels( 387HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetDeviceModels( 425HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 439HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 477HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetFileExtensions( 491HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetFileExtensions( 527HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportAnimation( 557HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportLossless( 587HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.DoesSupportMultiframe(
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (17)
601int hr = UnsafeNativeMethods.WICBitmapDecoder.CopyPalette( 656int hr = UnsafeNativeMethods.WICBitmapDecoder.GetThumbnail( 672int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 727int hr = UnsafeNativeMethods.WICBitmapDecoder.GetMetadataQueryReader( 772HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 831int hr = UnsafeNativeMethods.WICBitmapDecoder.GetPreview( 847int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 1052return UnsafeNativeMethods.WICBitmapDecoder.GetColorContexts(_decoderHandle, numContexts, colorContextPtrs, out numContexts); 1298HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromFileHandle( 1315HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateDecoderFromStream( 1338UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream); 1517HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetDecoderInfo( 1523HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetContainerFormat(decoderInfo, out clsId)); 1529HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1541HRESULT.Check(UnsafeNativeMethods.WICBitmapCodecInfo.GetMimeTypes( 1733HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrameCount(_decoderHandle, out numFrames)); 1850UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream);
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (20)
298HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.GetEncoderInfo( 414HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Initialize( 431HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetThumbnail( 446HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.SetPalette( 472HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 490HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.CreateNewFrame( 510HRESULT.Check(UnsafeNativeMethods.WICBitmapEncoder.Commit(encoderHandle)); 517UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref comStream); 591int hr = UnsafeNativeMethods.WICBitmapEncoder.GetMetadataQueryWriter( 632HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateEncoder( 659HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetSize( 681HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetResolution( 701HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.SetThumbnail( 718int hr = UnsafeNativeMethods.WICBitmapFrameEncode.SetColorContexts( 747int hr = UnsafeNativeMethods.WICBitmapFrameEncode.SetColorContexts( 773HRESULT.Check(UnsafeNativeMethods.WICCodec.WICSetEncoderFormat( 794HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.GetMetadataQueryWriter( 807HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 825HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.WriteSource( 834HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Commit(
Core\CSharp\System\Windows\Media\Imaging\BitmapFrame.cs (1)
30using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods;
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
254return UnsafeNativeMethods.WICBitmapFrameDecode.GetColorContexts(_frameSource, numContexts, colorContextPtrs, out numContexts); 644int hr = UnsafeNativeMethods.WICBitmapFrameDecode.GetThumbnail( 663int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 710int hr = UnsafeNativeMethods.WICBitmapFrameDecode.GetMetadataQueryReader( 779HRESULT.Check(UnsafeNativeMethods.WICBitmapDecoder.GetFrame(
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (31)
180HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 197UnsafeNativeMethods.MILUnknown.Release(pIMetadataWriter); 245return UnsafeNativeMethods.MILUnknown.QueryInterface( 296hr = UnsafeNativeMethods.WICMetadataBlockReader.GetCount( 312hr = UnsafeNativeMethods.WICMetadataBlockReader.GetReaderByIndex( 323hr = UnsafeNativeMethods.WICComponentFactory.CreateMetadataWriterFromReader( 350UnsafeNativeMethods.MILUnknown.Release(pIMetadataWriter); 384return UnsafeNativeMethods.MILUnknown.QueryInterface( 414UnsafeNativeMethods.MILUnknown.AddRef(metadataWriter); 451UnsafeNativeMethods.MILUnknown.AddRef(metadataWriter); 576int hr = UnsafeNativeMethods.MILUnknown.QueryInterface( 665HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapShortNameToGuid( 741hr = UnsafeNativeMethods.WICImagingFactory.CreateQueryWriter( 788HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 807UnsafeNativeMethods.MILUnknown.Release(blockWriter); 812UnsafeNativeMethods.MILUnknown.Release(queryWriter); 842HRESULT.Check(UnsafeNativeMethods.WICComponentFactory.CreateQueryWriterFromBlockWriter( 861UnsafeNativeMethods.MILUnknown.Release(blockWriter); 866UnsafeNativeMethods.MILUnknown.Release(queryWriter); 893hr = UnsafeNativeMethods.WICImagingFactory.CreateQueryWriterFromReader( 922UnsafeNativeMethods.MILUnknown.Release(queryWriter); 1019HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 1033HRESULT.Check(UnsafeNativeMethods.WICCodec.WICMapGuidToShortName( 1066HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 1080HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetLocation( 1177HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1189HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryWriter.SetMetadataByName( 1232hr = UnsafeNativeMethods.WICMetadataQueryReader.GetMetadataByName( 1294hr = UnsafeNativeMethods.WICMetadataQueryWriter.RemoveMetadataByName( 1357hr = UnsafeNativeMethods.WICMetadataQueryReader.ContainsMetadataByName( 1645HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetContainerFormat(
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
87int hr = UnsafeNativeMethods.EnumString.Next( 134HRESULT.Check(UnsafeNativeMethods.EnumString.Reset(_enumeratorHandle)); 202HRESULT.Check(UnsafeNativeMethods.WICMetadataQueryReader.GetEnumerator(
Core\CSharp\System\Windows\Media\Imaging\BitmapPalette.cs (9)
106HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeFromBitmap( 157HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializePredefined( 203int hr = UnsafeNativeMethods.WICBitmapSource.CopyPalette( 216HRESULT.Check(UnsafeNativeMethods.WICPalette.GetType(unmanagedPalette, out paletteType)); 217HRESULT.Check(UnsafeNativeMethods.WICPalette.HasAlpha(unmanagedPalette, out hasAlpha)); 301HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreatePalette( 336HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeCustom( 357HRESULT.Check(UnsafeNativeMethods.WICPalette.GetColorCount(_palette, 373HRESULT.Check(UnsafeNativeMethods.WICPalette.GetColors(
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (15)
27using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 649HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 681HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetSize( 686HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetResolution( 822HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.CopyPixels( 919HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.CopyPixels( 957HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFormatConverter( 961HRESULT.Check(UnsafeNativeMethods.WICFormatConverter.Initialize( 979HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1005HRESULT.Check(UnsafeNativeMethods.MilCoreApi.CreateCWICWrapperBitmap( 1009UnsafeNativeMethods.MILUnknown.AddRef(pCWICWrapperBitmap); 1308HRESULT.Check(UnsafeNativeMethods.WICCodec.WICConvertBitmapSource( 1314HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1323HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 1927HRESULT.Check(UnsafeNativeMethods.WICPalette.InitializeFromPalette(pIPalette, palette.InternalPalette));
Core\CSharp\System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (4)
19using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 113int hr = UnsafeNativeMethods.MILUnknown.QueryInterface( 135hr = UnsafeNativeMethods.WICBitmapSource.GetSize( 144hr = UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSourceSafeHandle, out guidFormat);
Core\CSharp\System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
140HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 170UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIRenderTargetBitmap);
Core\CSharp\System\Windows\Media\Imaging\BmpBitmapEncoder.cs (1)
81HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\CachedBitmap.cs (4)
445HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 503HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromMemory( 515HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetResolution( 522HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetPalette(
Core\CSharp\System\Windows\Media\Imaging\ColorConvertedBitmap.cs (2)
132HRESULT.Check(UnsafeNativeMethods.WICCodec.CreateColorTransform( 139HRESULT.Check(UnsafeNativeMethods.WICColorTransform.Initialize(
Core\CSharp\System\Windows\Media\Imaging\CroppedBitmap.cs (2)
133HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapClipper( 139HRESULT.Check(UnsafeNativeMethods.WICBitmapClipper.Initialize(
Core\CSharp\System\Windows\Media\Imaging\FormatConvertedBitmap.cs (2)
133HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFormatConverter( 147HRESULT.Check(UnsafeNativeMethods.WICFormatConverter.Initialize(
Core\CSharp\System\Windows\Media\Imaging\GifBitmapEncoder.cs (1)
79HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\InplaceBitmapMetadataWriter.cs (5)
82HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromFrameDecode( 89HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 115HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateFastMetadataEncoderFromDecoder( 122HRESULT.Check(UnsafeNativeMethods.WICFastMetadataEncoder.GetMetadataQueryWriter( 145hr = UnsafeNativeMethods.WICFastMetadataEncoder.Commit(_fmeHandle);
Core\CSharp\System\Windows\Media\Imaging\InteropBitmapSource.cs (11)
72HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromHBITMAP( 111HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromHICON( 166HRESULT.Check(UnsafeNativeMethods.WindowsCodecApi.CreateBitmapFromSection( 310HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFromSource( 442HRESULT.Check(UnsafeNativeMethods.WICBitmap.SetResolution(_unmanagedSource, 96, 96)); 450HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapClipper( 456HRESULT.Check(UnsafeNativeMethods.WICBitmapClipper.Initialize( 478HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapScaler( 484HRESULT.Check(UnsafeNativeMethods.WICBitmapScaler.Initialize( 494HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 500HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize(
Core\CSharp\System\Windows\Media\Imaging\JpegBitmapEncoder.cs (3)
229HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 249HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 262HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\PngBitmapEncoder.cs (2)
137HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 150HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (6)
464HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 506UnsafeNativeMethods.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr))); 536UnsafeNativeMethods.MILUnknown.Release(punkVal); 760int hr = UnsafeNativeMethods.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryWriter, out queryHandle); 774hr = UnsafeNativeMethods.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryReader, out queryHandle); 794UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref queryHandle);
Core\CSharp\System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
159HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTargetForBitmap( 296HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateBitmapRenderTarget(
Core\CSharp\System\Windows\Media\Imaging\TiffBitmapEncoder.cs (2)
174HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 187HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\TransformedBitmap.cs (6)
213HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapScaler( 219HRESULT.Check(UnsafeNativeMethods.WICBitmapScaler.Initialize( 245HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 251HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize( 265HRESULT.Check(UnsafeNativeMethods.WICImagingFactory.CreateBitmapFlipRotator( 271HRESULT.Check(UnsafeNativeMethods.WICBitmapFlipRotator.Initialize(
Core\CSharp\System\Windows\Media\Imaging\UnknownBitmapDecoder.cs (2)
46MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CoInitialize(IntPtr.Zero); 56MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CoUninitialize();
Core\CSharp\System\Windows\Media\Imaging\UnknownBitmapEncoder.cs (1)
84HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\WmpBitmapEncoder.cs (17)
475HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 495HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 515HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 535HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 555HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 575HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 595HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 615HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 635HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 655HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 675HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 695HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 715HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 735HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 755HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 775HRESULT.Check(UnsafeNativeMethods.IPropertyBag2.Write( 788HRESULT.Check(UnsafeNativeMethods.WICBitmapFrameEncode.Initialize(
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (4)
306HRESULT.Check(UnsafeNativeMethods.WICBitmap.Lock( 320HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetDataPointer( 328HRESULT.Check(UnsafeNativeMethods.WICBitmapLock.GetStride( 1450UnsafeNativeMethods.MILUnknown.AddRef(_pDoubleBufferedBitmap);
Core\CSharp\System\Windows\Media\MediaClock.cs (1)
27using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods;
Core\CSharp\System\Windows\Media\MediaPlayer.cs (1)
29using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods;
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (3)
31using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 917HRESULT.Check(UnsafeNativeMethods.MILFactory2.CreateMediaPlayer( 1298UnsafeNativeMethods.MILUnknown.AddRef(_nativeMedia);
Core\CSharp\System\Windows\Media\MediaSystem.cs (1)
28using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi;
Core\CSharp\System\Windows\Media\PathGeometry.cs (3)
34using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 689int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryCombine( 849int hr = UnsafeNativeMethods.MilCoreApi.MilUtility_PathGeometryBounds(
Core\CSharp\System\Windows\Media\PixelFormat.cs (11)
27using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 551HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelCount( 564HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 573HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetChannelMask( 587UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pixelFormatInfo); 610int hr = UnsafeNativeMethods.WICImagingFactory.CreateComponentInfo( 622HRESULT.Check(UnsafeNativeMethods.MILUnknown.QueryInterface( 631UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref componentInfo); 657HRESULT.Check(UnsafeNativeMethods.WICPixelFormatInfo.GetBitsPerPixel( 666UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pixelFormatInfo); 730HRESULT.Check(UnsafeNativeMethods.WICBitmapSource.GetPixelFormat(bitmapSource, out guidPixelFormat));
Core\CSharp\System\Windows\Media\RenderOptions.cs (2)
248return UnsafeNativeMethods.MilCoreApi.RenderOptions_IsSoftwareRenderingForcedForProcess() ? 261UnsafeNativeMethods.MilCoreApi.RenderOptions_ForceSoftwareRenderingModeForProcess(
Core\CSharp\System\Windows\Media\SafeMediaHandle.cs (2)
23using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 55UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
Core\CSharp\System\Windows\Media\SafeMILHandle.cs (2)
16using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods; 92UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
Core\CSharp\System\Windows\Media\SafeReversePInvokeHandle.cs (4)
27using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 59HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MilCreateReversePInvokeWrapper(delegatePtr, out reversePInvokeWrapper)); 73UnsafeNativeMethods.MilCoreApi.MilReleasePInvokePtrBlocking(handle); 75UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref handle);
Core\CSharp\System\Windows\Media\StreamAsIStream.cs (8)
23using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 717if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 722if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromIStream(pIStream, comStream))) 724UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIStream); 743if (HRESULT.Failed(UnsafeNativeMethods.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream))) 748if (HRESULT.Failed(UnsafeNativeMethods.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize))) 750UnsafeNativeMethods.MILUnknown.ReleaseInterface(ref pIStream); 797HRESULT.Check(UnsafeNativeMethods.MilCoreApi.MILCreateStreamFromStreamDescriptor(ref sd, out pStream));
Core\CSharp\System\Windows\Media\StreamGeometry.cs (1)
34using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods;
Core\CSharp\System\Windows\Media\TileBrush.cs (1)
143MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi.MilUtility_GetTileBrushMapping(
Core\CSharp\System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
760UnsafeNativeMethods.MILUnknown.Release(ptr);
Graphics\include\exports.cs (3)
34using UnsafeNativeMethods=MS.Win32.PresentationCore.UnsafeNativeMethods; 91UnsafeNativeMethods.MilCoreApi.EnterCompositionEngineLock(); 106UnsafeNativeMethods.MilCoreApi.ExitCompositionEngineLock();