Cosmos/source/IL2CPU.Tests/Tests/SimplePInvokeTest/SimplePInvokeTest.cs

18 lines
407 B
C#

using System;
using System.Runtime.InteropServices;
using System.Threading;
namespace SimplePInvokeTest {
class Program {
static void Main() {
bool result = MessageBeep(0xFFFFFFFF);
uint error = GetLastError();
}
[DllImport("user32.dll")]
private static extern bool MessageBeep(uint aType);
[DllImport("kernel32.dll")]
private static extern uint GetLastError();
}
}