| BOOL SetDirectory( |
| |
LPCTSTR lpszDirectory |
|
| ); |
Specify the local directory that will be used as the server root
directory.
Parameters
- lpszDirectory
- A null-terminated string that specifies the root
directory for the server. If this parameter is NULL or a zero-length
string, the server will use the current working directory as the
root directory.
Return Value
If the method succeeds, the return value is non-zero. If the method
fails, it will return zero.
Remarks
The SetDirectory method specifies the path to the
local directory that should be used as the root document directory for
the server.
You cannot change the server root
directory after the server has started. To change the root directory,
you must stop the server using the Stop method and
then start another instance of the server with a configuration that
specifies the new directory.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cshtsv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|