I-edit

Ibahagi sa


HTTP_EQUAL_VERSION macro (http.h)

The HTTP_EQUAL_VERSION macro returns a non-zero value if an HTTP_VERSION structure is equal to a specified major/minor version combination, or zero otherwise.

Syntax

int HTTP_EQUAL_VERSION(
    HTTP_VERSION version,
    USHORT major,
    USHORT minor
);

Parameters

version

The HTTP_VERSION structure to be examined.

major

A major portion of the version to be compared.

minor

A minor portion of the version to be compared.

Return value

Type: int

Returns an integer that is either zero (false) or non-zero (true), that indicates if the version combination, passed in the major and minor parameters is, exactly equal to the value of the version parameter.

Requirements

Requirement Value
Minimum supported client Windows Vista, Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header http.h

See also

HTTP Server API Version 1.0 Macros