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