Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1.  public static class Printer {
  2.  
  3.         [DllImport("ThermalServiceLibrary.dll", EntryPoint = "Port_Open", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
  4.         public static extern int OpenPort(StringBuilder port, long speed);
  5.  
  6.         [DllImport("ThermalServiceLibrary.dll", EntryPoint = "Port_SetBaudRate")]
  7.         public static extern int SetBaudRate(long rate);
  8.  
  9.         [DllImport("ThermalServiceLibrary.dll", EntryPoint = "Port_Close")]
  10.         public static extern void ClosePort();
  11.  
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement