How to make a WMI Instance provider work

G

Guest

Hi all,

I have created a WMI AntiVirus instance provider using VC++ and ATL WMI
wizard. It compiled successfully including the .mof file, and the .dll file
is registered.

Then i run wbemtest.exe or WMI CIM Studio, both can't see this WMI provider
at all. In Wbemtest.exe, I EnumInstance "AntiVirusProduct", but I can't see
the WMI provider i created.

Does anyone have any advice?

Thanks a lot!

Best regards,
talpey
 
S

Scott McNairy \(MVP\)

Did you create an instance of __Win32Provider in the applicable namespace?
Usually this is done within your mof file. Here is the example for the
cimwin32 provider in the root\cimv2 namespace.


instance of __Win32Provider
{
CLSID = "{d63a5850-8f16-11cf-9f47-00aa00bf345c}";
HostingModel = "NetworkServiceHost";
ImpersonationLevel = 1;
Name = "CIMWin32";
PerUserInitialization = FALSE;
};

Note that if you do have it in your mof file - it may be located in
something like root\default namespace or something, you would want to use a
#pragma directive to post it to another namespace.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top