110,533
社区成员
发帖
与我相关
我的任务
分享
public class PortAccess
{
[DllImport("inpout32.dll", EntryPoint = "Out32")]
public static extern void Output(int adress, int value);
[DllImport("inpout32.dll", EntryPoint = "Inp32")]
public static extern int Input(int adress);
}
private void button1_Click(object sender, EventArgs e)
{
PortAccess.Output(0x378, 0);
}