Search:
Type: Posts; User: TechCrazy
Search:
Search took 0.04 seconds.
-
December 22nd, 2008, 01:25 AM
right now ,i created a account in target machine ,the same username and password with my machine, and the code worked !!!!
but why?
-
December 21st, 2008, 11:35 PM
HRESULT hr = pEnumerator->Next(WBEM_INFINITE, 1,
&pclsObj, &uReturn);
if(FAILED(hr)){....}
i found hr returned failed.....
why did it happen?
-
December 21st, 2008, 11:09 PM
i am sure username and password are correct,
and i used wbemtest with the same username , password, everything went fine(connect, query)
-
December 21st, 2008, 10:59 PM
yes,i used the single step each line debugger
pSvc->ExecQuery
return S_OK indeed,
and
pEnumerator
-
December 21st, 2008, 09:41 PM
thank you for your reply!
just "connect ..." was put out,everything seemed to be fine.
the code i wrote is a sample from msdn ,but it didn't work fine.
but after debug ,i found:
if(0 ==...
-
December 21st, 2008, 09:18 PM
i think it's ok this time , i am new here, thank you,
but what exactly i need is the suggestion to my question~Anyone can help me ?
-
December 21st, 2008, 08:41 PM
it was my fault, now i have modified it ~
thank you all the same.
-
December 21st, 2008, 11:25 AM
Hi,everyone!
i tried to get information from remote machine using WMI by vc6,
i can connect with remote machine ,but i fail to get the infomation,
and then i tried wbemtest tool, there is no...
|
Click Here to Expand Forum to Full Width
|