Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows XP > Windows XP WMI

Notices

Reply

How to make a WMI Instance provider work

 

LinkBack Thread Tools Display Modes
Old 02-14-2006, 10:31 PM   #1 (permalink)
Default How to make a WMI Instance provider work

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
talpey
Guest
 
Posts: n/a
Reply With Quote  
Old 02-16-2006, 05:51 PM   #2 (permalink)
Default Re: How to make a WMI Instance provider work

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.

--
Scott McNairy
Microsoft MVP - Windows Server Management Infrastructure


"talpey" <talpey@discussions.microsoft.com> wrote in message
news:B517DFB5-77F7-4DF8-9952-4593058DB527@microsoft.com...
Quote:
> 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

Scott McNairy \(MVP\)
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Please make the CTRL button work with Explorer navigation Josh Windows Vista File Management 0 09-15-2006 04:30 AM
I can't make test signed drivers work in 64-bit Vista Ladislav Zezula Windows Vista Security 0 07-11-2006 11:58 AM
How to get the WMI instance defination Stross S. Dist Windows XP WMI 1 03-29-2005 03:29 AM
Instance Rully Kusuma Windows XP WMI 3 08-26-2004 06:42 PM
Instance Provider Mateus Baur Windows XP WMI 1 08-24-2004 08:10 PM


All times are GMT. The time now is 04:54 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90