Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mof always rejected (veto)

43 views
Skip to first unread message

Johni

unread,
Jul 31, 2012, 5:55:00 AM7/31/12
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;
};

Johni

unread,
Jul 31, 2012, 8:48:39 AM7/31/12
to
Find it...
The CLSID has a wrong format. good error message...
>(
0 new messages