如何创建一个Windows服务,在将打印作业发送到打印机之前拦截它 [英] How to create a windows service that Intercepts the print job before it is sent to printer

查看:277
本文介绍了如何创建一个Windows服务,在将打印作业发送到打印机之前拦截它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Windows服务(或应用程序),要求用户登录该服务并仅在登录信息正确的情况下将打印作业发送到打印机。



主要目的是 - a)对用户进行身份验证,以便未经授权的用户无法向打印机发送打印输出。 b)准备用户明智的打印文档和页面日志。



请帮助...

解决方案

< blockquote>这不是一个Windows服务应用程序。



实际上,你根本不需要编写任何代码来执行此操作!



正确设置的打印机和安全配置已经阻止人们使用打印机并且不需要用户输入任何凭据就可以了!


I want to create a windows service (or app) that asks the user to login into that service and sends the print job to printer only if, the login information is correct.

The main purpose is to- a) Authenticate the user, so that, unauthorised users cannot send printout to printer. b) To prepare a user wise log of printed documents and pages.

Please help...

解决方案

This isn't going to be a Windows service app.

In fact, you don't have to write any code at all to do this!

A properly setup printer and security configuration will already stop people from using the printer AND do it WITHOUT the user having to type in any credentials!


这篇关于如何创建一个Windows服务,在将打印作业发送到打印机之前拦截它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆