Click to return to the Web Content Management home page    
WpDeleteSite Function     WpEnumProviders Function     Web Publishing Programmer...    
Web Workshop  |  Web Content Management

WpDoesSiteExist Function


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_ERRORSuccessful.
E_INVALIDARGOne of the arguments is invalid.
WEBPOST_ERROR_INIT_FAILEDAn 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 NTUse version 4.0 and later
WindowsUse Windows 95 and later
HeaderDeclared in Wpapi.h
Import LibraryLink with WebPost.lib
Minimum availabilityInternet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.