Platform SDK: Network Management

NetReplGetInfo

The NetReplGetInfo function retrieves configuration information for the file replicator service.

Security Requirements

No special group membership is required to successfully execute the NetReplGetInfo function.

NET_API_STATUS NetReplGetInfo(
  LPCWSTR servername,  
  DWORD level,         
  LPBYTE *bufptr       
);

Parameters

servername
[in] Pointer to a constant null-terminated Unicode string specifying the name of the remote server on which the function is to execute. The string must begin with \\. If this parameter is NULL, the local computer is used.
level
[in] Specifies the information level of the data. This parameter can be the following value.
Value Meaning
0 Return configuration information for the file replicator service. The bufptr parameter points to a REPL_INFO_0 structure.

bufptr
[out] Pointer to the buffer that receives the data. The format of this data depends on the value of the level parameter. This buffer is allocated by the system and must be freed using the NetApiBufferFree function.

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

You can call the NetReplSetInfo function to modify configuration information for the file replicator service.

Requirements

  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.

See Also

Network Management Overview, Network Management Functions, Replicator Functions, NetReplSetInfo, REPL_INFO_0