Platform SDK: Network Management |
The NetReplImportDirGetInfo function retrieves status information for a replicated directory on an import server.
No special group membership is required to successfully execute the NetReplImportDirGetInfo function.
NET_API_STATUS NetReplImportDirGetInfo( LPCWSTR servername, LPCWSTR dirname, DWORD level, LPBYTE *bufptr );
Value | Meaning |
---|---|
0 | Return the import subdirectory name. The bufptr parameter points to a REPL_IDIR_INFO_0 structure. |
1 | Return the import subdirectory name, status, and locking information. The bufptr parameter points to a REPL_IDIR_INFO_1 structure. |
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.
The status information for a directory consists of its replication state, the UNC computer name of the master, and the time (in seconds since 00:00:00, January 1, 1970, GMT) when the directory was last updated. For a complete description of this information, see REPL_IDIR_INFO_1.
Windows NT/2000: Requires Windows NT 4.0 or earlier.
Windows 95/98: Unsupported.
Header: Declared in Lmrepl.h; include Lm.h.
Library: Use Netapi32.lib.
Network Management Overview, Network Management Functions, Replicator Functions, NetReplImportDirEnum, REPL_IDIR_INFO_0, REPL_IDIR_INFO_1