| |
| INT WINAPI HttpGetClientDirectory( |
| |
HSERVER hServer, |
|
| |
UINT nClientId, |
|
| |
LPTSTR lpszDirectory, |
|
| |
INT nMaxLength |
|
| ); |
Returns the root document directory for the specified client
session.
Parameters
- hServer
- The server handle.
- nClientId
- An unsigned integer which uniquely identifies the client
session.
- lpszDirectory
- A null-terminated string buffer that will contain the root directory for the specified client session, terminated with
a null character. This buffer should be at least MAX_PATH characters
in length. This parameter cannot be NULL.
- nMaxLength
- An integer value that specifies the maximum number of characters
that can be copied into the string buffer, including the terminating
null character. This value must be larger than zero or the function
will fail.
Return Value
If the function succeeds, the return value is the number of
characters copied into the string buffer, not including the
terminating null character. If the
server handle and client ID do not specify a valid client session,
the function will return zero.
Remarks
This function returns the full path to the root document directory
for the specified client session. If no virtual hosts have been
configured, then this path will be the same as the root directory
assigned to the server when it was started. If the server has been
configured with multiple virtual hosts, this function will return the
path to the root directory associated with the hostname provided by
the client.
To convert a full path to the virtual path for a specific client
session, use the HttpGetClientVirtualPath function.
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
|
|