打印机徽标测试 [英] Printer Logo Test

查看:119
本文介绍了打印机徽标测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过所有印刷徽标测试.单个测试正在运行,但不是一起运行.

I'm trying to pass all printing logo tests. Single test are running but not all together.

主要问题发生在DevMode Corruptor和Driver Stress Test上.在这些测试中,将安装和删除NullPortMonitor.如果活动端口是LPT1:测试将通过.如果NullPort处于活动状态,则测试将挂断.不幸的是NullPort的安装和删除将由测试本身完成-因此我没有机会通过完整的徽标测试.这是一个随机测试...

The main problem occur on DevMode Corruptor and Driver Stress Test. Inside these tests a NullPortMonitor will be installed and deleted. If the active port is LPT1: the test will pass. If the NullPort is active the test hangs up. Unfortunately the installation and deletion of the NullPort will be done by the test itself - therefore I have no chance to pass the complete logo test.It is a random test ...

必须做什么?当我识别NullPort时,是否有API函数或任何机会手动切换端口? SetPrinter()失败,并显示访问被拒绝".

What has to be done? Is there an API-function or any chance to switch the port manually when I recognize NullPort? SetPrinter() fails with 'access denied'.

devmode接口函数(或任何其他函数)中是否有任何规则可以通过测试?

Are there any rules inside the devmode interface function (or any other function) to pass the tests?

如果测试挂断,则问题出在简单的注册表或结构API函数上(例如GetPrinter(),SetPrinterData(),DrvWriteSpoolBuf()). ...

If the test hangs up, the problem occurs on simple registry or structure API-functions (e.g. GetPrinter(), SetPrinterData(), DrvWriteSpoolBuf()). ...

这些问题有解决方案吗?

Are there any solutions for these problems?

克劳斯

推荐答案

虽然这可能不是正确的论坛,但您可能已经看过 http ://msdn.microsoft.com/zh-CN/library/ms535488.aspx .

如果安全描述符包含调用者没有修改权限的组件,则 SetPrinter 失败.不想修改的安全描述符的那些组件应为NULL或不存在(视情况而定).如果您不想修改安全描述符,并使用 PRINTER_INFO_2 结构调用 SetPrinter ,请将该结构的 pSecurityDescriptor 成员设置为NULL.

If the security descriptor contains a component that the caller does not have the access right to modify, SetPrinter fails. Those components of a security descriptor that you don't want to modify should be NULL or not be present, as appropriate. If you do not want to modify the security descriptor, and are calling SetPrinter with a PRINTER_INFO_2 structure, set the pSecurityDescriptor member of that structure to NULL.

默认情况下,Internet连接防火墙(ICF)阻止打印机端口,但是可以启用文件和打印共享"的例外.如果计算机管理员调用 SetPrinter ,它将启用该异常.如果非管理员调用了该调用,并且尚未启用该异常,则调用将失败.

The Internet Connection Firewall (ICF) blocks printer ports by default, but an exception for File and Print Sharing can be enabled. If SetPrinter is called by a machine admin, it enables the exception. If it is called by a non-admin and the exception has not already been enabled, the call fails.

您可能还想尝试使用管理员(高级别)级别.

希望这会有所帮助.


这篇关于打印机徽标测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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