CHttpServer::DeleteVirtualPath Method  
 
BOOL DeleteVirtualPath(
  UINT nHostId,  
  LPCTSTR lpszVirtualPath  
);

Remove a virtual path from the specified host.

Parameters

nHostId
An integer value which identifies the virtual host.
lpszVirtualPath
A null-terminated string which specifies the virtual path that will be removed. This path must be absolute and cannot be a NULL pointer or an empty string.

Return Value

If the method succeeds, the return value is non-zero. If the virtual host ID does not specify a valid host, the method will return zero. If the method fails, the last error code will be updated to indicate the cause of the failure.

Remarks

This method removes a virtual path that was created by a previous call to the AddVirtualPath method.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: cshtsv11.lib
Unicode: Implemented as Unicode and ANSI versions

See Also

AddVirtualHost, AddVirtualPath, GetClientLocalPath, GetClientVirtualPath