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