278 references to UnsafeNativeMethods
PresentationCore (278)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (3)
16
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
63
UnsafeNativeMethods
.MilCoreApi.EnterCompositionEngineLock();
73
UnsafeNativeMethods
.MilCoreApi.ExitCompositionEngineLock();
System\Windows\InterOp\D3DImage.cs (9)
77
UnsafeNativeMethods
.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap);
156
HRESULT.Check(
UnsafeNativeMethods
.InteropDeviceBitmap.Create(
180
UnsafeNativeMethods
.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap);
306
HRESULT.Check(
UnsafeNativeMethods
.InteropDeviceBitmap.AddDirtyRect(
524
if (HRESULT.Succeeded(
UnsafeNativeMethods
.InteropDeviceBitmap.GetAsSoftwareBitmap(
781
UnsafeNativeMethods
.MILUnknown.AddRef(_pInteropDeviceBitmap);
798
UnsafeNativeMethods
.MILUnknown.AddRef(_softwareCopy.WicSourceHandle);
879
UnsafeNativeMethods
.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap);
914
private
UnsafeNativeMethods
.InteropDeviceBitmap.FrontBufferAvailableCallback _availableCallback;
System\Windows\Media\ChannelManager.cs (1)
16
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
.MilCoreApi;
System\Windows\Media\ColorContext.cs (7)
17
using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
18
using IWICCC = MS.Win32.PresentationCore.
UnsafeNativeMethods
.IWICColorContext;
118
if (HRESULT.Failed(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(
364
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i]));
552
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize));
570
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize));
603
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out _colorContextHandle));
System\Windows\Media\ColorContextHelper.cs (5)
10
using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
37
return
UnsafeNativeMethodsMilCoreApi
.Mscms.CloseColorProfile(handle);
57
_profileHandle =
UnsafeNativeMethodsMilCoreApi
.Mscms.OpenColorProfile(
77
return
UnsafeNativeMethodsMilCoreApi
.Mscms.GetColorProfileHeader(_profileHandle, out header);
92
if (!
UnsafeNativeMethodsMilCoreApi
.Mscms.GetColorProfileFromHandle(_profileHandle, buffer, ref bufferSize) && buffer != null)
System\Windows\Media\ColorTransformHelper.cs (4)
9
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
36
return
UnsafeNativeMethods
.Mscms.DeleteColorTransform(handle);
84
_transformHandle =
UnsafeNativeMethods
.Mscms.CreateMultiProfileTransform(
114
HRESULT.Check(
UnsafeNativeMethods
.Mscms.TranslateColors(
System\Windows\Media\FactoryMaker.cs (6)
9
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
33
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateFactory(out s_pFactory, MS.Internal.Composition.Version.MilSdkVersion));
72
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref s_pFactory);
76
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref s_pImagingFactory);
114
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.CreateImagingFactory(
UnsafeNativeMethods
.WICCodec.WINCODEC_SDK_VERSION, out s_pImagingFactory));
System\Windows\Media\Geometry.cs (3)
616
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryFlatten(
712
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryWiden(
844
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryOutline(
System\Windows\Media\GlyphTypeface.cs (3)
25
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
1264
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MilGlyphRun_GetGlyphOutline(
1284
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MilGlyphRun_ReleasePathGeometryData(
System\Windows\Media\Imaging\BitmapCodecInfo.cs (20)
56
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetContainerFormat(
79
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetAuthor(
93
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetAuthor(
122
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetVersion(
136
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetVersion(
165
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetSpecVersion(
179
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetSpecVersion(
208
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetFriendlyName(
222
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetFriendlyName(
251
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceManufacturer(
265
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceManufacturer(
294
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceModels(
308
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceModels(
337
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
351
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
380
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetFileExtensions(
394
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetFileExtensions(
421
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.DoesSupportAnimation(
442
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.DoesSupportLossless(
463
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.DoesSupportMultiframe(
System\Windows\Media\Imaging\BitmapDecoder.cs (17)
527
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.CopyPalette(
577
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetThumbnail(
593
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
637
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetMetadataQueryReader(
677
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetDecoderInfo(
731
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetPreview(
747
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
945
return
UnsafeNativeMethods
.WICBitmapDecoder.GetColorContexts(_decoderHandle, numContexts, colorContextPtrs, out numContexts);
1145
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateDecoderFromFileHandle(
1161
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateDecoderFromStream(
1185
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
1241
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetDecoderInfo(
1247
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetContainerFormat(decoderInfo, out clsId));
1253
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
1265
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
1437
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetFrameCount(_decoderHandle, out numFrames));
1548
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
System\Windows\Media\Imaging\BitmapEncoder.cs (20)
248
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.GetEncoderInfo(
352
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.Initialize(
369
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.SetThumbnail(
384
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.SetPalette(
410
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
428
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.CreateNewFrame(
448
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.Commit(encoderHandle));
455
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
524
int hr =
UnsafeNativeMethods
.WICBitmapEncoder.GetMetadataQueryWriter(
561
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateEncoder(
584
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetSize(
606
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetResolution(
626
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetThumbnail(
643
int hr =
UnsafeNativeMethods
.WICBitmapFrameEncode.SetColorContexts(
672
int hr =
UnsafeNativeMethods
.WICBitmapFrameEncode.SetColorContexts(
698
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICSetEncoderFormat(
719
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.GetMetadataQueryWriter(
732
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
750
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.WriteSource(
759
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Commit(
System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
222
return
UnsafeNativeMethods
.WICBitmapFrameDecode.GetColorContexts(_frameSource, numContexts, colorContextPtrs, out numContexts);
579
int hr =
UnsafeNativeMethods
.WICBitmapFrameDecode.GetThumbnail(
598
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
640
int hr =
UnsafeNativeMethods
.WICBitmapFrameDecode.GetMetadataQueryReader(
704
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetFrame(
System\Windows\Media\Imaging\BitmapMetadata.cs (31)
161
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateMetadataWriterFromReader(
178
UnsafeNativeMethods
.MILUnknown.Release(pIMetadataWriter);
222
return
UnsafeNativeMethods
.MILUnknown.QueryInterface(
265
hr =
UnsafeNativeMethods
.WICMetadataBlockReader.GetCount(
281
hr =
UnsafeNativeMethods
.WICMetadataBlockReader.GetReaderByIndex(
292
hr =
UnsafeNativeMethods
.WICComponentFactory.CreateMetadataWriterFromReader(
319
UnsafeNativeMethods
.MILUnknown.Release(pIMetadataWriter);
349
return
UnsafeNativeMethods
.MILUnknown.QueryInterface(
375
UnsafeNativeMethods
.MILUnknown.AddRef(metadataWriter);
408
UnsafeNativeMethods
.MILUnknown.AddRef(metadataWriter);
529
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(
596
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapShortNameToGuid(
655
hr =
UnsafeNativeMethods
.WICImagingFactory.CreateQueryWriter(
697
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateQueryWriterFromBlockWriter(
716
UnsafeNativeMethods
.MILUnknown.Release(blockWriter);
721
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
746
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateQueryWriterFromBlockWriter(
765
UnsafeNativeMethods
.MILUnknown.Release(blockWriter);
770
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
793
hr =
UnsafeNativeMethods
.WICImagingFactory.CreateQueryWriterFromReader(
822
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
914
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapGuidToShortName(
928
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapGuidToShortName(
956
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetLocation(
970
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetLocation(
1056
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
1068
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
1103
hr =
UnsafeNativeMethods
.WICMetadataQueryReader.GetMetadataByName(
1157
hr =
UnsafeNativeMethods
.WICMetadataQueryWriter.RemoveMetadataByName(
1202
hr =
UnsafeNativeMethods
.WICMetadataQueryReader.ContainsMetadataByName(
1480
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetContainerFormat(
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
65
int hr =
UnsafeNativeMethods
.EnumString.Next(
107
HRESULT.Check(
UnsafeNativeMethods
.EnumString.Reset(_enumeratorHandle));
170
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetEnumerator(
System\Windows\Media\Imaging\BitmapPalette.cs (9)
75
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.InitializeFromBitmap(
120
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.InitializePredefined(
161
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
174
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.GetType(unmanagedPalette, out paletteType));
175
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.HasAlpha(unmanagedPalette, out hasAlpha));
250
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreatePalette(
283
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.InitializeCustom(
299
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.GetColorCount(_palette,
315
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.GetColors(
System\Windows\Media\Imaging\BitmapSource.cs (15)
11
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
584
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
612
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.GetSize(
617
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.GetResolution(
735
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.CopyPixels(
817
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.CopyPixels(
855
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFormatConverter(
859
HRESULT.Check(
UnsafeNativeMethods
.WICFormatConverter.Initialize(
877
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
903
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.CreateCWICWrapperBitmap(
907
UnsafeNativeMethods
.MILUnknown.AddRef(pCWICWrapperBitmap);
1192
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICConvertBitmapSource(
1198
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
1207
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
1790
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.InitializeFromPalette(pIPalette, palette.InternalPalette));
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (4)
14
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
79
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(
101
hr =
UnsafeNativeMethods
.WICBitmapSource.GetSize(
110
hr =
UnsafeNativeMethods
.WICBitmapSource.GetPixelFormat(bitmapSourceSafeHandle, out guidFormat);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
114
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
144
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIRenderTargetBitmap);
System\Windows\Media\Imaging\BmpBitmapEncoder.cs (1)
56
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\CachedBitmap.cs (4)
358
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
412
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromMemory(
424
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.SetResolution(
431
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.SetPalette(
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (2)
92
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.CreateColorTransform(
99
HRESULT.Check(
UnsafeNativeMethods
.WICColorTransform.Initialize(
System\Windows\Media\Imaging\CroppedBitmap.cs (2)
99
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapClipper(
105
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapClipper.Initialize(
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (2)
99
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFormatConverter(
113
HRESULT.Check(
UnsafeNativeMethods
.WICFormatConverter.Initialize(
System\Windows\Media\Imaging\GifBitmapEncoder.cs (1)
56
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\InplaceBitmapMetadataWriter.cs (5)
56
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFastMetadataEncoderFromFrameDecode(
63
HRESULT.Check(
UnsafeNativeMethods
.WICFastMetadataEncoder.GetMetadataQueryWriter(
84
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFastMetadataEncoderFromDecoder(
91
HRESULT.Check(
UnsafeNativeMethods
.WICFastMetadataEncoder.GetMetadataQueryWriter(
109
hr =
UnsafeNativeMethods
.WICFastMetadataEncoder.Commit(_fmeHandle);
System\Windows\Media\Imaging\InteropBitmapSource.cs (11)
45
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromHBITMAP(
78
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromHICON(
120
HRESULT.Check(
UnsafeNativeMethods
.WindowsCodecApi.CreateBitmapFromSection(
231
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
348
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.SetResolution(_unmanagedSource, 96, 96));
356
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapClipper(
362
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapClipper.Initialize(
384
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapScaler(
390
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapScaler.Initialize(
400
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFlipRotator(
406
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\JpegBitmapEncoder.cs (3)
198
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
218
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
231
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PngBitmapEncoder.cs (2)
112
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
125
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PropVariant.cs (6)
423
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
460
UnsafeNativeMethods
.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr)));
490
UnsafeNativeMethods
.MILUnknown.Release(punkVal);
709
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryWriter, out queryHandle);
723
hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryReader, out queryHandle);
743
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref queryHandle);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
120
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateBitmapRenderTargetForBitmap(
239
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateBitmapRenderTarget(
System\Windows\Media\Imaging\TiffBitmapEncoder.cs (2)
148
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
161
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\TransformedBitmap.cs (6)
179
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapScaler(
185
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapScaler.Initialize(
211
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFlipRotator(
217
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFlipRotator.Initialize(
231
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFlipRotator(
237
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\UnknownBitmapDecoder.cs (2)
28
MS.Win32.PresentationCore.
UnsafeNativeMethods
.WICCodec.CoInitialize(IntPtr.Zero);
33
MS.Win32.PresentationCore.
UnsafeNativeMethods
.WICCodec.CoUninitialize();
System\Windows\Media\Imaging\UnknownBitmapEncoder.cs (1)
59
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WmpBitmapEncoder.cs (17)
424
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
444
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
464
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
484
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
504
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
524
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
544
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
564
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
584
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
604
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
624
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
644
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
664
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
684
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
704
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
724
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
737
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WriteableBitmap.cs (4)
257
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.Lock(
271
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapLock.GetDataPointer(
279
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapLock.GetStride(
1241
UnsafeNativeMethods
.MILUnknown.AddRef(_pDoubleBufferedBitmap);
System\Windows\Media\MediaPlayerState.cs (3)
13
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
789
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateMediaPlayer(
1021
UnsafeNativeMethods
.MILUnknown.AddRef(_nativeMedia);
System\Windows\Media\MediaSystem.cs (1)
15
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
.MilCoreApi;
System\Windows\Media\PathGeometry.cs (3)
9
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
622
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryCombine(
776
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryBounds(
System\Windows\Media\PixelFormat.cs (11)
10
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
509
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelCount(
522
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelMask(
531
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelMask(
545
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pixelFormatInfo);
564
int hr =
UnsafeNativeMethods
.WICImagingFactory.CreateComponentInfo(
576
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
585
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref componentInfo);
606
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetBitsPerPixel(
615
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pixelFormatInfo);
675
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.GetPixelFormat(bitmapSource, out guidPixelFormat));
System\Windows\Media\RenderOptions.cs (2)
236
return
UnsafeNativeMethods
.MilCoreApi.RenderOptions_IsSoftwareRenderingForcedForProcess() ?
247
UnsafeNativeMethods
.MilCoreApi.RenderOptions_ForceSoftwareRenderingModeForProcess(
System\Windows\Media\safemediahandle.cs (2)
10
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
32
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeMILHandle.cs (2)
13
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
70
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeReversePInvokeHandle.cs (4)
14
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
37
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MilCreateReversePInvokeWrapper(delegatePtr, out reversePInvokeWrapper));
46
UnsafeNativeMethods
.MilCoreApi.MilReleasePInvokePtrBlocking(handle);
48
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\StreamAsIStream.cs (8)
11
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
644
if (HRESULT.Failed(
UnsafeNativeMethods
.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream)))
649
if (HRESULT.Failed(
UnsafeNativeMethods
.WICStream.InitializeFromIStream(pIStream, comStream)))
651
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIStream);
666
if (HRESULT.Failed(
UnsafeNativeMethods
.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream)))
671
if (HRESULT.Failed(
UnsafeNativeMethods
.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize)))
673
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIStream);
713
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MILCreateStreamFromStreamDescriptor(ref sd, out pStream));
System\Windows\Media\TileBrush.cs (1)
125
MS.Win32.PresentationCore.
UnsafeNativeMethods
.MilCoreApi.MilUtility_GetTileBrushMapping(
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
522
UnsafeNativeMethods
.MILUnknown.Release(ptr);