WMI Win32_Printer 无法在 XP Embedded 上运行
我有一些代码可以在标准 XP 系统上运行,但在 XP 上失败 嵌入式测试机。
我收到 System.Management.ManagementException : Provider Load Failure
这是我的代码:
string query = "Select * From Win32_Printer";
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
ManagementObjectCollection results = searcher.Get();
是否有要启动的服务或要注册的 DLL?
请帮我找到答案!
提前致谢, 跳蚤
I have some code which works on a standard XP system, but fails on XP
Embedded test machine.
I get System.Management.ManagementException : Provider Load Failure
Here is my code:
string query = "Select * From Win32_Printer";
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
ManagementObjectCollection results = searcher.Get();
Are there services to start or DLL's to register?
Please, help me find the answer!
Thanks in advance,
Flea
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须检查 System.Management.Instrumentation.dll 库是否已正确注册。
尝试此链接
You must check wich the
System.Management.Instrumentation.dll
library is properly registered.try out this link