IHttpServer::RegisterFileChangeMonitor 方法

为特定目录注册文件更改通知。

语法

virtual HRESULT RegisterFileChangeMonitor(  
   PCWSTR pszPath,  
   HANDLE hToken,  
   IHttpFileMonitor** ppFileMonitor  
) = 0;  

parameters

pszPath
要监视的目录路径。

hToken
用于监视注册的可选令牌。

ppFileMonitor
不再需要时应释放的监视对象。 此操作可能会停止文件更改监视。

返回值

HRESULT。

备注

要求

类型 说明
客户端 - Windows Vista 上的 IIS 7.0
- Windows 7 上的 IIS 7.5
- Windows 8 上的 IIS 8.0
- Windows 10 上的 IIS 10.0
服务器 - Windows Server 2008 上的 IIS 7.0
- Windows Server 2008 R2 上的 IIS 7.5
- Windows Server 2012 上的 IIS 8.0
- Windows Server 2012 R2 上的 IIS 8.5
- Windows Server 2016 上的 IIS 10.0
产品 - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0
- IIS Express 7.5、IIS Express 8.0、IIS Express 10.0
Header Httpserv.h