Partager via


2.2.2.6 DFS_STORAGE_INFO_1

The DFS_STORAGE_INFO_1 structure relates to the NetrDfsEnum, NetrDfsEnumEx, and NetrDfsGetInfo methods when used to enumerate DFS links and targets in a namespace or to get information about a DFS link. The structure contains data about a DFS target, including the host name and share name, as well as the target state and priority. For more information on prioritization, see section 2.2.2.7.

The DFS_STORAGE_INFO_1 structure has the following format.

 typedef struct _DFS_STORAGE_INFO_1 {
   unsigned long State;
   [string] WCHAR* ServerName;
   [string] WCHAR* ShareName;
   DFS_TARGET_PRIORITY TargetPriority;
 } DFS_STORAGE_INFO_1,
  *PDFS_STORAGE_INFO_1,
  *LPDFS_STORAGE_INFO_1;

State: Refers to the State field of DFS_INFO_106. For more information, see section 2.2.4.6.

ServerName: A pointer to a null-terminated Unicode string containing the DFS target host name.

ShareName: A pointer to a null-terminated Unicode string containing the DFS target share name.

TargetPriority: A DFS_TARGET_PRIORITY structure containing the priority class and priority rank.