Files
UmaViewer/Assets/Scripts/Audio/NAudio/Utils/NativeMethods.cs
T
2022-09-10 16:59:44 +08:00

23 lines
572 B
C#

using System;
using System.Runtime.InteropServices;
namespace NAudio.Utils
{
/// <summary>
/// General purpose native methods for internal NAudio use
/// </summary>
class NativeMethods
{
#if !NETFX_CORE
[DllImport("kernel32.dll")]
public static extern IntPtr LoadLibrary(string dllToLoad);
#endif
[DllImport("kernel32.dll")]
public static extern IntPtr GetProcAddress(IntPtr hModule, string procedureName);
[DllImport("kernel32.dll")]
public static extern bool FreeLibrary(IntPtr hModule);
}
}