PFN_WEBHOST_LISTENER_APPLICATION_POOL_STATE_CHANGED 函数

通知侦听器适配器应用程序池的状态已更改。

语法

typedef VOID(* PFN_WEBHOST_LISTENER_APPLICATION_POOL_STATE_CHANGED)(  
   IN VOID* pContext,  
   IN LPCWSTR AppPoolId,  
   IN BOOL fIsEnabled  
);  

parameters

pContext
[IN]指向侦听器适配器传递给 WebhostRegisterProtocol 的上下文的指针VOID

AppPoolId
[IN]指向包含状态已更改的应用程序池的字符串的指针。

fIsEnabled
[IN] true 指示已启用应用程序池;否则为 false

返回值

VOID.

注解

当应用程序池状态从 enabled 更改为 disabled 或从 disabled 更改为 enabled 时,会发生此通知。

Windows 进程激活服务 (WAS) 异步调用此函数,并且不会等待通知完成。

要求

类型 说明
客户端 - 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 Listeneradapter.h

另请参阅

侦听器适配器回调函数
WebhostRegisterProtocol 函数