public static extern Int32 cnio_send_message(Int32 hPort, ref CNIO_MSG msg, UInt32 timeout);
public static extern Int32 cnio_receive_message(Int32 hPort, out CNIO_MSG msg, UInt32 timeout);