ホーム › Security.Cryptography › CMC_RESPONSE_INFO
CMC_RESPONSE_INFO
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| cTaggedAttribute | DWORD | 4 | +0 | +0 | rgTaggedAttribute メンバーの配列に含まれる要素数です。 |
| rgTaggedAttribute | CMC_TAGGED_ATTRIBUTE* | 8/4 | +8 | +4 | CMC_TAGGED_ATTRIBUTE 構造体の配列です。 |
| cTaggedContentInfo | DWORD | 4 | +16 | +8 | rgTaggedContentInfo メンバーの配列に含まれる要素数です。 |
| rgTaggedContentInfo | CMC_TAGGED_CONTENT_INFO* | 8/4 | +24 | +12 | CMC_TAGGED_CONTENT_INFO 構造体の配列です。 |
| cTaggedOtherMsg | DWORD | 4 | +32 | +16 | rgTaggedOtherMsg メンバーの配列に含まれる要素数です。 |
| rgTaggedOtherMsg | CMC_TAGGED_OTHER_MSG* | 8/4 | +40 | +20 | CMC_TAGGED_OTHER_MSG 構造体の配列です。 |
公式ドキュメント
CMC_RESPONSE_INFO 構造体は、タグ付けされたさまざまな情報をやり取りする手段を提供します。
解説(Remarks)
タグ付けされた配列はすべて省略可能です。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での定義
#include <windows.h>
// CMC_RESPONSE_INFO (x64 48 / x86 24 バイト)
typedef struct CMC_RESPONSE_INFO {
DWORD cTaggedAttribute;
CMC_TAGGED_ATTRIBUTE* rgTaggedAttribute;
DWORD cTaggedContentInfo;
CMC_TAGGED_CONTENT_INFO* rgTaggedContentInfo;
DWORD cTaggedOtherMsg;
CMC_TAGGED_OTHER_MSG* rgTaggedOtherMsg;
} CMC_RESPONSE_INFO;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct CMC_RESPONSE_INFO
{
public uint cTaggedAttribute;
public IntPtr rgTaggedAttribute;
public uint cTaggedContentInfo;
public IntPtr rgTaggedContentInfo;
public uint cTaggedOtherMsg;
public IntPtr rgTaggedOtherMsg;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure CMC_RESPONSE_INFO
Public cTaggedAttribute As UInteger
Public rgTaggedAttribute As IntPtr
Public cTaggedContentInfo As UInteger
Public rgTaggedContentInfo As IntPtr
Public cTaggedOtherMsg As UInteger
Public rgTaggedOtherMsg As IntPtr
End Structureimport ctypes
from ctypes import wintypes
class CMC_RESPONSE_INFO(ctypes.Structure):
_fields_ = [
("cTaggedAttribute", wintypes.DWORD),
("rgTaggedAttribute", ctypes.c_void_p),
("cTaggedContentInfo", wintypes.DWORD),
("rgTaggedContentInfo", ctypes.c_void_p),
("cTaggedOtherMsg", wintypes.DWORD),
("rgTaggedOtherMsg", ctypes.c_void_p),
]#[repr(C)]
pub struct CMC_RESPONSE_INFO {
pub cTaggedAttribute: u32,
pub rgTaggedAttribute: *mut core::ffi::c_void,
pub cTaggedContentInfo: u32,
pub rgTaggedContentInfo: *mut core::ffi::c_void,
pub cTaggedOtherMsg: u32,
pub rgTaggedOtherMsg: *mut core::ffi::c_void,
}import "golang.org/x/sys/windows"
type CMC_RESPONSE_INFO struct {
cTaggedAttribute uint32
rgTaggedAttribute uintptr
cTaggedContentInfo uint32
rgTaggedContentInfo uintptr
cTaggedOtherMsg uint32
rgTaggedOtherMsg uintptr
}type
CMC_RESPONSE_INFO = record
cTaggedAttribute: DWORD;
rgTaggedAttribute: Pointer;
cTaggedContentInfo: DWORD;
rgTaggedContentInfo: Pointer;
cTaggedOtherMsg: DWORD;
rgTaggedOtherMsg: Pointer;
end;const CMC_RESPONSE_INFO = extern struct {
cTaggedAttribute: u32,
rgTaggedAttribute: ?*anyopaque,
cTaggedContentInfo: u32,
rgTaggedContentInfo: ?*anyopaque,
cTaggedOtherMsg: u32,
rgTaggedOtherMsg: ?*anyopaque,
};type
CMC_RESPONSE_INFO {.bycopy.} = object
cTaggedAttribute: uint32
rgTaggedAttribute: pointer
cTaggedContentInfo: uint32
rgTaggedContentInfo: pointer
cTaggedOtherMsg: uint32
rgTaggedOtherMsg: pointerstruct CMC_RESPONSE_INFO
{
uint cTaggedAttribute;
void* rgTaggedAttribute;
uint cTaggedContentInfo;
void* rgTaggedContentInfo;
uint cTaggedOtherMsg;
void* rgTaggedOtherMsg;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; CMC_RESPONSE_INFO サイズ: 24 バイト(x86)
dim st, 6 ; 4byte整数×6(構造体サイズ 24 / 4 切り上げ)
; cTaggedAttribute : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; rgTaggedAttribute : CMC_TAGGED_ATTRIBUTE* (+4, 4byte) varptr(st)+4 を基点に操作(4byte:入れ子/配列)
; cTaggedContentInfo : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; rgTaggedContentInfo : CMC_TAGGED_CONTENT_INFO* (+12, 4byte) varptr(st)+12 を基点に操作(4byte:入れ子/配列)
; cTaggedOtherMsg : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; rgTaggedOtherMsg : CMC_TAGGED_OTHER_MSG* (+20, 4byte) varptr(st)+20 を基点に操作(4byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; CMC_RESPONSE_INFO サイズ: 48 バイト(x64)
dim st, 12 ; 4byte整数×12(構造体サイズ 48 / 4 切り上げ)
; cTaggedAttribute : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; rgTaggedAttribute : CMC_TAGGED_ATTRIBUTE* (+8, 8byte) varptr(st)+8 を基点に操作(8byte:入れ子/配列)
; cTaggedContentInfo : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; rgTaggedContentInfo : CMC_TAGGED_CONTENT_INFO* (+24, 8byte) varptr(st)+24 を基点に操作(8byte:入れ子/配列)
; cTaggedOtherMsg : DWORD (+32, 4byte) st.8 = 値 / 値 = st.8 (lpoke/lpeek も可)
; rgTaggedOtherMsg : CMC_TAGGED_OTHER_MSG* (+40, 8byte) varptr(st)+40 を基点に操作(8byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global CMC_RESPONSE_INFO
#field int cTaggedAttribute
#field intptr rgTaggedAttribute
#field int cTaggedContentInfo
#field intptr rgTaggedContentInfo
#field int cTaggedOtherMsg
#field intptr rgTaggedOtherMsg
#endstruct
stdim st, CMC_RESPONSE_INFO ; NSTRUCT 変数を確保
st->cTaggedAttribute = 100
mes "cTaggedAttribute=" + st->cTaggedAttribute