283 references to UnsafeNativeMethods
PresentationCore (283)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (3)
30
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
80
UnsafeNativeMethods
.MilCoreApi.EnterCompositionEngineLock();
90
UnsafeNativeMethods
.MilCoreApi.ExitCompositionEngineLock();
System\Windows\InterOp\D3DImage.cs (9)
89
UnsafeNativeMethods
.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap);
168
HRESULT.Check(
UnsafeNativeMethods
.InteropDeviceBitmap.Create(
192
UnsafeNativeMethods
.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap);
318
HRESULT.Check(
UnsafeNativeMethods
.InteropDeviceBitmap.AddDirtyRect(
536
if (HRESULT.Succeeded(
UnsafeNativeMethods
.InteropDeviceBitmap.GetAsSoftwareBitmap(
799
UnsafeNativeMethods
.MILUnknown.AddRef(_pInteropDeviceBitmap);
816
UnsafeNativeMethods
.MILUnknown.AddRef(_softwareCopy.WicSourceHandle);
897
UnsafeNativeMethods
.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap);
932
private
UnsafeNativeMethods
.InteropDeviceBitmap.FrontBufferAvailableCallback _availableCallback;
System\Windows\Media\ChannelManager.cs (1)
35
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
.MilCoreApi;
System\Windows\Media\ColorContext.cs (7)
31
using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
32
using IWICCC = MS.Win32.PresentationCore.
UnsafeNativeMethods
.IWICColorContext;
132
if (HRESULT.Failed(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(
378
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i]));
566
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize));
584
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize));
617
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out _colorContextHandle));
System\Windows\Media\ColorContextHelper.cs (5)
23
using UnsafeNativeMethodsMilCoreApi=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
50
return
UnsafeNativeMethodsMilCoreApi
.Mscms.CloseColorProfile(handle);
70
_profileHandle =
UnsafeNativeMethodsMilCoreApi
.Mscms.OpenColorProfile(
90
return
UnsafeNativeMethodsMilCoreApi
.Mscms.GetColorProfileHeader(_profileHandle, out header);
105
if (!
UnsafeNativeMethodsMilCoreApi
.Mscms.GetColorProfileFromHandle(_profileHandle, buffer, ref bufferSize) && buffer != null)
System\Windows\Media\ColorTransform.cs (1)
23
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
System\Windows\Media\ColorTransformHelper.cs (4)
23
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
50
return
UnsafeNativeMethods
.Mscms.DeleteColorTransform(handle);
98
_transformHandle =
UnsafeNativeMethods
.Mscms.CreateMultiProfileTransform(
128
HRESULT.Check(
UnsafeNativeMethods
.Mscms.TranslateColors(
System\Windows\Media\FactoryMaker.cs (6)
16
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
40
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateFactory(out s_pFactory, MS.Internal.Composition.Version.MilSdkVersion));
79
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref s_pFactory);
83
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref s_pImagingFactory);
121
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.CreateImagingFactory(
UnsafeNativeMethods
.WICCodec.WINCODEC_SDK_VERSION, out s_pImagingFactory));
System\Windows\Media\Geometry.cs (3)
628
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryFlatten(
724
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryWiden(
856
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryOutline(
System\Windows\Media\GlyphTypeface.cs (3)
32
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
1273
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MilGlyphRun_GetGlyphOutline(
1293
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MilGlyphRun_ReleasePathGeometryData(
System\Windows\Media\Imaging\BitmapCodecInfo.cs (20)
70
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetContainerFormat(
93
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetAuthor(
107
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetAuthor(
136
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetVersion(
150
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetVersion(
179
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetSpecVersion(
193
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetSpecVersion(
222
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetFriendlyName(
236
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetFriendlyName(
265
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceManufacturer(
279
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceManufacturer(
308
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceModels(
322
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceModels(
351
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
365
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
394
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetFileExtensions(
408
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetFileExtensions(
435
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.DoesSupportAnimation(
456
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.DoesSupportLossless(
477
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.DoesSupportMultiframe(
System\Windows\Media\Imaging\BitmapDecoder.cs (17)
545
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.CopyPalette(
595
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetThumbnail(
611
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
655
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetMetadataQueryReader(
695
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetDecoderInfo(
749
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetPreview(
765
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
963
return
UnsafeNativeMethods
.WICBitmapDecoder.GetColorContexts(_decoderHandle, numContexts, colorContextPtrs, out numContexts);
1163
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateDecoderFromFileHandle(
1179
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateDecoderFromStream(
1203
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
1259
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetDecoderInfo(
1265
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetContainerFormat(decoderInfo, out clsId));
1271
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
1283
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
1455
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetFrameCount(_decoderHandle, out numFrames));
1566
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
System\Windows\Media\Imaging\BitmapEncoder.cs (20)
264
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.GetEncoderInfo(
368
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.Initialize(
385
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.SetThumbnail(
400
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.SetPalette(
426
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
444
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.CreateNewFrame(
464
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.Commit(encoderHandle));
471
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
540
int hr =
UnsafeNativeMethods
.WICBitmapEncoder.GetMetadataQueryWriter(
577
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateEncoder(
600
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetSize(
622
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetResolution(
642
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetThumbnail(
659
int hr =
UnsafeNativeMethods
.WICBitmapFrameEncode.SetColorContexts(
688
int hr =
UnsafeNativeMethods
.WICBitmapFrameEncode.SetColorContexts(
714
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICSetEncoderFormat(
735
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.GetMetadataQueryWriter(
748
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
766
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.WriteSource(
775
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Commit(
System\Windows\Media\Imaging\BitmapFrame.cs (1)
27
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
237
return
UnsafeNativeMethods
.WICBitmapFrameDecode.GetColorContexts(_frameSource, numContexts, colorContextPtrs, out numContexts);
594
int hr =
UnsafeNativeMethods
.WICBitmapFrameDecode.GetThumbnail(
613
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
655
int hr =
UnsafeNativeMethods
.WICBitmapFrameDecode.GetMetadataQueryReader(
719
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetFrame(
System\Windows\Media\Imaging\BitmapMetadata.cs (31)
172
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateMetadataWriterFromReader(
189
UnsafeNativeMethods
.MILUnknown.Release(pIMetadataWriter);
233
return
UnsafeNativeMethods
.MILUnknown.QueryInterface(
276
hr =
UnsafeNativeMethods
.WICMetadataBlockReader.GetCount(
292
hr =
UnsafeNativeMethods
.WICMetadataBlockReader.GetReaderByIndex(
303
hr =
UnsafeNativeMethods
.WICComponentFactory.CreateMetadataWriterFromReader(
330
UnsafeNativeMethods
.MILUnknown.Release(pIMetadataWriter);
360
return
UnsafeNativeMethods
.MILUnknown.QueryInterface(
386
UnsafeNativeMethods
.MILUnknown.AddRef(metadataWriter);
419
UnsafeNativeMethods
.MILUnknown.AddRef(metadataWriter);
540
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(
607
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapShortNameToGuid(
666
hr =
UnsafeNativeMethods
.WICImagingFactory.CreateQueryWriter(
708
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateQueryWriterFromBlockWriter(
727
UnsafeNativeMethods
.MILUnknown.Release(blockWriter);
732
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
757
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateQueryWriterFromBlockWriter(
776
UnsafeNativeMethods
.MILUnknown.Release(blockWriter);
781
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
804
hr =
UnsafeNativeMethods
.WICImagingFactory.CreateQueryWriterFromReader(
833
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
925
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapGuidToShortName(
939
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapGuidToShortName(
967
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetLocation(
981
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetLocation(
1067
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
1079
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
1114
hr =
UnsafeNativeMethods
.WICMetadataQueryReader.GetMetadataByName(
1168
hr =
UnsafeNativeMethods
.WICMetadataQueryWriter.RemoveMetadataByName(
1213
hr =
UnsafeNativeMethods
.WICMetadataQueryReader.ContainsMetadataByName(
1491
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetContainerFormat(
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
74
int hr =
UnsafeNativeMethods
.EnumString.Next(
116
HRESULT.Check(
UnsafeNativeMethods
.EnumString.Reset(_enumeratorHandle));
179
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetEnumerator(
System\Windows\Media\Imaging\BitmapPalette.cs (9)
92
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.InitializeFromBitmap(
137
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.InitializePredefined(
178
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
191
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.GetType(unmanagedPalette, out paletteType));
192
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.HasAlpha(unmanagedPalette, out hasAlpha));
267
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreatePalette(
300
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.InitializeCustom(
316
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.GetColorCount(_palette,
332
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.GetColors(
System\Windows\Media\Imaging\BitmapSource.cs (15)
25
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
599
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
627
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.GetSize(
632
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.GetResolution(
750
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.CopyPixels(
832
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.CopyPixels(
870
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFormatConverter(
874
HRESULT.Check(
UnsafeNativeMethods
.WICFormatConverter.Initialize(
892
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
918
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.CreateCWICWrapperBitmap(
922
UnsafeNativeMethods
.MILUnknown.AddRef(pCWICWrapperBitmap);
1207
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICConvertBitmapSource(
1213
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
1222
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
1805
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.InitializeFromPalette(pIPalette, palette.InternalPalette));
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (4)
18
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
83
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(
105
hr =
UnsafeNativeMethods
.WICBitmapSource.GetSize(
114
hr =
UnsafeNativeMethods
.WICBitmapSource.GetPixelFormat(bitmapSourceSafeHandle, out guidFormat);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
127
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
157
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIRenderTargetBitmap);
System\Windows\Media\Imaging\BmpBitmapEncoder.cs (1)
66
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\CachedBitmap.cs (4)
379
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
433
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromMemory(
445
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.SetResolution(
452
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.SetPalette(
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (2)
111
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.CreateColorTransform(
118
HRESULT.Check(
UnsafeNativeMethods
.WICColorTransform.Initialize(
System\Windows\Media\Imaging\CroppedBitmap.cs (2)
118
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapClipper(
124
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapClipper.Initialize(
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (2)
118
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFormatConverter(
132
HRESULT.Check(
UnsafeNativeMethods
.WICFormatConverter.Initialize(
System\Windows\Media\Imaging\GifBitmapEncoder.cs (1)
67
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\InplaceBitmapMetadataWriter.cs (5)
71
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFastMetadataEncoderFromFrameDecode(
78
HRESULT.Check(
UnsafeNativeMethods
.WICFastMetadataEncoder.GetMetadataQueryWriter(
99
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFastMetadataEncoderFromDecoder(
106
HRESULT.Check(
UnsafeNativeMethods
.WICFastMetadataEncoder.GetMetadataQueryWriter(
124
hr =
UnsafeNativeMethods
.WICFastMetadataEncoder.Commit(_fmeHandle);
System\Windows\Media\Imaging\InteropBitmapSource.cs (11)
59
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromHBITMAP(
92
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromHICON(
134
HRESULT.Check(
UnsafeNativeMethods
.WindowsCodecApi.CreateBitmapFromSection(
245
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
362
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.SetResolution(_unmanagedSource, 96, 96));
370
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapClipper(
376
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapClipper.Initialize(
398
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapScaler(
404
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapScaler.Initialize(
414
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFlipRotator(
420
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\JpegBitmapEncoder.cs (3)
211
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
231
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
244
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PngBitmapEncoder.cs (2)
122
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
135
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PropVariant.cs (6)
438
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
475
UnsafeNativeMethods
.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr)));
505
UnsafeNativeMethods
.MILUnknown.Release(punkVal);
724
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryWriter, out queryHandle);
738
hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryReader, out queryHandle);
758
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref queryHandle);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
139
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateBitmapRenderTargetForBitmap(
258
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateBitmapRenderTarget(
System\Windows\Media\Imaging\TiffBitmapEncoder.cs (2)
159
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
172
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\TransformedBitmap.cs (6)
198
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapScaler(
204
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapScaler.Initialize(
230
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFlipRotator(
236
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFlipRotator.Initialize(
250
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFlipRotator(
256
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\UnknownBitmapDecoder.cs (2)
39
MS.Win32.PresentationCore.
UnsafeNativeMethods
.WICCodec.CoInitialize(IntPtr.Zero);
44
MS.Win32.PresentationCore.
UnsafeNativeMethods
.WICCodec.CoUninitialize();
System\Windows\Media\Imaging\UnknownBitmapEncoder.cs (1)
69
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WmpBitmapEncoder.cs (17)
437
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
457
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
477
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
497
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
517
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
537
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
557
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
577
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
597
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
617
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
637
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
657
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
677
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
697
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
717
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
737
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
750
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WriteableBitmap.cs (4)
274
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.Lock(
288
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapLock.GetDataPointer(
296
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapLock.GetStride(
1258
UnsafeNativeMethods
.MILUnknown.AddRef(_pDoubleBufferedBitmap);
System\Windows\Media\mediaclock.cs (1)
25
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
System\Windows\Media\MediaPlayer.cs (1)
27
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
System\Windows\Media\MediaPlayerState.cs (3)
29
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
810
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateMediaPlayer(
1042
UnsafeNativeMethods
.MILUnknown.AddRef(_nativeMedia);
System\Windows\Media\MediaSystem.cs (1)
27
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
.MilCoreApi;
System\Windows\Media\PathGeometry.cs (3)
33
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
646
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryCombine(
800
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryBounds(
System\Windows\Media\PixelFormat.cs (11)
24
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
523
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelCount(
536
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelMask(
545
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelMask(
559
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pixelFormatInfo);
578
int hr =
UnsafeNativeMethods
.WICImagingFactory.CreateComponentInfo(
590
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
599
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref componentInfo);
620
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetBitsPerPixel(
629
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pixelFormatInfo);
689
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.GetPixelFormat(bitmapSource, out guidPixelFormat));
System\Windows\Media\RenderOptions.cs (2)
240
return
UnsafeNativeMethods
.MilCoreApi.RenderOptions_IsSoftwareRenderingForcedForProcess() ?
251
UnsafeNativeMethods
.MilCoreApi.RenderOptions_ForceSoftwareRenderingModeForProcess(
System\Windows\Media\safemediahandle.cs (2)
21
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
43
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeMILHandle.cs (2)
15
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
72
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeReversePInvokeHandle.cs (4)
24
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
47
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MilCreateReversePInvokeWrapper(delegatePtr, out reversePInvokeWrapper));
56
UnsafeNativeMethods
.MilCoreApi.MilReleasePInvokePtrBlocking(handle);
58
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\StreamAsIStream.cs (8)
21
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
655
if (HRESULT.Failed(
UnsafeNativeMethods
.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream)))
660
if (HRESULT.Failed(
UnsafeNativeMethods
.WICStream.InitializeFromIStream(pIStream, comStream)))
662
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIStream);
677
if (HRESULT.Failed(
UnsafeNativeMethods
.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream)))
682
if (HRESULT.Failed(
UnsafeNativeMethods
.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize)))
684
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIStream);
724
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MILCreateStreamFromStreamDescriptor(ref sd, out pStream));
System\Windows\Media\StreamGeometry.cs (1)
33
using UnsafeNativeMethods=MS.Win32.PresentationCore.
UnsafeNativeMethods
;
System\Windows\Media\TileBrush.cs (1)
134
MS.Win32.PresentationCore.
UnsafeNativeMethods
.MilCoreApi.MilUtility_GetTileBrushMapping(
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
534
UnsafeNativeMethods
.MILUnknown.Release(ptr);