LoadDll/你好插件/你好命令.cs

21 lines
555 B
C#
Raw Normal View History

2023-02-28 12:23:33 +08:00
using PluginBase;
using System;
using System.Runtime.InteropServices;
namespace
{
public class : ICommand
{
public string { get => "你好"; }
public string { get => "显示一个你好的消息"; }
[DllImport("Kernel32.dll")]//引入命名空间
public static extern bool Beep(int frequency, int duration);
public int ()
{
Console.WriteLine("你好 !!!\n");
Beep(700, 200);
return 0;
}
}
}