File: _generated\0\LibraryImports.g.cs
Web Access
Project: src\src\runtime\src\libraries\System.Speech\src\System.Speech.csproj (System.Speech)
// <auto-generated/>
internal static unsafe partial class Interop
{
    internal static unsafe partial class WinMM
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "waveOutClose", ExactSpelling = true)]
        internal static extern partial global::Interop.WinMM.MMSYSERR waveOutClose(nint hwo);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class WinMM
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.26904")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        internal static partial global::Interop.WinMM.MMSYSERR waveOutGetDevCaps(nint uDeviceID, ref global::Interop.WinMM.WAVEOUTCAPS caps, int cbwoc)
        {
            global::Interop.WinMM.WAVEOUTCAPS.Marshaller.Native __caps_native;
            global::Interop.WinMM.MMSYSERR __retVal;
            // Marshal - Convert managed data to native data.
            __caps_native = global::Interop.WinMM.WAVEOUTCAPS.Marshaller.ConvertToUnmanaged(caps);
            {
                __retVal = __PInvoke(uDeviceID, &__caps_native, cbwoc);
            }
 
            // Unmarshal - Convert native data to managed data.
            caps = global::Interop.WinMM.WAVEOUTCAPS.Marshaller.ConvertToManaged(__caps_native);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "waveOutGetDevCapsW", ExactSpelling = true)]
            static extern unsafe global::Interop.WinMM.MMSYSERR __PInvoke(nint __uDeviceID_native, global::Interop.WinMM.WAVEOUTCAPS.Marshaller.Native* __caps_native, int __cbwoc_native);
        }
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class WinMM
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "waveOutGetNumDevs", ExactSpelling = true)]
        internal static extern partial int waveOutGetNumDevs();
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class WinMM
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.26904")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        internal static partial global::Interop.WinMM.MMSYSERR waveOutOpen(ref nint phwo, int uDeviceID, byte[] pwfx, global::Interop.WinMM.WaveOutProc dwCallback, nint dwInstance, uint fdwOpen)
        {
            nint __dwCallback_native;
            global::Interop.WinMM.MMSYSERR __retVal;
            // Marshal - Convert managed data to native data.
            __dwCallback_native = dwCallback != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(dwCallback) : default;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (void* __pwfx_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.ManagedToUnmanagedIn.GetPinnableReference(pwfx))
            fixed (nint* __phwo_native = &phwo)
            {
                __retVal = __PInvoke(__phwo_native, uDeviceID, (byte*)__pwfx_native, __dwCallback_native, dwInstance, fdwOpen);
            }
 
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.GC.KeepAlive(dwCallback);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "waveOutOpen", ExactSpelling = true)]
            static extern unsafe global::Interop.WinMM.MMSYSERR __PInvoke(nint* __phwo_native, int __uDeviceID_native, byte* __pwfx_native, nint __dwCallback_native, nint __dwInstance_native, uint __fdwOpen_native);
        }
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class WinMM
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "waveOutPause", ExactSpelling = true)]
        internal static extern partial global::Interop.WinMM.MMSYSERR waveOutPause(nint hwo);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class WinMM
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "waveOutPrepareHeader", ExactSpelling = true)]
        internal static extern partial global::Interop.WinMM.MMSYSERR waveOutPrepareHeader(nint hwo, nint pwh, int cbwh);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class WinMM
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "waveOutUnprepareHeader", ExactSpelling = true)]
        internal static extern partial global::Interop.WinMM.MMSYSERR waveOutUnprepareHeader(nint hwo, nint pwh, int cbwh);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class WinMM
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "waveOutReset", ExactSpelling = true)]
        internal static extern partial global::Interop.WinMM.MMSYSERR waveOutReset(nint hwo);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class WinMM
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "waveOutRestart", ExactSpelling = true)]
        internal static extern partial global::Interop.WinMM.MMSYSERR waveOutRestart(nint hwo);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class WinMM
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "waveOutWrite", ExactSpelling = true)]
        internal static extern partial global::Interop.WinMM.MMSYSERR waveOutWrite(nint hwo, nint pwh, int cbwh);
    }
}