ホーム › NetworkManagement.WindowsFilteringPlatform › IKEEXT_CERTIFICATE_AUTHENTICATION0
IKEEXT_CERTIFICATE_AUTHENTICATION0
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| inboundConfigType | IKEEXT_CERT_CONFIG_TYPE | 4 | +0 | +0 | 受信方向の証明書構成種別を示す列挙値。 |
| Anonymous1 | _Anonymous1_e__Union | 8/4 | +8 | +4 | 受信構成の詳細を保持する無名共用体。 |
| outboundConfigType | IKEEXT_CERT_CONFIG_TYPE | 4 | +16 | +8 | 送信方向の証明書構成種別を示す列挙値。 |
| Anonymous2 | _Anonymous2_e__Union | 8/4 | +24 | +12 | 送信構成の詳細を保持する無名共用体。 |
| flags | IKEEXT_CERT_AUTH | 4 | +32 | +16 | 証明書認証の動作を制御するフラグ。 |
共用体: _Anonymous1_e__Union x64 8B / x86 4B
| フィールド | 型 | サイズ | x64 | x86 |
|---|---|---|---|---|
| Anonymous | _Anonymous_e__Struct | 8/4 | +0 | +0 |
| inboundEnterpriseStoreConfig | IKEEXT_CERT_ROOT_CONFIG0* | 8/4 | +0 | +0 |
| inboundTrustedRootStoreConfig | IKEEXT_CERT_ROOT_CONFIG0* | 8/4 | +0 | +0 |
共用体: _Anonymous2_e__Union x64 8B / x86 4B
| フィールド | 型 | サイズ | x64 | x86 |
|---|---|---|---|---|
| Anonymous | _Anonymous_e__Struct | 8/4 | +0 | +0 |
| outboundEnterpriseStoreConfig | IKEEXT_CERT_ROOT_CONFIG0* | 8/4 | +0 | +0 |
| outboundTrustedRootStoreConfig | IKEEXT_CERT_ROOT_CONFIG0* | 8/4 | +0 | +0 |
各言語での定義
#include <windows.h>
// IKEEXT_CERTIFICATE_AUTHENTICATION0 (x64 40 / x86 20 バイト)
typedef struct IKEEXT_CERTIFICATE_AUTHENTICATION0 {
IKEEXT_CERT_CONFIG_TYPE inboundConfigType;
_Anonymous1_e__Union Anonymous1;
IKEEXT_CERT_CONFIG_TYPE outboundConfigType;
_Anonymous2_e__Union Anonymous2;
IKEEXT_CERT_AUTH flags;
} IKEEXT_CERTIFICATE_AUTHENTICATION0;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct IKEEXT_CERTIFICATE_AUTHENTICATION0
{
public int inboundConfigType;
public _Anonymous1_e__Union Anonymous1;
public int outboundConfigType;
public _Anonymous2_e__Union Anonymous2;
public uint flags;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure IKEEXT_CERTIFICATE_AUTHENTICATION0
Public inboundConfigType As Integer
Public Anonymous1 As _Anonymous1_e__Union
Public outboundConfigType As Integer
Public Anonymous2 As _Anonymous2_e__Union
Public flags As UInteger
End Structureimport ctypes
from ctypes import wintypes
class IKEEXT_CERTIFICATE_AUTHENTICATION0(ctypes.Structure):
_fields_ = [
("inboundConfigType", ctypes.c_int),
("Anonymous1", _Anonymous1_e__Union),
("outboundConfigType", ctypes.c_int),
("Anonymous2", _Anonymous2_e__Union),
("flags", wintypes.DWORD),
]#[repr(C)]
pub struct IKEEXT_CERTIFICATE_AUTHENTICATION0 {
pub inboundConfigType: i32,
pub Anonymous1: _Anonymous1_e__Union,
pub outboundConfigType: i32,
pub Anonymous2: _Anonymous2_e__Union,
pub flags: u32,
}import "golang.org/x/sys/windows"
type IKEEXT_CERTIFICATE_AUTHENTICATION0 struct {
inboundConfigType int32
Anonymous1 _Anonymous1_e__Union
outboundConfigType int32
Anonymous2 _Anonymous2_e__Union
flags uint32
}type
IKEEXT_CERTIFICATE_AUTHENTICATION0 = record
inboundConfigType: Integer;
Anonymous1: _Anonymous1_e__Union;
outboundConfigType: Integer;
Anonymous2: _Anonymous2_e__Union;
flags: DWORD;
end;const IKEEXT_CERTIFICATE_AUTHENTICATION0 = extern struct {
inboundConfigType: i32,
Anonymous1: _Anonymous1_e__Union,
outboundConfigType: i32,
Anonymous2: _Anonymous2_e__Union,
flags: u32,
};type
IKEEXT_CERTIFICATE_AUTHENTICATION0 {.bycopy.} = object
inboundConfigType: int32
Anonymous1: _Anonymous1_e__Union
outboundConfigType: int32
Anonymous2: _Anonymous2_e__Union
flags: uint32struct IKEEXT_CERTIFICATE_AUTHENTICATION0
{
int inboundConfigType;
_Anonymous1_e__Union Anonymous1;
int outboundConfigType;
_Anonymous2_e__Union Anonymous2;
uint flags;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; IKEEXT_CERTIFICATE_AUTHENTICATION0 サイズ: 20 バイト(x86)
dim st, 5 ; 4byte整数×5(構造体サイズ 20 / 4 切り上げ)
; inboundConfigType : IKEEXT_CERT_CONFIG_TYPE (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; Anonymous1 : _Anonymous1_e__Union (+4, 4byte) varptr(st)+4 を基点に操作(4byte:入れ子/配列)
; outboundConfigType : IKEEXT_CERT_CONFIG_TYPE (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; Anonymous2 : _Anonymous2_e__Union (+12, 4byte) varptr(st)+12 を基点に操作(4byte:入れ子/配列)
; flags : IKEEXT_CERT_AUTH (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; IKEEXT_CERTIFICATE_AUTHENTICATION0 サイズ: 40 バイト(x64)
dim st, 10 ; 4byte整数×10(構造体サイズ 40 / 4 切り上げ)
; inboundConfigType : IKEEXT_CERT_CONFIG_TYPE (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; Anonymous1 : _Anonymous1_e__Union (+8, 8byte) varptr(st)+8 を基点に操作(8byte:入れ子/配列)
; outboundConfigType : IKEEXT_CERT_CONFIG_TYPE (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; Anonymous2 : _Anonymous2_e__Union (+24, 8byte) varptr(st)+24 を基点に操作(8byte:入れ子/配列)
; flags : IKEEXT_CERT_AUTH (+32, 4byte) st.8 = 値 / 値 = st.8 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global IKEEXT_CERTIFICATE_AUTHENTICATION0
#field int inboundConfigType
#field byte Anonymous1 8
#field int outboundConfigType
#field byte Anonymous2 8
#field int flags
#endstruct
stdim st, IKEEXT_CERTIFICATE_AUTHENTICATION0 ; NSTRUCT 変数を確保
st->inboundConfigType = 100
mes "inboundConfigType=" + st->inboundConfigType
; ※union フィールドは byte 列で確保(NSTRUCT は union 非対応)。必要に応じ手動でアクセス。