vtiOpenWeb

C++: BOOL vtiOpenWeb(LPCTSTR pszServer, LPCTSTR pszWebName, 
   LPCTSTR pszUser);
VB: vtiOpenWeb(Server as String, WebName as String, User as String) as Integer

Description

This method will start to open a given web on a given HTTP server, optionally using an HTTP proxy server, with the given username. The user will still have to provide the password by typing it into the FrontPage Explorer’s authorization dialog box.

This call blocks until the web is opened in the Explorer (unless an error occurs).

Return Value

The return value is true (non-zero) if the web is opened, and false (zero) if not.

Parameters

Server is the designation for the web server. It can include a file:// or http:// or https:// prefix. If no prefix is provided, http:// is assumed. If a file path like C:\ is provided, the

file:// prefix is assumed. Examples: “http://www.microsoft.com”, “http://microsoft:8080”.

WebName is the name of the desired web on the server, or the empty string for the Root Web. No inital slash is required for subwebs. Example: “myweb”.

User holds the name of an Administrator or Author in the target web, or the empty string if the user should type in both the username and password.