[This is preliminary documentation and subject to change.]
The NetDfsEnum function enumerates all the junction points in the named Distributed File System (Dfs) tree structure. The function returns information about the junction points based on information specified by the Level parameter.
NET_API_STATUS NET_API_FUNCTION NetDfsEnum(
LPWSTR DfsName, |
// name of the Dfs for enumeration |
DWORD Level, |
// level of information requested |
DWORD PrefMaxLen, |
// advisory, but - 1 means return all information |
LPBYTE* Buffer, |
// function allocates and returns buffer with requested info |
LPDWORD EntriesRead, |
// number of entries returned |
LPDWORD ResumeHandle |
// must be 0 on first call, reused on subsequent calls |
); |
Value |
Meaning |
1 |
Return Dfs junction point names. The Buffer parameter will contain an array of DFS_INFO_1 structures. |
2 |
Return Dfs junction point names with information. The Buffer parameter will contain an array of DFS_INFO_2 structures. |
3 |
Return Dfs junction point names with information, and share information. The Buffer parameter will contain an array of DFS_INFO_3 structures. |
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value is a Win32 API error code. For a list of error codes, see Error Codes.
Call the NetDfsEnum function with the ResumeHandle parameter set to zero to begin the enumeration. To retrieve information about additional junction points, call the function with the ResumeHandle returned by the previous call to NetDfsEnum.
The NetDfsEnum function allocates the memory required for the information structure buffer. If you specify an amount in the PrefMaxLen parameter, it restricts the number of bytes that the function returns. However, the actual size of the memory that the NetDfsEnum function allocates can be greater than the amount you specify. For additional information see Enumeration Buffer Lengths.
You can use the PrefMaxLen value for performance tuning. For example, if you call the function to fill a list box, and the list box can hold only 10 entries, a reasonable value for PrefMaxLen might be 12 * sizeof(DFS_INFO_n).
DFS_INFO_1, DFS_INFO_2, DFS_INFO_3, DFS_STORAGE_INFO, NetDfsAdd, NetDfsRemove
file: /Techref/os/win/api/win32/func/src/f59_17.htm, 6KB, , updated: 2000/4/7 11:19, local time: 2024/11/24 20:29,
3.137.159.17:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/os/win/api/win32/func/src/f59_17.htm"> NetDfsEnum</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.