serial_error() 개인적인 메소드

private serial_error ( RJCP.IO.Ports.Native.Unix.SafeSerialHandle handle ) : IntPtr
handle RJCP.IO.Ports.Native.Unix.SafeSerialHandle
리턴 IntPtr
예제 #1
0
        public string serial_error(SafeSerialHandle handle)
        {
            IntPtr errorString = UnsafeNativeMethods.serial_error(handle);

            errno = Marshal.GetLastWin32Error();
            if (errorString.Equals(IntPtr.Zero))
            {
                return(null);
            }
            return(Marshal.PtrToStringAnsi(errorString));
        }