Hi,
I am using wbemtest utility.
Whenever I try to Execute the method “Echo” exposed by
my driver.mof file, the utility returns me
WBEM_E_NOT_SUPPORTED.
I have checked in the miniport driver and can see
thers is no call coming for WmiExecuteMethod.
Since wbemtest can see my Method I dont have any idea
why it is returning error to me.
I am also writing my mof code
[WMI, dynamic: ToInstance, provider(“WmiProv”),
Locale(“MS\0x409”),
guid(“46205FF2-3FE4-457a-B5BB-5D87C89D0AD8”),
Description(“A Sample example”)]
class Sample
{
[key, read] string InstanceName;
[read] boolean Active;
[Implemented, Description(“Echo”), WmiMethodId(1)]
void Echo([in] string sInArg = “default”, [out] string
sOutArg);
};
Any help would be appreciated as I am starting new to
WMI.
Thanks and Regards
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
The problem is almost certainly in your user-space code. I saw that error
when I developed some WMI code. The driver was fine; it was my C++
user-space routine that fouled up, and, as you saw, in at least some failure
cases the driver isn’t even given the chance to say something is wrong.
–
James Antognini
Windows DDK Support
This posting is provided “AS IS” with no warranties, and confers no rights.
“Gurpreet Anand” wrote in message
news:xxxxx@ntdev…
> Hi,
> I am using wbemtest utility.
> Whenever I try to Execute the method “Echo” exposed by
> my driver.mof file, the utility returns me
> WBEM_E_NOT_SUPPORTED.
> I have checked in the miniport driver and can see
> thers is no call coming for WmiExecuteMethod.
> Since wbemtest can see my Method I dont have any idea
> why it is returning error to me.
> I am also writing my mof code
>
> [WMI, dynamic: ToInstance, provider(“WmiProv”),
> Locale(“MS\0x409”),
> guid(“46205FF2-3FE4-457a-B5BB-5D87C89D0AD8”),
> Description(“A Sample example”)]
> class Sample
> {
> [key, read] string InstanceName;
> [read] boolean Active;
> [Implemented, Description(“Echo”), WmiMethodId(1)]
> void Echo([in] string sInArg = “default”, [out] string
> sOutArg);
> };
>
> Any help would be appreciated as I am starting new to
> WMI.
>
> Thanks and Regards
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
>
You are right.
Wbemtest.exe is returning me this error…but if I use the html code generated by wmimofck.exe, it runs fine.
Somehow I am not able to execute any methods sucessfully from wbemtest.exe but all runs fine from the html.
Regards,
Gurpreet Anand
“James Antognini [MSFT]” wrote:
The problem is almost certainly in your user-space code. I saw that error
when I developed some WMI code. The driver was fine; it was my C++
user-space routine that fouled up, and, as you saw, in at least some failure
cases the driver isn’t even given the chance to say something is wrong.
–
James Antognini
Windows DDK Support
This posting is provided “AS IS” with no warranties, and confers no rights.
“Gurpreet Anand” wrote in message
news:xxxxx@ntdev…
> Hi,
> I am using wbemtest utility.
> Whenever I try to Execute the method “Echo” exposed by
> my driver.mof file, the utility returns me
> WBEM_E_NOT_SUPPORTED.
> I have checked in the miniport driver and can see
> thers is no call coming for WmiExecuteMethod.
> Since wbemtest can see my Method I dont have any idea
> why it is returning error to me.
> I am also writing my mof code
>
> [WMI, dynamic: ToInstance, provider(“WmiProv”),
> Locale(“MS\0x409”),
> guid(“46205FF2-3FE4-457a-B5BB-5D87C89D0AD8”),
> Description(“A Sample example”)]
> class Sample
> {
> [key, read] string InstanceName;
> [read] boolean Active;
> [Implemented, Description(“Echo”), WmiMethodId(1)]
> void Echo([in] string sInArg = “default”, [out] string
> sOutArg);
> };
>
> Any help would be appreciated as I am starting new to
> WMI.
>
> Thanks and Regards
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
>
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!