一:截图 二:代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace SetDate { public partial cl…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; //引用系统调用 namespace win32_Api { class Program { [DllImport("user32.dll")] //调用内核插件 public static extern int MessageBox(int…
如Beep的API声明为 Public Declare Function Beep Lib “kernel32″ Alias “Beep” (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long 则使用方法如下 '创建对象 Set Wrap = CreateObject("DynamicWrapper") '注册API Wrap.Register "KERNEL32.DLL", "Beep"…