WpListSitesWpListSites*
*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.

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);
}

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.