ホーム › Security.Authentication.WebAuthn › WebAuthNFreeAuthenticatorList
WebAuthNFreeAuthenticatorList
関数取得した認証器詳細リストを解放する。
シグネチャ
// webauthn.dll
#include <windows.h>
void WebAuthNFreeAuthenticatorList(
WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* pAuthenticatorDetailsList
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pAuthenticatorDetailsList | WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* | in |
戻り値の型: void
各言語での呼び出し定義
// webauthn.dll
#include <windows.h>
void WebAuthNFreeAuthenticatorList(
WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* pAuthenticatorDetailsList
);[DllImport("webauthn.dll", ExactSpelling = true)]
static extern void WebAuthNFreeAuthenticatorList(
IntPtr pAuthenticatorDetailsList // WEBAUTHN_AUTHENTICATOR_DETAILS_LIST*
);<DllImport("webauthn.dll", ExactSpelling:=True)>
Public Shared Sub WebAuthNFreeAuthenticatorList(
pAuthenticatorDetailsList As IntPtr ' WEBAUTHN_AUTHENTICATOR_DETAILS_LIST*
)
End Sub' pAuthenticatorDetailsList : WEBAUTHN_AUTHENTICATOR_DETAILS_LIST*
Declare PtrSafe Sub WebAuthNFreeAuthenticatorList Lib "webauthn" ( _
ByVal pAuthenticatorDetailsList As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
WebAuthNFreeAuthenticatorList = ctypes.windll.webauthn.WebAuthNFreeAuthenticatorList
WebAuthNFreeAuthenticatorList.restype = None
WebAuthNFreeAuthenticatorList.argtypes = [
ctypes.c_void_p, # pAuthenticatorDetailsList : WEBAUTHN_AUTHENTICATOR_DETAILS_LIST*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('webauthn.dll')
WebAuthNFreeAuthenticatorList = Fiddle::Function.new(
lib['WebAuthNFreeAuthenticatorList'],
[
Fiddle::TYPE_VOIDP, # pAuthenticatorDetailsList : WEBAUTHN_AUTHENTICATOR_DETAILS_LIST*
],
Fiddle::TYPE_VOID)#[link(name = "webauthn")]
extern "system" {
fn WebAuthNFreeAuthenticatorList(
pAuthenticatorDetailsList: *mut WEBAUTHN_AUTHENTICATOR_DETAILS_LIST // WEBAUTHN_AUTHENTICATOR_DETAILS_LIST*
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("webauthn.dll")]
public static extern void WebAuthNFreeAuthenticatorList(IntPtr pAuthenticatorDetailsList);
"@
$api = Add-Type -MemberDefinition $sig -Name 'webauthn_WebAuthNFreeAuthenticatorList' -Namespace Win32 -PassThru
# $api::WebAuthNFreeAuthenticatorList(pAuthenticatorDetailsList)#uselib "webauthn.dll"
#func global WebAuthNFreeAuthenticatorList "WebAuthNFreeAuthenticatorList" sptr
; WebAuthNFreeAuthenticatorList varptr(pAuthenticatorDetailsList)
; pAuthenticatorDetailsList : WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* -> "sptr"出力引数:
#uselib "webauthn.dll" #func global WebAuthNFreeAuthenticatorList "WebAuthNFreeAuthenticatorList" var ; WebAuthNFreeAuthenticatorList pAuthenticatorDetailsList ; pAuthenticatorDetailsList : WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "webauthn.dll" #func global WebAuthNFreeAuthenticatorList "WebAuthNFreeAuthenticatorList" sptr ; WebAuthNFreeAuthenticatorList varptr(pAuthenticatorDetailsList) ; pAuthenticatorDetailsList : WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; void WebAuthNFreeAuthenticatorList(WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* pAuthenticatorDetailsList) #uselib "webauthn.dll" #func global WebAuthNFreeAuthenticatorList "WebAuthNFreeAuthenticatorList" var ; WebAuthNFreeAuthenticatorList pAuthenticatorDetailsList ; pAuthenticatorDetailsList : WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; void WebAuthNFreeAuthenticatorList(WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* pAuthenticatorDetailsList) #uselib "webauthn.dll" #func global WebAuthNFreeAuthenticatorList "WebAuthNFreeAuthenticatorList" intptr ; WebAuthNFreeAuthenticatorList varptr(pAuthenticatorDetailsList) ; pAuthenticatorDetailsList : WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
webauthn = windows.NewLazySystemDLL("webauthn.dll")
procWebAuthNFreeAuthenticatorList = webauthn.NewProc("WebAuthNFreeAuthenticatorList")
)
// pAuthenticatorDetailsList (WEBAUTHN_AUTHENTICATOR_DETAILS_LIST*)
r1, _, err := procWebAuthNFreeAuthenticatorList.Call(
uintptr(pAuthenticatorDetailsList),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure WebAuthNFreeAuthenticatorList(
pAuthenticatorDetailsList: Pointer // WEBAUTHN_AUTHENTICATOR_DETAILS_LIST*
); stdcall;
external 'webauthn.dll' name 'WebAuthNFreeAuthenticatorList';result := DllCall("webauthn\WebAuthNFreeAuthenticatorList"
, "Ptr", pAuthenticatorDetailsList ; WEBAUTHN_AUTHENTICATOR_DETAILS_LIST*
, "Int") ; return: void●WebAuthNFreeAuthenticatorList(pAuthenticatorDetailsList) = DLL("webauthn.dll", "int WebAuthNFreeAuthenticatorList(void*)")
# 呼び出し: WebAuthNFreeAuthenticatorList(pAuthenticatorDetailsList)
# pAuthenticatorDetailsList : WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。