HTTPAPI_VERSION (Structures)
Last changed: 65.54.188.149

.
Summary
The HTTPAPI_VERSION structure defines the version of the HTTP API. This is not to be confused with the version of the HTTP protocol being used, which is stored in an HTTP_VERSION structure.

C# Definition:

[StructLayout(LayoutKind.Sequential, Pack = 2)]
struct HTTPAPI_VERSION
{
     public ushort HttpApiMajorVersion;
     public ushort HttpApiMinorVersion;

     public HTTPAPI_VERSION(ushort majorVersion, ushort minorVersion)
     {
     HttpApiMajorVersion = majorVersion;
     HttpApiMinorVersion = minorVersion;
     }
}

VB Definition:

<StructLayout(LayoutKind.Sequential, Pack:=2)> _
Public Structure HTTPAPI_VERSION
    Public HttpApiMajorVersion As UInt16
    Public HttpApiMinorVersion As UInt16

    Public Sub New(ByVal majorVersion As UInt16, ByVal minorVersion As UInt16)
        HttpApiMajorVersion = majorVersion
        HttpApiMinorVersion = minorVersion
    End Sub
End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation