Contents Index Topic Contents | ||
Previous Topic: WpGetErrorString Next Topic: WpPost |
WpListSites
DWORD WpListSites( [in, out] LPDWORD pdwSitesBufLen [out] LPWPSITEINFO pSitesBuffer [out] LPDWORD pdwNumSites );Retrieves the list of all sites about which Web Publishing currently has information.
- Returns NO_ERROR if successful. Otherwise, returns an error code, which may be one of the following:
E_INVALIDARG E_OUTOFMEMORY WEBPOST_ERROR_INIT_FAILED WEBPOST_ERROR_SITE_CORRUPT WEBPOST_ERROR_LIST_SITES More information about these error codes can be found in Appendix B, Error Codes.
- 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 or not pdwSitesBuffer is NULL or points to a large enough buffer.
Examples
C/C=++{ HRESULT hResult = NOERROR; DWORD BufLen; DWORD Num; hResult = WpListSites(&BufLen, NULL, &Num); }
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.