Adding a Local Site (AddLocalSite)

Use the ICISites interface AddLocalSite method to create a new unauthenticated Site and retrieve the Site's ICISite interface.

Signature:

HRESULT AddLocalSite(

[in] BSTR bstrName,

[in] BSTR bstrRootFolder,

[in] BSTR bstrFilePath,

[in] int nIP,

[in] UINT nPort,

[in] VARIANT_BOOL bCreateHomeFolder,

[in] VARIANT_BOOL bPermHomeFolder,

[in] VARIANT_BOOL bAutoStart,

[out, retval] ICISite** prop);

Parameters

Definition

bstrName

New site name

bstrRootFolder

Site root folder

bstrFilePath

Path to the file that will contain user data

nIP

Index of the site IP address

nPort

Port number of the site

bCreateHomeFolder

TRUE means that a home folder for new site users should be created

bPermHomeFolder

TRUE means that new site users should be granted full permissions in their home folders

bAutoStart

TRUE means that the site should start automatically