NetDfsManagerInitialize function

[This function is obsolete. You can use the Service Functions instead.]

Reinitializes the Distributed File System (DFS) service (DfsSvc.exe) on the specified server.

Syntax

NET_API_STATUS NetDfsManagerInitialize(
  _In_       LPWSTR ServerName,
  _Reserved_ DWORD  Flags
);

Parameters

  • ServerName [in]
    Pointer to a string that specifies the name of the server where the DFS service is to be reinitialized. This parameter is required.

  • Flags
    This parameter is reserved and must be zero.

Return value

If the function succeeds, the return value is NERR_Success.

If the function fails, the return value is a system error code. For a list of error codes, see System Error Codes.

Remarks

The caller must have Administrator privilege on the DFS server. For more information about calling functions that require administrator privileges, see Running with Special Privileges.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003

End of client support

None supported

End of server support

Windows Server 2003

Header

LmDfs.h (include LmDfs.h or Lm.h)

Library

Netapi32.lib

DLL

Netapi32.dll

See also

Network Management Overview

Network Management Functions

Distributed File System (DFS) Functions