<div>Hi All,<br>&nbsp;<br>While testing wpa_supplicant (version 0.5.9) on Windows 2000, I got problems getting the supplicant to run correctly. It kept failing, complaining about WMI errors.<br>I&#39;ve searched the mailing list, but found only 1 reference to approx. the same issue, but no solution.<br>
&nbsp;<br>So, I&#39;ve been doing some debugging and it seems that when COM needs to do marshaling, the failures occurred. Further looking showed that some function calls<br>(such as IWbemServices_ExecQuery) passed L&quot;&quot; strings, while BSTR&#39;s needed to passed. Making a wrapper to convert WCHARs to BSTRs solved the problem and<br>
the supplicant is now working OK on Windows 2000. <br>&nbsp;<br>Potentially, the same situation could also occur on Windows XP, but for some reason marshaling was not triggered while performing my tests on XP.<br>&nbsp;<br>This being my first interaction with the list and having no idea about the regular way to post modified files, I&#39;ve simply attached the diff for the ndis_events.c (from 0.5.9) file for you guys to have a look at. It seems that the 0.6.2 binaries suffers from the same issue, but I haven&#39;t looked at ndis_events.c from 0.6.2 yet<br>
&nbsp;<br>Kind regards,<br>Ridouan Agarad.</div>
<div>&nbsp;</div>