search for: numstorage

Displaying 1 result from an estimated 1 matches for "numstorage".

Did you mean: mstorage
2007 Nov 26
1
DFS enumeration on a Samba hosted DFS tree.
...num. Basically (this is going to get pretty mangled): result = NetDfsEnum(argv[1],3,MAX_PREFERRED_LENGTH,(LPBYTE *)&root,&numEntries,&hResume); while(result==ERROR_SUCCESS) { for(iterator=1;iterator<=numEntries;iterator++) { info = dfsEntry->Storage; for(numStorage=dfsEntry->NumberOfStorages;numStorage>0;numStorage--) { swprintf_s(buffer,MAX_PATH,L"\\\\%s\\%s\\*",info->ServerName,info->ShareName); hFind = FindFirstFile(buffer,&FindFileData); // If you can list the contents of a UNC, odds are it isn't broken....