WpCreateSiteWpCreateSite*
*Contents  *Index  *Topic Contents
*Previous Topic: WpBindToSite
*Next Topic: WpCreateSiteEx

WpCreateSite

DWORD WpCreateSite(
	[in, string]	LPTSTR	szSiteName
	[in, string]	LPTSTR	szSiteLocalBaseDir
	[in, string]	LPTSTR	szSiteURL
	[in, string]	LPTSTR	szProviderCLSID
	[in]		DWORD	dwFlags
	);

Creates a new site in the registry.

szSiteName
Posting site name.
szSiteLocalBaseDir
Optional. Local base directory for the site. If NULL, then the local base directory feature is not used for the site.
szSiteURL
Posting site URL.
szProviderCLSID
Optional. CLSID as string, of the provider that will handle this site. If NULL, then this method will search for a posting information (postinfo) file or attempt to auto-bind to an appropriate provider.
dwFlags
Optional.
WPF_USE_PROVIDER_PASSED If WpCreateSite has been called and returned WEBPOST_ERROR_PROV_NOT_IN_POSTINFO, use this flag to have WpCreateSiteExuse the provider specified in szProviderCLSID even if there is a postinfo file and it does not list this provider.

Examples
C/C++

{
	HRESULT hResult = NOERROR;

	hResult = WpCreateSite("site1", NULL, "http://site1", NULL, 0);
}

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