[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;
}
}
<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
None.
None.