mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
18 lines
407 B
C#
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();
|
|
}
|
|
}
|