220.127.116.11 NetrDfsManagerReportSiteInfo (Opnum 52)
The NetrDfsManagerReportSiteInfo method obtains a list of names that SHOULD<165> correspond to the Active Directory sites covered by the specified server. An implementation MAY<166> choose to support this method.
NET_API_STATUS NetrDfsManagerReportSiteInfo( [in, string, unique] SRVSVC_HANDLE ServerName, [in, out, unique] LPDFS_SITELIST_INFO* ppSiteInfo );
ppSiteInfo: A pointer to an LPDFS_SITELIST_INFO structure, which in turn points to the location of a DFS_SITELIST_INFO structure in which the information is returned.
Return Values: The method returns 0x00000000 (NERR_Success) to indicate success; otherwise, it returns a nonzero error code. The method can take any specific error code value, as specified in [MS-ERREF] section 2.2.
The ppSiteInfo parameter is a pointer to a LPDFS_SITELIST_INFO member, which in turn points to the location of a DFS_SITELIST_INFO structure in which the information is returned. That structure has a cSites member that the server SHOULD set to the number of sites returned. The information about the sites themselves MUST be returned in the Site member, which is an array of DFS_SITENAME_INFO structures. The sites the server returns are implementation-specific.<167>
The server MAY<168> enforce security measures to verify that the caller has the required permissions to execute this call. If the server enforces these security measures and the caller does not have the required credentials, the server SHOULD<169> fail the call.