Displaying 1 result from an estimated 1 matches for "dfsentry".
Did you mean:
fsentry
2007 Nov 26
1
DFS enumeration on a Samba hosted DFS tree.
...ing the Win32 API function NetDfsEnum.
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,...