how to use the SHFindComputer function

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

how to use the SHFindComputer function

Postby OneManDo » Sun Oct 17, 2004 12:23 am

hi all members...

i need to do a find-computer on my network by API shell code...
i have found this code on the internet but it's not working at all
Code: Select all
typedef BOOL (WINAPI* SHFINDCOMPUTER)(LPCITEMIDLIST pidlRoot, LPCITEMIDLIST pidlSavedSearch);

int main(int argc, char* argv[])
{


  SHFINDCOMPUTER SHFindComputer ;
  HMODULE hDll = LoadLibrary("shell32.dll") ;

  if(hDll)
  {
    SHFindComputer = (SHFINDCOMPUTER)GetProcAddress(hDll, (LPCSTR)91) ;
    if(SHFindComputer)
    {
      SHFindComputer(0, 0) ;
    }
    FreeLibrary(hDll) ;
  }


  return 0;
}


any one have any solotion to FindComputer by API code?

thanks ;-)
OneManDo
 

Return to Technical

Who is online

Users browsing this forum: Bing [Bot] and 10 guests