Contents Index Topic Contents | ||
Previous Topic: WpCreateSiteEx Next Topic: WpDoesSiteExist |
WpDeleteSite
DWORD WpDeleteSite( [in, string] LPTSTR szSiteName );Deletes a site from the registry.
- Returns NO_ERROR if successful. Otherwise, returns an error code, which may be one of the following:
E_INVALIDARG WEBPOST_ERROR_INIT_FAILED WEBPOST_ERROR_SITE_DOESNOTEXIST WEBPOST_ERROR_PROV_EP WEBPOST_ERROR_DELETE_SITE WEBPOST_ERROR_EXTENDED_ERROR WEBPOST_ERROR_NO_EXT_ERROR_INFO More information about these error codes can be found in Appendix B, Error Codes.
- szSiteName
- Posting site name.
WpDeleteSite calls WppDeleteSite on the provider that owns the specified site.
Examples
C/C=++{ HRESULT hResult = NOERROR; hResult = WpDeleteSite("site1"); }
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.