开发者

WMI Win32_Printer not working on XP Embedded

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);
    Manage开发者_运维知识库mentObjectCollection results = searcher.Get();

Are there services to start or DLL's to register?

Please, help me find the answer!

Thanks in advance, Flea


You must check wich the System.Management.Instrumentation.dll library is properly registered.

try out this link

  • How to: Fix Provider Load Failure Error
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜