279 references to UnsafeNativeMethods
PresentationCore (279)
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)
15
using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
16
using IWICCC = MS.Win32.PresentationCore.
UnsafeNativeMethods
.IWICColorContext;
116
if (HRESULT.Failed(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(
362
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i]));
548
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize));
566
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize));
599
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 (4)
610
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryFlatten(
695
hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryWiden(&penData,
710
hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryWiden(&penData,
835
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)
522
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.CopyPalette(
572
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetThumbnail(
588
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
632
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetMetadataQueryReader(
672
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetDecoderInfo(
726
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetPreview(
742
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
940
return
UnsafeNativeMethods
.WICBitmapDecoder.GetColorContexts(_decoderHandle, numContexts, colorContextPtrs, out numContexts);
1138
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateDecoderFromFileHandle(
1154
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateDecoderFromStream(
1175
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
1231
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetDecoderInfo(
1237
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetContainerFormat(decoderInfo, out clsId));
1243
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
1255
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
1427
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetFrameCount(_decoderHandle, out numFrames));
1538
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
System\Windows\Media\Imaging\BitmapEncoder.cs (20)
246
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.GetEncoderInfo(
350
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.Initialize(
367
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.SetThumbnail(
382
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.SetPalette(
408
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
426
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.CreateNewFrame(
446
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.Commit(encoderHandle));
453
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
522
int hr =
UnsafeNativeMethods
.WICBitmapEncoder.GetMetadataQueryWriter(
559
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateEncoder(
582
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetSize(
604
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetResolution(
624
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetThumbnail(
641
int hr =
UnsafeNativeMethods
.WICBitmapFrameEncode.SetColorContexts(
670
int hr =
UnsafeNativeMethods
.WICBitmapFrameEncode.SetColorContexts(
696
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICSetEncoderFormat(
717
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.GetMetadataQueryWriter(
730
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
748
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.WriteSource(
757
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Commit(
System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
217
return
UnsafeNativeMethods
.WICBitmapFrameDecode.GetColorContexts(_frameSource, numContexts, colorContextPtrs, out numContexts);
571
int hr =
UnsafeNativeMethods
.WICBitmapFrameDecode.GetThumbnail(
590
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
632
int hr =
UnsafeNativeMethods
.WICBitmapFrameDecode.GetMetadataQueryReader(
696
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetFrame(
System\Windows\Media\Imaging\BitmapMetadata.cs (31)
155
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateMetadataWriterFromReader(
172
UnsafeNativeMethods
.MILUnknown.Release(pIMetadataWriter);
216
return
UnsafeNativeMethods
.MILUnknown.QueryInterface(
259
hr =
UnsafeNativeMethods
.WICMetadataBlockReader.GetCount(
275
hr =
UnsafeNativeMethods
.WICMetadataBlockReader.GetReaderByIndex(
286
hr =
UnsafeNativeMethods
.WICComponentFactory.CreateMetadataWriterFromReader(
310
UnsafeNativeMethods
.MILUnknown.Release(pIMetadataWriter);
340
return
UnsafeNativeMethods
.MILUnknown.QueryInterface(
366
UnsafeNativeMethods
.MILUnknown.AddRef(metadataWriter);
399
UnsafeNativeMethods
.MILUnknown.AddRef(metadataWriter);
520
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(
587
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapShortNameToGuid(
646
hr =
UnsafeNativeMethods
.WICImagingFactory.CreateQueryWriter(
688
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateQueryWriterFromBlockWriter(
707
UnsafeNativeMethods
.MILUnknown.Release(blockWriter);
712
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
737
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateQueryWriterFromBlockWriter(
756
UnsafeNativeMethods
.MILUnknown.Release(blockWriter);
761
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
784
hr =
UnsafeNativeMethods
.WICImagingFactory.CreateQueryWriterFromReader(
813
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
905
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapGuidToShortName(
919
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapGuidToShortName(
947
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetLocation(
961
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetLocation(
1045
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
1057
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
1092
hr =
UnsafeNativeMethods
.WICMetadataQueryReader.GetMetadataByName(
1143
hr =
UnsafeNativeMethods
.WICMetadataQueryWriter.RemoveMetadataByName(
1188
hr =
UnsafeNativeMethods
.WICMetadataQueryReader.ContainsMetadataByName(
1467
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetContainerFormat(
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
62
int hr =
UnsafeNativeMethods
.EnumString.Next(
104
HRESULT.Check(
UnsafeNativeMethods
.EnumString.Reset(_enumeratorHandle));
165
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(
902
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.CreateCWICWrapperBitmap(
906
UnsafeNativeMethods
.MILUnknown.AddRef(pCWICWrapperBitmap);
1191
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICConvertBitmapSource(
1197
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
1206
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
1789
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)
311
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
365
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromMemory(
377
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.SetResolution(
384
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)
411
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
448
UnsafeNativeMethods
.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr)));
478
UnsafeNativeMethods
.MILUnknown.Release(punkVal);
697
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryWriter, out queryHandle);
711
hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryReader, out queryHandle);
731
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(
1230
UnsafeNativeMethods
.MILUnknown.AddRef(_pDoubleBufferedBitmap);
System\Windows\Media\MediaPlayerState.cs (3)
13
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
787
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateMediaPlayer(
1015
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
;
623
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryCombine(
771
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryBounds(
System\Windows\Media\PixelFormat.cs (11)
10
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
344
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelCount(
357
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelMask(
366
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelMask(
380
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pixelFormatInfo);
399
int hr =
UnsafeNativeMethods
.WICImagingFactory.CreateComponentInfo(
411
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
420
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref componentInfo);
441
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetBitsPerPixel(
450
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pixelFormatInfo);
508
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
;
64
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)
9
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
590
if (HRESULT.Failed(
UnsafeNativeMethods
.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream)))
595
if (HRESULT.Failed(
UnsafeNativeMethods
.WICStream.InitializeFromIStream(pIStream, comStream)))
597
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIStream);
612
if (HRESULT.Failed(
UnsafeNativeMethods
.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream)))
617
if (HRESULT.Failed(
UnsafeNativeMethods
.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize)))
619
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIStream);
660
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)
520
UnsafeNativeMethods
.MILUnknown.Release(ptr);