Win32 API 日本語リファレンス
ホームNetworkManagement.NetManagement › AE_GENERIC

AE_GENERIC

構造体
サイズx64: 48 バイト / x86: 48 バイト

サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。

フィールド

フィールドサイズx64x86説明
ae_ge_msgfileDWORD4+0+0メッセージを格納するメッセージファイルの識別子を示す。
ae_ge_msgnumDWORD4+4+4メッセージファイル内のメッセージ番号を示す。
ae_ge_paramsDWORD4+8+8メッセージに渡されるパラメータの個数を示す。
ae_ge_param1DWORD4+12+12メッセージ整形用パラメータ1へのオフセットまたは値を示す。
ae_ge_param2DWORD4+16+16メッセージ整形用パラメータ2へのオフセットまたは値を示す。
ae_ge_param3DWORD4+20+20メッセージ整形用パラメータ3へのオフセットまたは値を示す。
ae_ge_param4DWORD4+24+24メッセージ整形用パラメータ4へのオフセットまたは値を示す。
ae_ge_param5DWORD4+28+28メッセージ整形用パラメータ5へのオフセットまたは値を示す。
ae_ge_param6DWORD4+32+32メッセージ整形用パラメータ6へのオフセットまたは値を示す。
ae_ge_param7DWORD4+36+36メッセージ整形用パラメータ7へのオフセットまたは値を示す。
ae_ge_param8DWORD4+40+40メッセージ整形用パラメータ8へのオフセットまたは値を示す。
ae_ge_param9DWORD4+44+44メッセージ整形用パラメータ9へのオフセットまたは値を示す。

各言語での定義

#include <windows.h>

// AE_GENERIC  (x64 48 / x86 48 バイト)
typedef struct AE_GENERIC {
    DWORD ae_ge_msgfile;
    DWORD ae_ge_msgnum;
    DWORD ae_ge_params;
    DWORD ae_ge_param1;
    DWORD ae_ge_param2;
    DWORD ae_ge_param3;
    DWORD ae_ge_param4;
    DWORD ae_ge_param5;
    DWORD ae_ge_param6;
    DWORD ae_ge_param7;
    DWORD ae_ge_param8;
    DWORD ae_ge_param9;
} AE_GENERIC;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct AE_GENERIC
{
    public uint ae_ge_msgfile;
    public uint ae_ge_msgnum;
    public uint ae_ge_params;
    public uint ae_ge_param1;
    public uint ae_ge_param2;
    public uint ae_ge_param3;
    public uint ae_ge_param4;
    public uint ae_ge_param5;
    public uint ae_ge_param6;
    public uint ae_ge_param7;
    public uint ae_ge_param8;
    public uint ae_ge_param9;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure AE_GENERIC
    Public ae_ge_msgfile As UInteger
    Public ae_ge_msgnum As UInteger
    Public ae_ge_params As UInteger
    Public ae_ge_param1 As UInteger
    Public ae_ge_param2 As UInteger
    Public ae_ge_param3 As UInteger
    Public ae_ge_param4 As UInteger
    Public ae_ge_param5 As UInteger
    Public ae_ge_param6 As UInteger
    Public ae_ge_param7 As UInteger
    Public ae_ge_param8 As UInteger
    Public ae_ge_param9 As UInteger
End Structure
import ctypes
from ctypes import wintypes

class AE_GENERIC(ctypes.Structure):
    _fields_ = [
        ("ae_ge_msgfile", wintypes.DWORD),
        ("ae_ge_msgnum", wintypes.DWORD),
        ("ae_ge_params", wintypes.DWORD),
        ("ae_ge_param1", wintypes.DWORD),
        ("ae_ge_param2", wintypes.DWORD),
        ("ae_ge_param3", wintypes.DWORD),
        ("ae_ge_param4", wintypes.DWORD),
        ("ae_ge_param5", wintypes.DWORD),
        ("ae_ge_param6", wintypes.DWORD),
        ("ae_ge_param7", wintypes.DWORD),
        ("ae_ge_param8", wintypes.DWORD),
        ("ae_ge_param9", wintypes.DWORD),
    ]
#[repr(C)]
pub struct AE_GENERIC {
    pub ae_ge_msgfile: u32,
    pub ae_ge_msgnum: u32,
    pub ae_ge_params: u32,
    pub ae_ge_param1: u32,
    pub ae_ge_param2: u32,
    pub ae_ge_param3: u32,
    pub ae_ge_param4: u32,
    pub ae_ge_param5: u32,
    pub ae_ge_param6: u32,
    pub ae_ge_param7: u32,
    pub ae_ge_param8: u32,
    pub ae_ge_param9: u32,
}
import "golang.org/x/sys/windows"

type AE_GENERIC struct {
	ae_ge_msgfile uint32
	ae_ge_msgnum uint32
	ae_ge_params uint32
	ae_ge_param1 uint32
	ae_ge_param2 uint32
	ae_ge_param3 uint32
	ae_ge_param4 uint32
	ae_ge_param5 uint32
	ae_ge_param6 uint32
	ae_ge_param7 uint32
	ae_ge_param8 uint32
	ae_ge_param9 uint32
}
type
  AE_GENERIC = record
    ae_ge_msgfile: DWORD;
    ae_ge_msgnum: DWORD;
    ae_ge_params: DWORD;
    ae_ge_param1: DWORD;
    ae_ge_param2: DWORD;
    ae_ge_param3: DWORD;
    ae_ge_param4: DWORD;
    ae_ge_param5: DWORD;
    ae_ge_param6: DWORD;
    ae_ge_param7: DWORD;
    ae_ge_param8: DWORD;
    ae_ge_param9: DWORD;
  end;
const AE_GENERIC = extern struct {
    ae_ge_msgfile: u32,
    ae_ge_msgnum: u32,
    ae_ge_params: u32,
    ae_ge_param1: u32,
    ae_ge_param2: u32,
    ae_ge_param3: u32,
    ae_ge_param4: u32,
    ae_ge_param5: u32,
    ae_ge_param6: u32,
    ae_ge_param7: u32,
    ae_ge_param8: u32,
    ae_ge_param9: u32,
};
type
  AE_GENERIC {.bycopy.} = object
    ae_ge_msgfile: uint32
    ae_ge_msgnum: uint32
    ae_ge_params: uint32
    ae_ge_param1: uint32
    ae_ge_param2: uint32
    ae_ge_param3: uint32
    ae_ge_param4: uint32
    ae_ge_param5: uint32
    ae_ge_param6: uint32
    ae_ge_param7: uint32
    ae_ge_param8: uint32
    ae_ge_param9: uint32
struct AE_GENERIC
{
    uint ae_ge_msgfile;
    uint ae_ge_msgnum;
    uint ae_ge_params;
    uint ae_ge_param1;
    uint ae_ge_param2;
    uint ae_ge_param3;
    uint ae_ge_param4;
    uint ae_ge_param5;
    uint ae_ge_param6;
    uint ae_ge_param7;
    uint ae_ge_param8;
    uint ae_ge_param9;
}

HSP用 定義

HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; AE_GENERIC サイズ: 48 バイト(x64)
dim st, 12    ; 4byte整数×12(構造体サイズ 48 / 4 切り上げ)
; ae_ge_msgfile : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; ae_ge_msgnum : DWORD (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; ae_ge_params : DWORD (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; ae_ge_param1 : DWORD (+12, 4byte)  st.3 = 値  /  値 = st.3   (lpoke/lpeek も可)
; ae_ge_param2 : DWORD (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; ae_ge_param3 : DWORD (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; ae_ge_param4 : DWORD (+24, 4byte)  st.6 = 値  /  値 = st.6   (lpoke/lpeek も可)
; ae_ge_param5 : DWORD (+28, 4byte)  st.7 = 値  /  値 = st.7   (lpoke/lpeek も可)
; ae_ge_param6 : DWORD (+32, 4byte)  st.8 = 値  /  値 = st.8   (lpoke/lpeek も可)
; ae_ge_param7 : DWORD (+36, 4byte)  st.9 = 値  /  値 = st.9   (lpoke/lpeek も可)
; ae_ge_param8 : DWORD (+40, 4byte)  st.10 = 値  /  値 = st.10   (lpoke/lpeek も可)
; ae_ge_param9 : DWORD (+44, 4byte)  st.11 = 値  /  値 = st.11   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global AE_GENERIC
    #field int ae_ge_msgfile
    #field int ae_ge_msgnum
    #field int ae_ge_params
    #field int ae_ge_param1
    #field int ae_ge_param2
    #field int ae_ge_param3
    #field int ae_ge_param4
    #field int ae_ge_param5
    #field int ae_ge_param6
    #field int ae_ge_param7
    #field int ae_ge_param8
    #field int ae_ge_param9
#endstruct

stdim st, AE_GENERIC        ; NSTRUCT 変数を確保
st->ae_ge_msgfile = 100
mes "ae_ge_msgfile=" + st->ae_ge_msgfile