I don’t know how NDIS got onto this thread, but if you *are* populating any NDIS object headers in WMI, I recommend always setting MSNdis_ObjectHeader.Size to 0xFFFF. That way you avoid curious failures when your script is moved to a 64-bit machine.
(Yes, that reveals just how broken it is to have an embedded size field in a WMI block. Don’t worry – NDIS does not actually *trust* that field when validating buffers from usermode; it just inexplicably fails the request if you set Size to an insufficiently large integer.)
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Krishna Jagadish Marisa
Sent: Tuesday, February 01, 2011 9:05 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Wmi 's ExecuteWmiMethod error
Use WMITools at?http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6430f853-1120-48db-8cc5-f2abdc3ed314&displaylang=en
To execute the method, you need to correctly populate the input arg for the method. The NdisObjectHeader in the input arg takes the following values,
revision = 1, type = 2, size = 32.
Thanks
Date: Tue, 1 Feb 2011 08:29:02 -0500
From: xxxxx@rediffmail.com
To: xxxxx@lists.osr.com
Subject: RE:[ntdev] Wmi 's ExecuteWmiMethod error
Anyone who implemented WMI,can you please tell me the steps to test ExecuteWmimethod by using wbemtest or some other utilities.
Thanks,
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer