Sets the document root directory for the internal web server.
This directory is considered the root directory (i.e. "/") of the web server.
This function also activates or deactivates the web server. To disable the web server, pass
NULL for rootDir; to activate, pass a valid directory string.
- This function is not available when the web server is not compiled into the UPnP Library.
- An integer representing one of the following:
UPNP_E_SUCCESS: The operation completed successfully.
UPNP_E_INVALID_ARGUMENT: rootDir is an invalid directory.
[in] Path of the root directory of the web server. |