HTTP_SERVICE_CONFIG_TIMEOUT_SET structure

The HTTP_SERVICE_CONFIG_TIMEOUT_SET structure is used to set the HTTP Server API wide timeout value.

Syntax


typedef struct {
  HTTP_SERVICE_CONFIG_TIMEOUT_KEY   KeyDesc;
  HTTP_SERVICE_CONFIG_TIMEOUT_PARAM ParamDesc;
} HTTP_SERVICE_CONFIG_TIMEOUT_SET, *PHTTP_SERVICE_CONFIG_TIMEOUT_SET;

Members

KeyDesc

A member of the HTTP_SERVICE_CONFIG_TIMEOUT_KEY enumeration identifying the timer that is set.

ParamDesc

The value, in seconds, for the timer. The value must be greater than zero.

Remarks

An instance of the HTTP_SERVICE_CONFIG_TIMEOUT_SET structure is used to pass data in to the HTTPSetServiceConfiguration function through the pConfigInformation parameter or to retrieve data from the HTTPQueryServiceConfiguration function through the pOutputConfigInformation parameter when the ConfigId parameter of either function is equal to HttpServiceConfigTimeout.

Querying the existing value of an HTTP Server API wide timeout does not require administrative privileges. Setting the value, however, does require administrative privileges.

When the HTTP Server API wide timeout value is set with HTTPSetServiceConfiguration, the setting persists when the HTTP service is stopped and restarted. The timeout value is applied to all the HTTP Server API applications on the machine.

The HTTP Server API timeout value is deleted by calling HTTPDeleteServiceConfiguration with the ConfigId parameter set to HttpServiceConfigTimeout and the pConfigInformation parameter pointing to the HTTP_SERVICE_CONFIG_TIMEOUT_SET structure. When a timer value is deleted, the persistent setting goes away, and HTTP Server API uses its hardcoded defaults.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Http.h

See also

HTTP Server API Version 2.0 Structures
HTTPSetServiceConfiguration
HTTPQueryServiceConfiguration
HTTPDeleteServiceConfiguration

 

 

Show: