安装Windows示例端口监视器localmon时出错 [英] Error while installing Windows sample port monitor localmon

查看:278
本文介绍了安装Windows示例端口监视器localmon时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装WDK中提供的Windows示例端口监视器(localmon)。但是我在安装它时总是出错:

I am trying to install windows sample port monitor(localmon) provided in WDK. But I keep getting error while installing it:


在安装端口监视器 DDK示例端口监视器时发生了错误。请与制造商联系以获得帮助。

An error occurred while installing port monitor 'DDK sample port monitor'. Please contact manufacturer for assistance.

我正在按照以下说明进行安装:-

I am using following instructions to install it:-


打开设备和打印机文件夹。右键单击我的目标打印机,然后选择打印机属性。点击端口标签,然后点击添加端口...按钮。在打印机端口对话框中,单击新端口类型...按钮。在文本输入框中键入INF文件的路径,然后单击确定。

Open 'Devices and printers' folder. Right click on my targeted printer and choose 'printer properties'. Click the 'Ports' tab, and then click the 'Add Port...' button. On the Printer Ports dialog, click the 'New Port Type...' button. Type the path to the INF file in the text input box, and then click OK.

我正在使用Windows 7、64位版。以下是我的INF文件。

I am using windows 7, 64-bit version. Following is my INF file.

; monitor.inf
;
; Installation inf for printer port monitor
;
; (c) Copyright 2001-2003 DDK Example for print monitor installation
;

[Version]
Signature="$Windows NT$"
Provider=%PMProducer%
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer

[PortMonitors]
"DDK Sample Port Monitor" = sampleportmon

[sampleportmon]
CopyFiles=@ddklocalmon.dll, @ddklocalui.dll
PortMonitorDll=ddklocalmon.dll

[SourceDisksFiles]
ddklocalmon.dll=1,,
ddklocalui.dll=1,,

[SourceDisksNames]
1="Sample Port Monitor Installation Disk",,,

[Strings]
PMProducer="Sample Port Monitor Company, Inc."

有人可以在这里帮助我吗?

Can somebody help me here ?

非常感谢!

推荐答案

我终于能够解决问题。这是一个权限问题。在Windows 7中,通过控制面板,系统和安全性,管理工具,进入具有管理员特权的打印机属性的方法,然后右键单击打印管理,然后以管理员身份运行。完成后,我就可以安装端口监视器了。

I was finally able to fix the issue. It was a permissions issue. Method for getting to the Printer Properties with Administrator privileges in windows 7, is via Control Panel, System and Security, Administrative Tools, then right click on Print Management then Run as administrator. Once I did that I was able to install the port monitor.

这篇关于安装Windows示例端口监视器localmon时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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