CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TechCrazy

Search: Search took 0.04 seconds.

  1. Re: fail to get information from remote machine using WMI, vc 6

    right now ,i created a account in target machine ,the same username and password with my machine, and the code worked !!!!
    but why?
  2. Re: fail to get information from remote machine using WMI, vc 6

    HRESULT hr = pEnumerator->Next(WBEM_INFINITE, 1,

    &pclsObj, &uReturn);

    if(FAILED(hr)){....}

    i found hr returned failed.....
    why did it happen?
  3. Re: fail to get information from remote machine using WMI, vc 6

    i am sure username and password are correct,
    and i used wbemtest with the same username , password, everything went fine(connect, query)
  4. Re: fail to get information from remote machine using WMI, vc 6

    yes,i used the single step each line debugger

    pSvc->ExecQuery
    return S_OK indeed,

    and


    pEnumerator
  5. Re: fail to get information from remote machine using WMI, vc 6

    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 ==...
  6. Re: fail to get information from remote machine using WMI, vc 6

    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 ?
  7. Re: fail to get information from remote machine using WMI, vc 6

    it was my fault, now i have modified it ~
    thank you all the same.
  8. fail to get information from remote machine using WMI, vc 6

    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...
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured