View Single Post
Old 18th October 2009, 04:24   #12
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,534
Right, got it working now!

For whatever crazy reason, using CLSID_WbemAdministrativeLocator in the call to CoCreateInstance seems to fix things on 2000 (plain CLSID_WbemLocator works fine on XP)

I'll end with a few notes...
  • I did not use WBEM_FLAG_RETURN_IMMEDIATELY, did not want to deal with semisynchronous calls (whatever they are)
  • CoInitializeSecurity(0,-1,0,0,1,3,0,0,0)//using the same params as wbemtest
  • CoCreateInstance(CLSID_WbemAdministrativeLocator,NULL,CLSCTX_INPROC_SERVER,IID_IWbemLocator,(LPVOID*)&WBEMLoc)
  • I'm not calling CoSetProxyBlanket() IIRC

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote