Export (0) Print
Expand All

PFN_WEB_CORE_SHUTDOWN Function

IIS 7.0

Shuts down an instance of the Hosted Web Core.

typedef HRESULT (*PFN_WEB_CORE_SHUTDOWN)(
   IN DWORD fImmediate
);

fImmediate

A DWORD that specifies whether the shutdown should be immediate or graceful.

An HRESULT. Possible values include, but are not limited to, those in the following table.

Value

Description

S_OK

Indicates that the operation was successful.

ERROR_SERVICE_NOT_ACTIVE

Indicates that the Hosted Web Core is not running.

ERROR_INVALID_SERVICE_CONTROL

Indicates that a shutdown is already in progress.

ERROR_SERVICE_REQUEST_TIMEOUT

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.

Type

Description

Client

  • IIS 7.0 on Windows Vista

  • IIS 7.5 on Windows 7

  • IIS Express 7.5 on Windows XP, Windows Vista, Windows 7

  • IIS 8.0 on Windows 8 Client

Server

  • IIS 7.0 on Windows Server 2008

  • IIS 7.5 on Windows Server 2008 R2

  • IIS Express 7.5 on Windows Server 2003, Windows Server 2008, Windows Server 2008 R2

  • IIS 8.0 on Windows Server 2012

Product

IIS 7.0, IIS 7.5, IIS Express 7.5, IIS 8.0

Header

Hwebcore.h

Community Additions

ADD
Show:
© 2014 Microsoft