Click to return to the Web Content Management home page    
WpGetErrorString Function     WpPost Function     Web Publishing Programmer...    
Web Workshop  |  Web Content Management

WpListSites Function


Retrieves the list of all sites about which Web Publishing currently has information.

Syntax

DWORD WpListSites(
    LPDWORD pdwSitesBufLen,
    LPWPSITEINFO pSitesBuffer,
    LPDWORD pdwNumSites
);

Parameters

pdwSitesBufLen
Size, in bytes, of pSitesBuffer. On return, contains the actual number of bytes used in pSitesBuffer. If pSitesBuffer is NULL or too small to hold all the sites, this parameter shows the necessary size of the buffer to allocate.
pSitesBuffer
Receives an array of WPSITEINFO structures.
pdwNumSites
Number of sites. This value is set whether pdwSitesBuffer is NULL or points to a large enough buffer.

Return Value

Returns one of the following values:

NO_ERRORSuccessful.
E_INVALIDARGOne of the arguments is invalid.
E_OUTOFMEMORYNot enough memory to retrieve the list of sites about which Web Publishing currently has information.
WEBPOST_ERROR_INIT_FAILEDAn error occurred while attempting to initialize the Web Publishing API DLL.
WEBPOST_ERROR_LIST_SITESAn error occurred while the Web Publishing API was enumerating the sites on this system.
WEBPOST_ERROR_SITE_CORRUPTThe Web Publishing API could not retrieve all of the required site information.

Example

The following example demonstrates how to call the WpListSites function to retrieve a list of sites about which Web Publishing currently has information.

{
    HRESULT hResult = NOERROR;
    DWORD BufLen;
    DWORD Num;

    hResult = WpListSites(&BufLen, NULL, &Num);
}

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.