资源简介
可以监控打印机打印任务相关信息!
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Printing;
using System.Text;
using System.Runtime.InteropServices;
using System.Threading;
using Atom8.API.PrintSpool;
namespace Atom8.Monitors
{
public class PrintJobChangeEventArgs : EventArgs
{
#region private variables
private int _jobID=0;
private string _jobName = ““;
private JOBSTATUS _jobStatus = new JOBSTATUS();
private PrintSystemJobInfo _jobInfo = null;
#endregion
public int JobID { get { return _jobID;} }
public string JobName { get { return _jobName; } }
public JOBSTATUS JobStatus { get { return _jobStatus; } }
public PrintSystemJobInfo JobInfo { get { return _jobInfo; } }
public PrintJobChangeEventArgs(int intJobID string strJobName JOBSTATUS jStatus PrintSystemJobInfo objJobInfo )
: base()
{
_jobID = intJobID;
_jobName = strJobName;
_jobStatus = jStatus;
_jobInfo = objJobInfo;
}
}
public delegate void PrintJobStatusChanged(object Sender PrintJobChangeEventArgs e);
public class PrintQueueMonitor
{
#region DLL Import Functions
[DllImport(“winspool.drv“ EntryPoint = “OpenPrinterA“SetLastError = true CharSet = CharSet.AnsiExactSpelling = trueCallingConvention = CallingConvention.StdCall)]
public static extern bool OpenPrinter(String pPrinterName
out IntPtr phPrinter
Int32 pDefault);
[DllImport(“winspool.drv“ EntryPoint = “ClosePrinter“
SetLastError = true
ExactSpelling = true
CallingConvention = CallingConvention.StdCall)]
public static extern bool ClosePrinter
(Int32 hPrinter);
[DllImport(“winspool.drv“
EntryPoint = “FindFirstPrinterChangeNotification“
SetLastError = true CharSet = CharSet.Ansi
ExactSpelling = true
CallingConvention = CallingConvention.StdCall)]
public static extern IntPtr FindFirstPrinterChangeNotification
([InAttribute()] IntPtr hPrinter
[InAttribute()] Int32 fwFlags
[InAttribute()] Int32 fwOptions
[InAttribute() MarshalAs(UnmanagedType.LPStruct)] PRINTER_NOTIFY_OPTIONS pPrinterNotifyOptions);
[DllImport(“winspool.drv“ EntryPoint = “FindNextPrinterChangeNotification“
SetLastError = true CharSet = CharSet.Ansi
ExactSpelling = false
CallingConvention = CallingConvention.StdCall)]
public static extern bool FindNextPrinterChangeNotification
([InAttribute()] IntPtr hChangeobject
[OutAttribute()] out Int32 pdwChange
[InAttribute() MarshalAs(UnmanagedType
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 47104 2019-04-30 15:57 PrintSpooler(印度)\.vs\PrintSpooler\v14\.suo
文件 9847 2010-01-08 14:50 PrintSpooler(印度)\Backup\PrintQueueMonitor\PrintQueueMonitor.cs
文件 2688 2010-01-08 12:00 PrintSpooler(印度)\Backup\PrintQueueMonitor\PrintQueueMonitor.csproj
文件 24354 2010-01-08 12:00 PrintSpooler(印度)\Backup\PrintQueueMonitor\PrintSpoolAPI.cs
文件 1446 2010-01-08 10:50 PrintSpooler(印度)\Backup\PrintQueueMonitor\Properties\AssemblyInfo.cs
文件 1890 2010-01-08 14:40 PrintSpooler(印度)\Backup\PrintSpooler\MainForm.cs
文件 3944 2010-01-08 14:30 PrintSpooler(印度)\Backup\PrintSpooler\MainForm.Designer.cs
文件 5814 2010-01-08 14:30 PrintSpooler(印度)\Backup\PrintSpooler\MainForm.resx
文件 4112 2010-01-08 11:02 PrintSpooler(印度)\Backup\PrintSpooler\PrintSpooler.csproj
文件 74 2010-01-08 10:47 PrintSpooler(印度)\Backup\PrintSpooler\PrintSpooler.csproj.user
文件 507 2010-01-08 10:48 PrintSpooler(印度)\Backup\PrintSpooler\Program.cs
文件 1436 2010-01-08 10:47 PrintSpooler(印度)\Backup\PrintSpooler\Properties\AssemblyInfo.cs
文件 2853 2010-01-08 10:47 PrintSpooler(印度)\Backup\PrintSpooler\Properties\Resources.Designer.cs
文件 5612 2010-01-08 10:47 PrintSpooler(印度)\Backup\PrintSpooler\Properties\Resources.resx
文件 1097 2010-01-08 10:47 PrintSpooler(印度)\Backup\PrintSpooler\Properties\Settings.Designer.cs
文件 249 2010-01-08 10:47 PrintSpooler(印度)\Backup\PrintSpooler\Properties\Settings.settings
文件 1435 2010-01-08 10:54 PrintSpooler(印度)\Backup\PrintSpooler.sln
文件 21504 2019-04-08 13:41 PrintSpooler(印度)\PrintQueueMonitor\bin\Debug\PrintQueueMonitor.dll
文件 22016 2019-04-08 13:41 PrintSpooler(印度)\PrintQueueMonitor\bin\Debug\PrintQueueMonitor.pdb
文件 20992 2010-01-08 14:50 PrintSpooler(印度)\PrintQueueMonitor\bin\Release\PrintQueueMonitor.dll
文件 816 2019-04-30 15:13 PrintSpooler(印度)\PrintQueueMonitor\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6783 2019-04-08 15:58 PrintSpooler(印度)\PrintQueueMonitor\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 1081 2019-04-08 16:06 PrintSpooler(印度)\PrintQueueMonitor\obj\Debug\PrintQueueMonitor.csproj.FileListAbsolute.txt
文件 1549 2019-04-08 16:06 PrintSpooler(印度)\PrintQueueMonitor\obj\Debug\PrintQueueMonitor.csprojResolveAssemblyReference.cache
文件 21504 2019-04-08 13:41 PrintSpooler(印度)\PrintQueueMonitor\obj\Debug\PrintQueueMonitor.dll
文件 22016 2019-04-08 13:41 PrintSpooler(印度)\PrintQueueMonitor\obj\Debug\PrintQueueMonitor.pdb
文件 9847 2010-01-08 14:50 PrintSpooler(印度)\PrintQueueMonitor\PrintQueueMonitor.cs
文件 2841 2019-04-08 12:42 PrintSpooler(印度)\PrintQueueMonitor\PrintQueueMonitor.csproj
文件 24354 2010-01-08 12:00 PrintSpooler(印度)\PrintQueueMonitor\PrintSpoolAPI.cs
文件 1446 2010-01-08 10:50 PrintSpooler(印度)\PrintQueueMonitor\Properties\AssemblyInfo.cs
............此处省略65个文件信息
- 上一篇:桌面六轴机器人
- 下一篇:多功能串口助手(附源码)
相关资源
- videoMonitor实时监控
- 打印机ESC指令
- 支票管理系统源码(附数据库)
- C# 海康实时监控视频SDK
- Zebar打印机
- C# 套打Demo
- Memcached进程监控
- C# 调用摄像头拍照(基于AForge)
- panel内容打印(图片打印)
- C# 调用BarTender打印条码DEMO
- 大型比赛竞赛抽签系统 可打印 c# vs
- C# 斑马标签打印 WEBWINFORM
- Winform可视化打印模板设计
- C# 实现局域网视频监控Socket 编程
- C#利用Zxing.NET生成条形码和二维码并实
- C# 斑马打印机USB接口ZPL条码打印
- C#调用USB接口斑马打印机
- .net批量打印word源码C#_VS2012
- 网页js与本地C#程序 websocket通讯实现打
- 带条码打印的固定资产管理系统源码
- C#监测系统源码 C#监控计算机 C# 脱离
- 热敏打印机C#二次开发包DLL
- C# 实现的3D打印
- C#调用Godex(科诚)打印机打印1,2维
- 家庭视频监控系统c#)
- 简单监控界面软件设计
- ZPL 打印条码、二维码及小票中文/汉字
- c#winform网络监控系统
- C#窗体三种方法生成二维码并打印的小
- c#快递单打印精灵
评论
共有 条评论