Shuts down an instance of the Hosted Web Core.
An HRESULT. Possible values include, but are not limited to, those in the following table.
Indicates that the operation was successful.
Indicates that the Hosted Web Core is not running.
Indicates that a shutdown is already in progress.
Indicates that a graceful shutdown was requested but was not able to complete in the time period specified by the ShutdownTimeLimit setting in the configuration file.
The PFN_WEB_CORE_SHUTDOWN function is a prototype for the WebCoreShutdown DLL entry point in Hwebcore.dll that is used to shut down the Hosted Web Core. The hosting process may choose to shut down the Hosted Web Core either gracefully or immediately. If the hosting process chooses a graceful shutdown, the Hosted Web Core will stop receiving new requests and wait for any currently executing requests to finish based on the time period specified by the ShutdownTimeLimit setting in the configuration file for the application pool.
IIS 7.0, IIS 7.5, IIS Express 7.5, IIS 8.0