Edit

Share via


HTTPAPI_EQUAL_VERSION macro (http.h)

The HTTPAPI_EQUAL_VERSION returns a non-zero value if an HTTPAPI_VERSION structure is exactly equal to a specified major/minor version combination, or zero otherwise.

Syntax

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

Parameters

version

The HTTPAPI_VERSION structure to be examined.

major

The major portion of the version to be compared.

minor

The 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 whether the version combination passed in the major and minor parameters is exactly equal to the value of the version parameter.

Requirements

Requirement Value
Target Platform Windows
Header http.h

See also

HTTP Server API Version 1.0 Macros