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