并口操作组件。 using System; using System.Runtime.InteropServices; 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