public static extern SpwRetVal SiGetDevicePort(IntPtr hdl, ref SiDevPort pPort);
public static extern IntPtr SiOpenPort(string pAppName, ref SiDevPort pPort, int mode, ref SiOpenData pData);