c# 向驱动打印机发送命令打开钱箱

引用的dll

链接: https://pan.baidu.com/s/1MjwmfvBCPTBq1QNapKzDmg 提取码: 9wuf 

[DllImport("Drawcash.dll")]
private static extern bool OpenDriverCash2(int code1, int code2, int code3, int code4, int code5, string printerName);

调用:

OpenDriverCash2(27,112,0,128,128, "打印机名称");

原文地址:https://www.cnblogs.com/bfyx/p/10511765.html