Notifies the listener adapter that an application configured for the listener associated with this listener adapter has been created. The listener adapter can choose whether to configure this application with the listener.
typedef VOID(* PFN_WEBHOST_LISTENER_APPLICATION_CREATED)( IN VOID* pContext, IN LPCWSTR AppKey, IN LPCWSTR Path, IN DWORD SiteId, IN LPCWSTR AppPoolId, IN PBYTE Bindings, IN DWORD NumberOfBindings, IN BOOL RequestsBlocked );
[IN] A pointer to a
VOID context that the listener adapter passed to WebhostRegisterProtocol.
[IN] A pointer to a string that contains the key for finding the application domain.
[IN] A pointer to a string that contains the URL minus the bindings.
DWORD that contains the site identifier under which the application runs.
[IN] A pointer to a string that contains the application pool to which this application should be routed.
[IN] A pointer to a
BYTE value that contains a collection of binding information that is used with the path to make up the URLs for this application.
DWORD that contains the number of bindings in the
true to notify the listener adapter to listen on this application but not process requests on an unsupported protocol;
false to send requests to parent applications when the child does not support the protocol.
You should save the
AppKey parameter with the application so it can be passed to the process protocol handler. The process protocol handler will inform the protocol manager to launch the application domain specified in
PBYTE is declared in the WinDef.h header file.
The Windows Process Activation Service (WAS) calls this function asynchronously and does not wait for the completion of the notification.
|Client||- IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
|Server||- IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016 Technical Preview
|Product||- 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