please dont rip this site Prev Next

NetDfsEnum info  Overview  Group

[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

   );

Parameters

DfsName 
[in] Pointer to a null-terminated Unicode character string that specifies the name of a Windows NT server that hosts the Dfs root volume.
Level
[in] Specifies the information level of the request. This parameter can be one of the following values.

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.

PrefMaxLen 
[in] Specifies the preferred maximum number of bytes that should be returned by this enumeration function call in the information structure buffer. If you specify the value - 1, the NetDfsEnum function determines the number of bytes to return based on the information available. For additional information, see the following Remarks section.
Buffer 
[out] Pointer to the address of a buffer that contains the requested information structures.
EntriesRead 
[out] Pointer to a DWORD value that contains the actual enumerated junction point count.
ResumeHandle 
[in/out] Pointer to a DWORD value that contains a handle that is used to continue the enumeration. The handle should be zero on the first call and left unchanged for subsequent calls.

Return Values

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.

Remarks

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).

See Also

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 12:19, local time: 2024/3/28 09:08,
TOP NEW HELP FIND: 
3.236.214.123: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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.sxlist.com/techref/os/win/api/win32/func/src/f59_17.htm"> NetDfsEnum</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 

Welcome to www.sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .