• 大小: 0.10M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: C#  串口  来电  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace NetPrinter
{
    public class Cashbox : ICashbox
    {
        const int OPEN_EXISTING = 3;
        string prnPort = “LPT1“;
        [DllImport(“kernel32.dll“ CharSet = CharSet.Auto)]
        private static extern IntPtr CreateFile(string lpFileName
            int dwDesiredAccess
            int dwShareMode
            int lpSecurityAttributes
            int dwCreationDisposition
            int dwFlagsAndAttributes
            int hTemplateFile);

        [DllImport(“kernel32.dll“)]
        private static extern void Sleep(int dwMilliseconds);
        public void Open()
        {
            IntPtr iHandle = CreateFile(prnPo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1388  2009-01-04 14:52  PhonePrinter\PhonePrinter.sln

    ..A..H.     33792  2009-01-08 22:19  PhonePrinter\PhonePrinter.suo

     文件       5612  2009-01-04 13:47  PhonePrinter\Phone\Properties\Resources.resx

     文件        249  2009-01-04 13:47  PhonePrinter\Phone\Properties\Settings.settings

     文件       1182  2009-01-04 13:47  PhonePrinter\Phone\Properties\AssemblyInfo.cs

     文件       2834  2009-01-08 21:41  PhonePrinter\Phone\Properties\Resources.Designer.cs

     文件       1103  2009-01-08 21:41  PhonePrinter\Phone\Properties\Settings.Designer.cs

     文件       1395  2009-01-08 21:42  PhonePrinter\Phone\Form1.cs

     文件        201  2009-01-06 22:58  PhonePrinter\Phone\Settings.xml

     文件        783  2009-01-05 19:54  PhonePrinter\Phone\IModem.cs

     文件       3520  2009-01-08 21:42  PhonePrinter\Phone\Phone.csproj

     文件       5632  2005-11-11 22:25  PhonePrinter\Phone\bin\Debug\Phone.vshost.exe

     文件        201  2009-01-06 22:58  PhonePrinter\Phone\bin\Debug\Settings.xml

     文件      24576  2009-01-08 22:16  PhonePrinter\Phone\bin\Debug\Phone.exe

     文件      34304  2009-01-08 22:16  PhonePrinter\Phone\bin\Debug\Phone.pdb

     文件       4608  2009-01-08 21:41  PhonePrinter\Phone\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        180  2009-01-08 22:16  PhonePrinter\Phone\obj\Debug\Phone.Form1.resources

     文件        180  2009-01-08 22:16  PhonePrinter\Phone\obj\Debug\Phone.Properties.Resources.resources

     文件        842  2009-01-08 22:16  PhonePrinter\Phone\obj\Debug\Phone.csproj.GenerateResource.Cache

     文件      34304  2009-01-08 22:16  PhonePrinter\Phone\obj\Debug\Phone.pdb

     文件      24576  2009-01-08 22:16  PhonePrinter\Phone\obj\Debug\Phone.exe

     文件        611  2009-01-08 22:16  PhonePrinter\Phone\obj\Phone.csproj.FileListAbsolute.txt

     文件       5239  2009-01-08 21:22  PhonePrinter\Phone\Settings.cs

     文件       2004  2009-01-08 21:42  PhonePrinter\Phone\Form1.Designer.cs

     文件       5814  2009-01-08 21:42  PhonePrinter\Phone\Form1.resx

     文件       3705  2009-01-08 21:46  PhonePrinter\Phone\Modem.cs

     文件        168  2009-01-08 21:42  PhonePrinter\Phone\Phone.csproj.user

     文件        503  2009-01-06 23:02  PhonePrinter\Phone\Program.cs

     文件       5612  2009-01-04 14:52  PhonePrinter\NetPrinter\Properties\Resources.resx

     文件        249  2009-01-04 14:52  PhonePrinter\NetPrinter\Properties\Settings.settings

............此处省略48个文件信息

评论

共有 条评论