85 references to Interop
System.Windows.Extensions (85)
_generated\0\LibraryImports.g.cs (16)
199
internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::
Interop
.Crypt32.CertContextPropId dwPropId, byte[] pvData, ref int pcbData)
235
static extern unsafe int __PInvoke(nint __pCertContext_native, global::
Interop
.Crypt32.CertContextPropId __dwPropId_native, byte* __pvData_native, int* __pcbData_native);
290
internal static partial bool CryptUIDlgViewCertificateW(in global::
Interop
.CryptUI.CRYPTUI_VIEWCERTIFICATE_STRUCTW ViewInfo, nint pfPropertiesChanged)
293
global::
Interop
.CryptUI.CRYPTUI_VIEWCERTIFICATE_STRUCTW.Marshaller.Native __ViewInfo_native = default;
299
__ViewInfo_native = global::
Interop
.CryptUI.CRYPTUI_VIEWCERTIFICATE_STRUCTW.Marshaller.ConvertToUnmanaged(ViewInfo);
312
global::
Interop
.CryptUI.CRYPTUI_VIEWCERTIFICATE_STRUCTW.Marshaller.Free(__ViewInfo_native);
319
static extern unsafe int __PInvoke(global::
Interop
.CryptUI.CRYPTUI_VIEWCERTIFICATE_STRUCTW.Marshaller.Native* __ViewInfo_native, nint __pfPropertiesChanged_native);
329
internal static partial global::Microsoft.Win32.SafeHandles.SafeCertContextHandle CryptUIDlgSelectCertificateW(ref global::
Interop
.CryptUI.CRYPTUI_SELECTCERTIFICATE_STRUCTW csc)
333
global::
Interop
.CryptUI.CRYPTUI_SELECTCERTIFICATE_STRUCTW.Marshaller.Native __csc_native = default;
341
__csc_native = global::
Interop
.CryptUI.CRYPTUI_SELECTCERTIFICATE_STRUCTW.Marshaller.ConvertToUnmanaged(csc);
353
csc = global::
Interop
.CryptUI.CRYPTUI_SELECTCERTIFICATE_STRUCTW.Marshaller.ConvertToManaged(__csc_native);
364
global::
Interop
.CryptUI.CRYPTUI_SELECTCERTIFICATE_STRUCTW.Marshaller.Free(__csc_native);
371
static extern unsafe nint __PInvoke(global::
Interop
.CryptUI.CRYPTUI_SELECTCERTIFICATE_STRUCTW.Marshaller.Native* __csc_native);
403
internal static unsafe extern partial int mmioAscend(nint hMIO, global::
Interop
.WinMM.MMCKINFO* lpck, int flags);
419
internal static unsafe extern partial int mmioDescend(nint hMIO, global::
Interop
.WinMM.MMCKINFO* lpck, global::
Interop
.WinMM.MMCKINFO* lcpkParent, int flags);
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CertAddCertificateLinkToStore.cs (1)
13
[LibraryImport(
Interop
.Libraries.Crypt32, SetLastError = true)]
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CertCloseStore.cs (1)
11
[LibraryImport(
Interop
.Libraries.Crypt32, SetLastError = true)]
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CertEnumCertificatesInStore_IntPtr.cs (1)
12
[LibraryImport(
Interop
.Libraries.Crypt32, SetLastError = true)]
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CertOpenStore.cs (1)
16
[LibraryImport(
Interop
.Libraries.Crypt32, SetLastError = true)]
src\runtime\src\libraries\Common\src\Interop\Windows\CryptUI\Interop.CryptUIDlgCertificate.cs (2)
236
[LibraryImport(
Interop
.Libraries.CryptUI, SetLastError = true)]
241
[LibraryImport(
Interop
.Libraries.CryptUI, SetLastError = true)]
src\runtime\src\libraries\Common\src\Interop\Windows\WinMm\Interop.mmioClose.cs (1)
11
[LibraryImport(
Interop
.Libraries.WinMM)]
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeCertContextHandle.cs (1)
8
using static
Interop
.Crypt32;
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeCertStoreHandle.cs (1)
13
bool success =
Interop
.Crypt32.CertCloseStore(handle, 0);
System\Media\SoundPlayer.cs (32)
227
Interop
.WinMM.PlaySound(localPath, IntPtr.Zero,
Interop
.WinMM.SND_NODEFAULT | flags);
234
Interop
.WinMM.PlaySound(_streamData, IntPtr.Zero,
Interop
.WinMM.SND_MEMORY |
Interop
.WinMM.SND_NODEFAULT | flags);
334
LoadAndPlay(
Interop
.WinMM.SND_ASYNC);
339
LoadAndPlay(
Interop
.WinMM.SND_SYNC);
344
LoadAndPlay(
Interop
.WinMM.SND_LOOP |
Interop
.WinMM.SND_ASYNC);
428
Interop
.WinMM.PlaySound((byte[]?)null, IntPtr.Zero,
Interop
.WinMM.SND_PURGE);
541
IntPtr hMIO =
Interop
.WinMM.mmioOpen(fileName, IntPtr.Zero,
Interop
.WinMM.MMIO_READ |
Interop
.WinMM.MMIO_ALLOCBUF);
549
Interop
.WinMM.WAVEFORMATEX? waveFormat = null;
550
var ckRIFF = new
Interop
.WinMM.MMCKINFO()
554
var ck = default(
Interop
.WinMM.MMCKINFO);
555
if (
Interop
.WinMM.mmioDescend(hMIO, &ckRIFF, null,
Interop
.WinMM.MMIO_FINDRIFF) != 0)
560
while (
Interop
.WinMM.mmioDescend(hMIO, &ck, &ckRIFF, 0) == 0)
572
if (dw < Marshal.SizeOf<
Interop
.WinMM.WAVEFORMATEX>())
574
dw = Marshal.SizeOf<
Interop
.WinMM.WAVEFORMATEX>();
577
waveFormat = new
Interop
.WinMM.WAVEFORMATEX();
579
if (
Interop
.WinMM.mmioRead(hMIO, data, dw) != dw)
594
Interop
.WinMM.mmioAscend(hMIO, &ck, 0);
601
if (waveFormat.wFormatTag !=
Interop
.WinMM.WAVE_FORMAT_PCM &&
602
waveFormat.wFormatTag !=
Interop
.WinMM.WAVE_FORMAT_ADPCM &&
603
waveFormat.wFormatTag !=
Interop
.WinMM.WAVE_FORMAT_IEEE_FLOAT)
613
Interop
.WinMM.mmioClose(hMIO, 0);
683
if (wFormatTag !=
Interop
.WinMM.WAVE_FORMAT_PCM &&
684
wFormatTag !=
Interop
.WinMM.WAVE_FORMAT_ADPCM &&
685
wFormatTag !=
Interop
.WinMM.WAVE_FORMAT_IEEE_FLOAT)
System\Media\SystemSound.cs (1)
17
Interop
.User32.MessageBeep(_soundType);
System\Media\SystemSounds.cs (5)
8
public static SystemSound Asterisk => field ??= new SystemSound(
Interop
.User32.MB_ICONASTERISK);
9
public static SystemSound Beep => field ??= new SystemSound(
Interop
.User32.MB_OK);
10
public static SystemSound Exclamation => field ??= new SystemSound(
Interop
.User32.MB_ICONEXCLAMATION);
11
public static SystemSound Hand => field ??= new SystemSound(
Interop
.User32.MB_ICONHAND);
12
public static SystemSound Question => field ??= new SystemSound(
Interop
.User32.MB_ICONQUESTION);
System\Security\Cryptography\X509Certificates\X509Certificate2UI.cs (13)
55
Interop
.CryptUI.CRYPTUI_VIEWCERTIFICATE_STRUCTW ViewInfo = default;
57
ViewInfo.dwSize = (uint)sizeof(
Interop
.CryptUI.CRYPTUI_VIEWCERTIFICATE_STRUCTW.Marshaller.Native);
80
if (!
Interop
.CryptUI.CryptUIDlgViewCertificateW(ViewInfo, IntPtr.Zero))
108
SafeCertStoreHandle safeCertStoreHandle =
Interop
.Crypt32.CertOpenStore(
109
(IntPtr)
Interop
.Crypt32.CERT_STORE_PROV_MEMORY,
110
Interop
.Crypt32.X509_ASN_ENCODING |
Interop
.Crypt32.PKCS_7_ASN_ENCODING,
122
Interop
.CryptUI.CRYPTUI_SELECTCERTIFICATE_STRUCTW csc = default;
128
Interop
.CryptUI.CRYPTUI_SELECTCERTIFICATE_STRUCTW.Marshaller.Native native;
130
csc.dwSize = (uint)Unsafe.ByteOffset(ref Unsafe.As<
Interop
.CryptUI.CRYPTUI_SELECTCERTIFICATE_STRUCTW.Marshaller.Native, byte>(ref native), ref Unsafe.As<IntPtr, byte>(ref native.hSelectedCertStore));
151
SafeCertContextHandle safeCertContextHandle =
Interop
.CryptUI.CryptUIDlgSelectCertificateW(ref csc);
157
if (!
Interop
.Crypt32.CertAddCertificateLinkToStore(safeCertStoreHandle,
159
Interop
.Crypt32.CERT_STORE_ADD_ALWAYS,
System\Security\Cryptography\X509Certificates\X509Utils.cs (9)
16
SafeCertContextHandle safeCertContext =
Interop
.Crypt32.CertDuplicateCertificateContext(certificate.Handle);
27
safeCertStoreHandle =
Interop
.Crypt32.CertOpenStore(
28
new IntPtr(
Interop
.Crypt32.CERT_STORE_PROV_MEMORY),
29
Interop
.Crypt32.X509_ASN_ENCODING |
Interop
.Crypt32.PKCS_7_ASN_ENCODING,
47
if (!
Interop
.Crypt32.CertAddCertificateLinkToStore(
50
Interop
.Crypt32.CERT_STORE_ADD_ALWAYS,
64
IntPtr pEnumContext =
Interop
.Crypt32.CertEnumCertificatesInStore(safeCertStoreHandle, IntPtr.Zero);
69
pEnumContext =
Interop
.Crypt32.CertEnumCertificatesInStore(safeCertStoreHandle, pEnumContext);