-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrint.cs
More file actions
33 lines (28 loc) · 752 Bytes
/
Print.cs
File metadata and controls
33 lines (28 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace printServer
{
public class Print
{
[DllImport("TSCLIB.dll")]
private static extern int sendcommand(string cmd);
[DllImport("TSCLIB.dll")]
private static extern int openport(string cmd);
[DllImport("TSCLIB.dll")]
private static extern int closeport(string cmd);
public static int Send(string cmd)
{
return sendcommand(cmd);
}
public static int OpenPort(string cmd)
{
return openport(cmd);
}
public static int ClosePort(string cmd)
{
return closeport(cmd);
}
}
}