Win32 API 日本語リファレンス
ホームSecurity.Authentication.WebAuthn › EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS

EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS

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

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

フィールド

フィールドサイズx64x86説明
pwszAuthenticatorNameLPWSTR8/4+0+0更新する認証器の表示名へのポインタ。
pwszPluginClsIdLPWSTR8/4+8+4現在のプラグインCLSID文字列へのポインタ。
pwszNewPluginClsIdLPWSTR8/4+16+8新しいプラグインCLSID文字列へのポインタ。
pwszLightThemeLogoLPWSTR8/4+24+12ライトテーマ用ロゴ画像のパス/URLへのポインタ。
pwszDarkThemeLogoLPWSTR8/4+32+16ダークテーマ用ロゴ画像のパス/URLへのポインタ。
cbAuthenticatorInfoDWORD4+40+20認証器情報のバイト数を示す。
pbAuthenticatorInfoBYTE*8/4+48+24CTAP authenticatorInfo(CBOR)データへのポインタ。

各言語での定義

#include <windows.h>

// EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS  (x64 56 / x86 28 バイト)
typedef struct EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS {
    LPWSTR pwszAuthenticatorName;
    LPWSTR pwszPluginClsId;
    LPWSTR pwszNewPluginClsId;
    LPWSTR pwszLightThemeLogo;
    LPWSTR pwszDarkThemeLogo;
    DWORD cbAuthenticatorInfo;
    BYTE* pbAuthenticatorInfo;
} EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS
{
    public IntPtr pwszAuthenticatorName;
    public IntPtr pwszPluginClsId;
    public IntPtr pwszNewPluginClsId;
    public IntPtr pwszLightThemeLogo;
    public IntPtr pwszDarkThemeLogo;
    public uint cbAuthenticatorInfo;
    public IntPtr pbAuthenticatorInfo;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS
    Public pwszAuthenticatorName As IntPtr
    Public pwszPluginClsId As IntPtr
    Public pwszNewPluginClsId As IntPtr
    Public pwszLightThemeLogo As IntPtr
    Public pwszDarkThemeLogo As IntPtr
    Public cbAuthenticatorInfo As UInteger
    Public pbAuthenticatorInfo As IntPtr
End Structure
import ctypes
from ctypes import wintypes

class EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS(ctypes.Structure):
    _fields_ = [
        ("pwszAuthenticatorName", ctypes.c_void_p),
        ("pwszPluginClsId", ctypes.c_void_p),
        ("pwszNewPluginClsId", ctypes.c_void_p),
        ("pwszLightThemeLogo", ctypes.c_void_p),
        ("pwszDarkThemeLogo", ctypes.c_void_p),
        ("cbAuthenticatorInfo", wintypes.DWORD),
        ("pbAuthenticatorInfo", ctypes.c_void_p),
    ]
#[repr(C)]
pub struct EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS {
    pub pwszAuthenticatorName: *mut core::ffi::c_void,
    pub pwszPluginClsId: *mut core::ffi::c_void,
    pub pwszNewPluginClsId: *mut core::ffi::c_void,
    pub pwszLightThemeLogo: *mut core::ffi::c_void,
    pub pwszDarkThemeLogo: *mut core::ffi::c_void,
    pub cbAuthenticatorInfo: u32,
    pub pbAuthenticatorInfo: *mut core::ffi::c_void,
}
import "golang.org/x/sys/windows"

type EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS struct {
	pwszAuthenticatorName uintptr
	pwszPluginClsId uintptr
	pwszNewPluginClsId uintptr
	pwszLightThemeLogo uintptr
	pwszDarkThemeLogo uintptr
	cbAuthenticatorInfo uint32
	pbAuthenticatorInfo uintptr
}
type
  EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS = record
    pwszAuthenticatorName: Pointer;
    pwszPluginClsId: Pointer;
    pwszNewPluginClsId: Pointer;
    pwszLightThemeLogo: Pointer;
    pwszDarkThemeLogo: Pointer;
    cbAuthenticatorInfo: DWORD;
    pbAuthenticatorInfo: Pointer;
  end;
const EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS = extern struct {
    pwszAuthenticatorName: ?*anyopaque,
    pwszPluginClsId: ?*anyopaque,
    pwszNewPluginClsId: ?*anyopaque,
    pwszLightThemeLogo: ?*anyopaque,
    pwszDarkThemeLogo: ?*anyopaque,
    cbAuthenticatorInfo: u32,
    pbAuthenticatorInfo: ?*anyopaque,
};
type
  EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS {.bycopy.} = object
    pwszAuthenticatorName: pointer
    pwszPluginClsId: pointer
    pwszNewPluginClsId: pointer
    pwszLightThemeLogo: pointer
    pwszDarkThemeLogo: pointer
    cbAuthenticatorInfo: uint32
    pbAuthenticatorInfo: pointer
struct EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS
{
    void* pwszAuthenticatorName;
    void* pwszPluginClsId;
    void* pwszNewPluginClsId;
    void* pwszLightThemeLogo;
    void* pwszDarkThemeLogo;
    uint cbAuthenticatorInfo;
    void* pbAuthenticatorInfo;
}

HSP用 定義

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

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS サイズ: 28 バイト(x86)
dim st, 7    ; 4byte整数×7(構造体サイズ 28 / 4 切り上げ)
; pwszAuthenticatorName : LPWSTR (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; pwszPluginClsId : LPWSTR (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; pwszNewPluginClsId : LPWSTR (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; pwszLightThemeLogo : LPWSTR (+12, 4byte)  st.3 = 値  /  値 = st.3   (lpoke/lpeek も可)
; pwszDarkThemeLogo : LPWSTR (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; cbAuthenticatorInfo : DWORD (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; pbAuthenticatorInfo : BYTE* (+24, 4byte)  st.6 = 値  /  値 = st.6   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS サイズ: 56 バイト(x64)
dim st, 14    ; 4byte整数×14(構造体サイズ 56 / 4 切り上げ)
; pwszAuthenticatorName : LPWSTR (+0, 8byte)  qpoke st,0,値 / qpeek(st,0)  ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; pwszPluginClsId : LPWSTR (+8, 8byte)  qpoke st,8,値 / qpeek(st,8)  ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; pwszNewPluginClsId : LPWSTR (+16, 8byte)  qpoke st,16,値 / qpeek(st,16)  ※IronHSPのみ。3.7/3.8は lpoke st,16,下位 : lpoke st,20,上位
; pwszLightThemeLogo : LPWSTR (+24, 8byte)  qpoke st,24,値 / qpeek(st,24)  ※IronHSPのみ。3.7/3.8は lpoke st,24,下位 : lpoke st,28,上位
; pwszDarkThemeLogo : LPWSTR (+32, 8byte)  qpoke st,32,値 / qpeek(st,32)  ※IronHSPのみ。3.7/3.8は lpoke st,32,下位 : lpoke st,36,上位
; cbAuthenticatorInfo : DWORD (+40, 4byte)  st.10 = 値  /  値 = st.10   (lpoke/lpeek も可)
; pbAuthenticatorInfo : BYTE* (+48, 8byte)  qpoke st,48,値 / qpeek(st,48)  ※IronHSPのみ。3.7/3.8は lpoke st,48,下位 : lpoke st,52,上位
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global EXPERIMENTAL_WEBAUTHN_PLUGIN_UPDATE_AUTHENTICATOR_DETAILS
    #field intptr pwszAuthenticatorName
    #field intptr pwszPluginClsId
    #field intptr pwszNewPluginClsId
    #field intptr pwszLightThemeLogo
    #field intptr pwszDarkThemeLogo
    #field int cbAuthenticatorInfo
    #field intptr pbAuthenticatorInfo
#endstruct

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