Checks to see whether a site with the specified name exists.
Syntax
DWORD WpDoesSiteExist( LPTSTR szSiteName, BOOL pbSiteExists );
Parameters
- szSiteName
- Posting site name.
- pbSiteExists
- Returned as TRUE if site exists, or FALSE otherwise.
Return Value
Returns one of the following values:
NO_ERROR Successful. E_INVALIDARG One of the arguments is invalid. WEBPOST_ERROR_INIT_FAILED An error occurred while attempting to initialize the Web Publishing API DLL.
Example
The following example shows how to call the WpDoesSiteExist function to see whether a site named site1 exists.
{ HRESULT hResult = NOERROR; BOOL b; hResult = WpDoesSiteExist("site1",&b); }
Function Information
Windows NT Use version 4.0 and later Windows Use Windows 95 and later Header Declared in Wpapi.h Import Library Link with WebPost.lib Minimum availability Internet Explorer 4.0