资源简介
C#实现打印机监控
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Management;
using System;
using System.Collections.Generic;
using System.Text;
using System.Printing;
using System.Collections;
using System.IO;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender EventArgs e)
{
if (comboBox1.Text == string.Empty)
return;
PrinterStatus ret = 0;
string path = @“win32_printer.DeviceId=‘“
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-04-05 17:38 WindowsFormsApplication1\
目录 0 2017-04-05 17:38 WindowsFormsApplication1\WindowsFormsApplication1\
文件 5202 2017-04-06 12:11 WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs
文件 8179 2017-04-06 18:16 WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs
文件 6011 2017-04-06 12:11 WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx
文件 505 2013-07-17 16:59 WindowsFormsApplication1\WindowsFormsApplication1\Program.cs
目录 0 2017-04-05 17:38 WindowsFormsApplication1\WindowsFormsApplication1\Properties\
文件 1380 2013-07-17 16:59 WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs
文件 2900 2013-07-17 16:59 WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs
文件 5612 2013-07-17 16:58 WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx
文件 1111 2013-07-17 16:59 WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.Designer.cs
文件 249 2013-07-17 16:58 WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.settings
文件 3799 2013-07-18 11:18 WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csproj
目录 0 2017-04-05 17:38 WindowsFormsApplication1\WindowsFormsApplication1\bin\
目录 0 2017-04-05 17:38 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\
文件 14336 2017-04-06 12:18 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
文件 32256 2017-04-06 12:18 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
文件 22984 2017-04-12 17:13 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
文件 490 2010-03-17 22:39 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
目录 0 2017-04-05 17:38 WindowsFormsApplication1\WindowsFormsApplication1\obj\
目录 0 2017-04-05 17:38 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\
目录 0 2017-04-06 12:18 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\
文件 8662 2017-04-06 11:50 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7362 2017-04-12 17:13 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
目录 0 2017-04-12 17:14 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\TempPE\
文件 180 2017-04-06 12:11 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Form1.resources
文件 180 2013-07-18 14:39 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources
文件 2180 2017-04-12 17:13 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt
文件 975 2017-04-06 12:11 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache
文件 19081 2017-04-05 17:39 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csprojResolveAssemblyReference.cache
文件 14336 2017-04-06 12:18 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.exe
............此处省略4个文件信息
- 上一篇:Windows键盘和鼠标拦截程序
- 下一篇:C#获取电脑SN号
相关资源
- C# 读取并编辑window系统的右键菜单
- 仿XP系统的任务栏菜单
- 教室/会议室预定系统源码
- 提供C#调用系统API函数弹出或收起光驱
- 通过C#自带的头文件(类)获取Windo
- C#获取电脑CPU以及内存使用率
- Socke传输 (wince6.0系统)
- 重写String系统方法(扩展)
- 网格系统源码
- c# 通过int长度判断当前系统是64位还是
- C# 获取系统所有服务信息
- 获取系统盘符(驱动器)
- 获取系统计数器信息
- 获取系统语言、货币符号、国家信息
- 获取系统已经安装的字体
- 获取系统安装日期和启动时间
- C# 隐藏系统驱动器(盘符)
- C# 如何禁止关闭操作系统源码
- C# 禁止系统菜单按钮
- asp.net SEO价格查询系统源码
- 内部邮件收发系统(不支持smtp)
- C# 屏蔽系统的ctrl+c/x/v组合键
- 监控IE浏览器打开百度时跳转到自己网
- C# 系统升级器
- 模拟银行充值系统案例
- FastDFS分布式文件系统
- 仿Windows XP系统的任务栏菜单
- 动态系统托盘图标
- 设置_屏蔽系统热键
- 进销存管理系统源码(未实现逻辑)
评论
共有 条评论