Win32 API 日本語リファレンス
ホームSecurity.Cryptography › CERT_LOGOTYPE_EXT_INFO

CERT_LOGOTYPE_EXT_INFO

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

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

フィールド

フィールドサイズx64x86説明
cCommunityLogoDWORD4+0+0rgCommunityLogo配列の要素数。
rgCommunityLogoCERT_LOGOTYPE_INFO*8/4+8+4コミュニティロゴタイプ情報の配列へのポインタ。NULL可。
pIssuerLogoCERT_LOGOTYPE_INFO*8/4+16+8発行者ロゴタイプ情報へのポインタ。NULL可。
pSubjectLogoCERT_LOGOTYPE_INFO*8/4+24+12サブジェクトロゴタイプ情報へのポインタ。NULL可。
cOtherLogoDWORD4+32+16rgOtherLogo配列の要素数。
rgOtherLogoCERT_OTHER_LOGOTYPE_INFO*8/4+40+20その他ロゴタイプ情報の配列へのポインタ。NULL可。

各言語での定義

#include <windows.h>

// CERT_LOGOTYPE_EXT_INFO  (x64 48 / x86 24 バイト)
typedef struct CERT_LOGOTYPE_EXT_INFO {
    DWORD cCommunityLogo;
    CERT_LOGOTYPE_INFO* rgCommunityLogo;
    CERT_LOGOTYPE_INFO* pIssuerLogo;
    CERT_LOGOTYPE_INFO* pSubjectLogo;
    DWORD cOtherLogo;
    CERT_OTHER_LOGOTYPE_INFO* rgOtherLogo;
} CERT_LOGOTYPE_EXT_INFO;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct CERT_LOGOTYPE_EXT_INFO
{
    public uint cCommunityLogo;
    public IntPtr rgCommunityLogo;
    public IntPtr pIssuerLogo;
    public IntPtr pSubjectLogo;
    public uint cOtherLogo;
    public IntPtr rgOtherLogo;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure CERT_LOGOTYPE_EXT_INFO
    Public cCommunityLogo As UInteger
    Public rgCommunityLogo As IntPtr
    Public pIssuerLogo As IntPtr
    Public pSubjectLogo As IntPtr
    Public cOtherLogo As UInteger
    Public rgOtherLogo As IntPtr
End Structure
import ctypes
from ctypes import wintypes

class CERT_LOGOTYPE_EXT_INFO(ctypes.Structure):
    _fields_ = [
        ("cCommunityLogo", wintypes.DWORD),
        ("rgCommunityLogo", ctypes.c_void_p),
        ("pIssuerLogo", ctypes.c_void_p),
        ("pSubjectLogo", ctypes.c_void_p),
        ("cOtherLogo", wintypes.DWORD),
        ("rgOtherLogo", ctypes.c_void_p),
    ]
#[repr(C)]
pub struct CERT_LOGOTYPE_EXT_INFO {
    pub cCommunityLogo: u32,
    pub rgCommunityLogo: *mut core::ffi::c_void,
    pub pIssuerLogo: *mut core::ffi::c_void,
    pub pSubjectLogo: *mut core::ffi::c_void,
    pub cOtherLogo: u32,
    pub rgOtherLogo: *mut core::ffi::c_void,
}
import "golang.org/x/sys/windows"

type CERT_LOGOTYPE_EXT_INFO struct {
	cCommunityLogo uint32
	rgCommunityLogo uintptr
	pIssuerLogo uintptr
	pSubjectLogo uintptr
	cOtherLogo uint32
	rgOtherLogo uintptr
}
type
  CERT_LOGOTYPE_EXT_INFO = record
    cCommunityLogo: DWORD;
    rgCommunityLogo: Pointer;
    pIssuerLogo: Pointer;
    pSubjectLogo: Pointer;
    cOtherLogo: DWORD;
    rgOtherLogo: Pointer;
  end;
const CERT_LOGOTYPE_EXT_INFO = extern struct {
    cCommunityLogo: u32,
    rgCommunityLogo: ?*anyopaque,
    pIssuerLogo: ?*anyopaque,
    pSubjectLogo: ?*anyopaque,
    cOtherLogo: u32,
    rgOtherLogo: ?*anyopaque,
};
type
  CERT_LOGOTYPE_EXT_INFO {.bycopy.} = object
    cCommunityLogo: uint32
    rgCommunityLogo: pointer
    pIssuerLogo: pointer
    pSubjectLogo: pointer
    cOtherLogo: uint32
    rgOtherLogo: pointer
struct CERT_LOGOTYPE_EXT_INFO
{
    uint cCommunityLogo;
    void* rgCommunityLogo;
    void* pIssuerLogo;
    void* pSubjectLogo;
    uint cOtherLogo;
    void* rgOtherLogo;
}

HSP用 定義

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

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; CERT_LOGOTYPE_EXT_INFO サイズ: 24 バイト(x86)
dim st, 6    ; 4byte整数×6(構造体サイズ 24 / 4 切り上げ)
; cCommunityLogo : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; rgCommunityLogo : CERT_LOGOTYPE_INFO* (+4, 4byte)  varptr(st)+4 を基点に操作(4byte:入れ子/配列)
; pIssuerLogo : CERT_LOGOTYPE_INFO* (+8, 4byte)  varptr(st)+8 を基点に操作(4byte:入れ子/配列)
; pSubjectLogo : CERT_LOGOTYPE_INFO* (+12, 4byte)  varptr(st)+12 を基点に操作(4byte:入れ子/配列)
; cOtherLogo : DWORD (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; rgOtherLogo : CERT_OTHER_LOGOTYPE_INFO* (+20, 4byte)  varptr(st)+20 を基点に操作(4byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; CERT_LOGOTYPE_EXT_INFO サイズ: 48 バイト(x64)
dim st, 12    ; 4byte整数×12(構造体サイズ 48 / 4 切り上げ)
; cCommunityLogo : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; rgCommunityLogo : CERT_LOGOTYPE_INFO* (+8, 8byte)  varptr(st)+8 を基点に操作(8byte:入れ子/配列)
; pIssuerLogo : CERT_LOGOTYPE_INFO* (+16, 8byte)  varptr(st)+16 を基点に操作(8byte:入れ子/配列)
; pSubjectLogo : CERT_LOGOTYPE_INFO* (+24, 8byte)  varptr(st)+24 を基点に操作(8byte:入れ子/配列)
; cOtherLogo : DWORD (+32, 4byte)  st.8 = 値  /  値 = st.8   (lpoke/lpeek も可)
; rgOtherLogo : CERT_OTHER_LOGOTYPE_INFO* (+40, 8byte)  varptr(st)+40 を基点に操作(8byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global CERT_LOGOTYPE_EXT_INFO
    #field int cCommunityLogo
    #field intptr rgCommunityLogo
    #field intptr pIssuerLogo
    #field intptr pSubjectLogo
    #field int cOtherLogo
    #field intptr rgOtherLogo
#endstruct

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