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

WebAuthNFreeAuthenticatorList

関数
取得した認証器詳細リストを解放する。
DLLwebauthn.dll呼出規約winapi

シグネチャ

// webauthn.dll
#include <windows.h>

void WebAuthNFreeAuthenticatorList(
    WEBAUTHN_AUTHENTICATOR_DETAILS_LIST* pAuthenticatorDetailsList
);

パラメーター

名前方向
pAuthenticatorDetailsListWEBAUTHN_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 方式にも切替可。
出力引数:
; 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 方式にも切替可。
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   // void
procedure 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)。