279 references to UnsafeNativeMethods
PresentationCore (279)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (3)
15
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
62
UnsafeNativeMethods
.MilCoreApi.EnterCompositionEngineLock();
72
UnsafeNativeMethods
.MilCoreApi.ExitCompositionEngineLock();
System\Windows\InterOp\D3DImage.cs (9)
76
UnsafeNativeMethods
.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap);
155
HRESULT.Check(
UnsafeNativeMethods
.InteropDeviceBitmap.Create(
179
UnsafeNativeMethods
.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap);
305
HRESULT.Check(
UnsafeNativeMethods
.InteropDeviceBitmap.AddDirtyRect(
523
if (HRESULT.Succeeded(
UnsafeNativeMethods
.InteropDeviceBitmap.GetAsSoftwareBitmap(
779
UnsafeNativeMethods
.MILUnknown.AddRef(_pInteropDeviceBitmap);
796
UnsafeNativeMethods
.MILUnknown.AddRef(_softwareCopy.WicSourceHandle);
876
UnsafeNativeMethods
.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap);
911
private
UnsafeNativeMethods
.InteropDeviceBitmap.FrontBufferAvailableCallback _availableCallback;
System\Windows\Media\ChannelManager.cs (1)
15
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
.MilCoreApi;
System\Windows\Media\ColorContext.cs (7)
14
using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
15
using IWICCC = MS.Win32.PresentationCore.
UnsafeNativeMethods
.IWICColorContext;
115
if (HRESULT.Failed(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(
361
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out colorContextHandles[i]));
547
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize));
565
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize));
598
HRESULT.Check(
UnsafeNativeMethodsMilCoreApi
.WICCodec.CreateColorContext(factoryMaker.ImagingFactoryPtr, out _colorContextHandle));
System\Windows\Media\ColorContextHelper.cs (5)
9
using UnsafeNativeMethodsMilCoreApi = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
36
return
UnsafeNativeMethodsMilCoreApi
.Mscms.CloseColorProfile(handle);
56
_profileHandle =
UnsafeNativeMethodsMilCoreApi
.Mscms.OpenColorProfile(
76
return
UnsafeNativeMethodsMilCoreApi
.Mscms.GetColorProfileHeader(_profileHandle, out header);
91
if (!
UnsafeNativeMethodsMilCoreApi
.Mscms.GetColorProfileFromHandle(_profileHandle, buffer, ref bufferSize) && buffer != null)
System\Windows\Media\ColorTransformHelper.cs (4)
8
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
35
return
UnsafeNativeMethods
.Mscms.DeleteColorTransform(handle);
83
_transformHandle =
UnsafeNativeMethods
.Mscms.CreateMultiProfileTransform(
113
HRESULT.Check(
UnsafeNativeMethods
.Mscms.TranslateColors(
System\Windows\Media\FactoryMaker.cs (6)
8
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
32
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateFactory(out s_pFactory, MS.Internal.Composition.Version.MilSdkVersion));
71
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref s_pFactory);
75
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref s_pImagingFactory);
113
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.CreateImagingFactory(
UnsafeNativeMethods
.WICCodec.WINCODEC_SDK_VERSION, out s_pImagingFactory));
System\Windows\Media\Geometry.cs (4)
609
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryFlatten(
694
hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryWiden(&penData,
709
hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryWiden(&penData,
834
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryOutline(
System\Windows\Media\GlyphTypeface.cs (3)
24
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
1263
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MilGlyphRun_GetGlyphOutline(
1283
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MilGlyphRun_ReleasePathGeometryData(
System\Windows\Media\Imaging\BitmapCodecInfo.cs (20)
55
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetContainerFormat(
78
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetAuthor(
92
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetAuthor(
121
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetVersion(
135
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetVersion(
164
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetSpecVersion(
178
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetSpecVersion(
207
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetFriendlyName(
221
HRESULT.Check(
UnsafeNativeMethods
.WICComponentInfo.GetFriendlyName(
250
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceManufacturer(
264
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceManufacturer(
293
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceModels(
307
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetDeviceModels(
336
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
350
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
379
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetFileExtensions(
393
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetFileExtensions(
420
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.DoesSupportAnimation(
441
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.DoesSupportLossless(
462
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.DoesSupportMultiframe(
System\Windows\Media\Imaging\BitmapDecoder.cs (17)
521
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.CopyPalette(
571
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetThumbnail(
587
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
631
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetMetadataQueryReader(
671
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetDecoderInfo(
725
int hr =
UnsafeNativeMethods
.WICBitmapDecoder.GetPreview(
741
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
939
return
UnsafeNativeMethods
.WICBitmapDecoder.GetColorContexts(_decoderHandle, numContexts, colorContextPtrs, out numContexts);
1137
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateDecoderFromFileHandle(
1153
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateDecoderFromStream(
1174
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
1230
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetDecoderInfo(
1236
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetContainerFormat(decoderInfo, out clsId));
1242
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
1254
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapCodecInfo.GetMimeTypes(
1426
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetFrameCount(_decoderHandle, out numFrames));
1537
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
System\Windows\Media\Imaging\BitmapEncoder.cs (20)
245
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.GetEncoderInfo(
349
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.Initialize(
366
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.SetThumbnail(
381
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.SetPalette(
407
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
425
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.CreateNewFrame(
445
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapEncoder.Commit(encoderHandle));
452
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref comStream);
521
int hr =
UnsafeNativeMethods
.WICBitmapEncoder.GetMetadataQueryWriter(
558
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateEncoder(
581
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetSize(
603
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetResolution(
623
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.SetThumbnail(
640
int hr =
UnsafeNativeMethods
.WICBitmapFrameEncode.SetColorContexts(
669
int hr =
UnsafeNativeMethods
.WICBitmapFrameEncode.SetColorContexts(
695
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICSetEncoderFormat(
716
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.GetMetadataQueryWriter(
729
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
747
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.WriteSource(
756
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Commit(
System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
216
return
UnsafeNativeMethods
.WICBitmapFrameDecode.GetColorContexts(_frameSource, numContexts, colorContextPtrs, out numContexts);
570
int hr =
UnsafeNativeMethods
.WICBitmapFrameDecode.GetThumbnail(
589
int hr =
UnsafeNativeMethods
.WICBitmapSource.CopyPalette(
631
int hr =
UnsafeNativeMethods
.WICBitmapFrameDecode.GetMetadataQueryReader(
695
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapDecoder.GetFrame(
System\Windows\Media\Imaging\BitmapMetadata.cs (31)
154
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateMetadataWriterFromReader(
171
UnsafeNativeMethods
.MILUnknown.Release(pIMetadataWriter);
215
return
UnsafeNativeMethods
.MILUnknown.QueryInterface(
258
hr =
UnsafeNativeMethods
.WICMetadataBlockReader.GetCount(
274
hr =
UnsafeNativeMethods
.WICMetadataBlockReader.GetReaderByIndex(
285
hr =
UnsafeNativeMethods
.WICComponentFactory.CreateMetadataWriterFromReader(
309
UnsafeNativeMethods
.MILUnknown.Release(pIMetadataWriter);
339
return
UnsafeNativeMethods
.MILUnknown.QueryInterface(
365
UnsafeNativeMethods
.MILUnknown.AddRef(metadataWriter);
398
UnsafeNativeMethods
.MILUnknown.AddRef(metadataWriter);
519
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(
586
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapShortNameToGuid(
645
hr =
UnsafeNativeMethods
.WICImagingFactory.CreateQueryWriter(
687
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateQueryWriterFromBlockWriter(
706
UnsafeNativeMethods
.MILUnknown.Release(blockWriter);
711
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
736
HRESULT.Check(
UnsafeNativeMethods
.WICComponentFactory.CreateQueryWriterFromBlockWriter(
755
UnsafeNativeMethods
.MILUnknown.Release(blockWriter);
760
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
783
hr =
UnsafeNativeMethods
.WICImagingFactory.CreateQueryWriterFromReader(
812
UnsafeNativeMethods
.MILUnknown.Release(queryWriter);
904
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapGuidToShortName(
918
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICMapGuidToShortName(
946
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetLocation(
960
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetLocation(
1044
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
1056
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryWriter.SetMetadataByName(
1091
hr =
UnsafeNativeMethods
.WICMetadataQueryReader.GetMetadataByName(
1142
hr =
UnsafeNativeMethods
.WICMetadataQueryWriter.RemoveMetadataByName(
1187
hr =
UnsafeNativeMethods
.WICMetadataQueryReader.ContainsMetadataByName(
1466
HRESULT.Check(
UnsafeNativeMethods
.WICMetadataQueryReader.GetContainerFormat(
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
61
int hr =
UnsafeNativeMethods
.EnumString.Next(
103
HRESULT.Check(
UnsafeNativeMethods
.EnumString.Reset(_enumeratorHandle));
164
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(
705
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.CopyPixels(
787
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.CopyPixels(
825
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFormatConverter(
829
HRESULT.Check(
UnsafeNativeMethods
.WICFormatConverter.Initialize(
847
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
872
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.CreateCWICWrapperBitmap(
876
UnsafeNativeMethods
.MILUnknown.AddRef(pCWICWrapperBitmap);
1161
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.WICConvertBitmapSource(
1167
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
1176
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
1759
HRESULT.Check(
UnsafeNativeMethods
.WICPalette.InitializeFromPalette(pIPalette, palette.InternalPalette));
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (4)
13
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
78
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(
100
hr =
UnsafeNativeMethods
.WICBitmapSource.GetSize(
109
hr =
UnsafeNativeMethods
.WICBitmapSource.GetPixelFormat(bitmapSourceSafeHandle, out guidFormat);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
113
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
143
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIRenderTargetBitmap);
System\Windows\Media\Imaging\BmpBitmapEncoder.cs (1)
55
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)
91
HRESULT.Check(
UnsafeNativeMethods
.WICCodec.CreateColorTransform(
98
HRESULT.Check(
UnsafeNativeMethods
.WICColorTransform.Initialize(
System\Windows\Media\Imaging\CroppedBitmap.cs (2)
98
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapClipper(
104
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapClipper.Initialize(
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (2)
98
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFormatConverter(
112
HRESULT.Check(
UnsafeNativeMethods
.WICFormatConverter.Initialize(
System\Windows\Media\Imaging\GifBitmapEncoder.cs (1)
55
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\InplaceBitmapMetadataWriter.cs (5)
55
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFastMetadataEncoderFromFrameDecode(
62
HRESULT.Check(
UnsafeNativeMethods
.WICFastMetadataEncoder.GetMetadataQueryWriter(
83
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateFastMetadataEncoderFromDecoder(
90
HRESULT.Check(
UnsafeNativeMethods
.WICFastMetadataEncoder.GetMetadataQueryWriter(
108
hr =
UnsafeNativeMethods
.WICFastMetadataEncoder.Commit(_fmeHandle);
System\Windows\Media\Imaging\InteropBitmapSource.cs (11)
40
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromHBITMAP(
73
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromHICON(
115
HRESULT.Check(
UnsafeNativeMethods
.WindowsCodecApi.CreateBitmapFromSection(
226
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFromSource(
343
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.SetResolution(_unmanagedSource, 96, 96));
351
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapClipper(
357
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapClipper.Initialize(
379
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapScaler(
385
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapScaler.Initialize(
395
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFlipRotator(
401
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\JpegBitmapEncoder.cs (3)
197
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
217
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
230
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PngBitmapEncoder.cs (2)
111
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
124
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\PropVariant.cs (6)
410
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
447
UnsafeNativeMethods
.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr)));
477
UnsafeNativeMethods
.MILUnknown.Release(punkVal);
696
int hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryWriter, out queryHandle);
710
hr =
UnsafeNativeMethods
.MILUnknown.QueryInterface(punkVal, ref guidIWICQueryReader, out queryHandle);
730
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref queryHandle);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
119
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateBitmapRenderTargetForBitmap(
238
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateBitmapRenderTarget(
System\Windows\Media\Imaging\TiffBitmapEncoder.cs (2)
147
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
160
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\TransformedBitmap.cs (6)
178
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapScaler(
184
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapScaler.Initialize(
210
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFlipRotator(
216
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFlipRotator.Initialize(
230
HRESULT.Check(
UnsafeNativeMethods
.WICImagingFactory.CreateBitmapFlipRotator(
236
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFlipRotator.Initialize(
System\Windows\Media\Imaging\UnknownBitmapDecoder.cs (2)
27
MS.Win32.PresentationCore.
UnsafeNativeMethods
.WICCodec.CoInitialize(IntPtr.Zero);
32
MS.Win32.PresentationCore.
UnsafeNativeMethods
.WICCodec.CoUninitialize();
System\Windows\Media\Imaging\UnknownBitmapEncoder.cs (1)
58
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WmpBitmapEncoder.cs (17)
423
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
443
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
463
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
483
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
503
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
523
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
543
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
563
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
583
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
603
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
623
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
643
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
663
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
683
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
703
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
723
HRESULT.Check(
UnsafeNativeMethods
.IPropertyBag2.Write(
736
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapFrameEncode.Initialize(
System\Windows\Media\Imaging\WriteableBitmap.cs (4)
256
HRESULT.Check(
UnsafeNativeMethods
.WICBitmap.Lock(
270
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapLock.GetDataPointer(
278
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapLock.GetStride(
1223
UnsafeNativeMethods
.MILUnknown.AddRef(_pDoubleBufferedBitmap);
System\Windows\Media\MediaPlayerState.cs (3)
12
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
786
HRESULT.Check(
UnsafeNativeMethods
.MILFactory2.CreateMediaPlayer(
1014
UnsafeNativeMethods
.MILUnknown.AddRef(_nativeMedia);
System\Windows\Media\MediaSystem.cs (1)
15
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
.MilCoreApi;
System\Windows\Media\PathGeometry.cs (3)
8
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
622
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryCombine(
770
int hr =
UnsafeNativeMethods
.MilCoreApi.MilUtility_PathGeometryBounds(
System\Windows\Media\PixelFormat.cs (11)
9
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
343
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelCount(
356
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelMask(
365
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetChannelMask(
379
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pixelFormatInfo);
398
int hr =
UnsafeNativeMethods
.WICImagingFactory.CreateComponentInfo(
410
HRESULT.Check(
UnsafeNativeMethods
.MILUnknown.QueryInterface(
419
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref componentInfo);
440
HRESULT.Check(
UnsafeNativeMethods
.WICPixelFormatInfo.GetBitsPerPixel(
449
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pixelFormatInfo);
507
HRESULT.Check(
UnsafeNativeMethods
.WICBitmapSource.GetPixelFormat(bitmapSource, out guidPixelFormat));
System\Windows\Media\RenderOptions.cs (2)
235
return
UnsafeNativeMethods
.MilCoreApi.RenderOptions_IsSoftwareRenderingForcedForProcess() ?
246
UnsafeNativeMethods
.MilCoreApi.RenderOptions_ForceSoftwareRenderingModeForProcess(
System\Windows\Media\safemediahandle.cs (2)
9
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
31
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeMILHandle.cs (2)
12
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
63
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\SafeReversePInvokeHandle.cs (4)
13
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
36
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MilCreateReversePInvokeWrapper(delegatePtr, out reversePInvokeWrapper));
45
UnsafeNativeMethods
.MilCoreApi.MilReleasePInvokePtrBlocking(handle);
47
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref handle);
System\Windows\Media\StreamAsIStream.cs (8)
8
using UnsafeNativeMethods = MS.Win32.PresentationCore.
UnsafeNativeMethods
;
589
if (HRESULT.Failed(
UnsafeNativeMethods
.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream)))
594
if (HRESULT.Failed(
UnsafeNativeMethods
.WICStream.InitializeFromIStream(pIStream, comStream)))
596
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIStream);
611
if (HRESULT.Failed(
UnsafeNativeMethods
.WICImagingFactory.CreateStream(myFactory.ImagingFactoryPtr, out pIStream)))
616
if (HRESULT.Failed(
UnsafeNativeMethods
.WICStream.InitializeFromMemory(pIStream, memoryBuffer, (uint) bufferSize)))
618
UnsafeNativeMethods
.MILUnknown.ReleaseInterface(ref pIStream);
659
HRESULT.Check(
UnsafeNativeMethods
.MilCoreApi.MILCreateStreamFromStreamDescriptor(ref sd, out pStream));
System\Windows\Media\TileBrush.cs (1)
124
MS.Win32.PresentationCore.
UnsafeNativeMethods
.MilCoreApi.MilUtility_GetTileBrushMapping(
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
519
UnsafeNativeMethods
.MILUnknown.Release(ptr);