Johni
unread,Jul 31, 2012, 5:55:00 AM7/31/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hello,
I try to develop a simple WMI Instance provider, but my mof file is always rejected (when trying with mofcomp.exe) with the error :
0x8004107a ( WBEM_E_VETO_PUT )
My provider has the property supportsPut;
No method call is made on my code (IWBemServices and IWBemProviderInit).
Any help ?
Thank you.
Here is the mof code :
--------------
#pragma autorecover
#pragma classflags("forceupdate")
#pragma namespace("\\\\.\\Root")
instance of __Namespace
{
Name = "MyCompany";
};
#pragma namespace("\\\\.\\Root\\MyCompany")
instance of __Namespace
{
Name = "MyProduct";
};
#pragma namespace("\\\\.\\Root\\MyCompany\\MyProduct")
instance of __Win32Provider as $XProvider
{
Name = "XProvider";
CLSID = "{00001001-8804-4EE8-88868-36F59DEFD14D}";
ClientLoadableCLSID = NULL;
DefaultMachineName = NULL;
ImpersonationLevel = 0;
InitializationReentrancy = 0;
InitializeAsAdminFirst = FALSE;
PerLocaleInitialization = FALSE;
PerUserInitialization = FALSE;
Pure = TRUE;
UnloadTimeout = NULL;
};
instance of __InstanceProviderRegistration
{
Provider = $XProvider;
SupportsPut = "TRUE";
SupportsGet = "TRUE";
SupportsDelete = "FALSE";
SupportsEnumeration = "TRUE";
};
[
dynamic: ToInstance,
provider("XProvider"): ToInstance,
Description(""):ToSubClass,
UUID("{D99269ED-62A1-42b2-AA59-0768367916B3}")
]
class Data1
{
[
read,
key
]
string Guid;
[
read
]
string Path;
};