c++建立虚拟站点

发表于:2008-04-24来源:作者:点击数: 标签:
关键字:c++

BOOL FO_CreateVirtualSite(LPCTSTR lpszVirtualDirName,LPCTSTR lpszDiskPath,LPCTSTR lpszSitePath)
{
 IADsContainer* iContainer;
 IADs* iAds;
 /* 获得WebSever */
 if(ADsGetObject(L"IIS://localhost/",IID_IADsContainer,(void**)&iContainer)==S_OK)
 {
 // LONG g=0;
 // iContainer->get__NewEnum
// iContainer->get_Count(&g);

原文转自:http://www.ltesting.net