ホーム › Devices.BiometricFramework › WinBioRemoveAllCredentials
WinBioRemoveAllCredentials
関数全ての生体認証資格情報を削除する。
シグネチャ
// winbio.dll
#include <windows.h>
HRESULT WinBioRemoveAllCredentials(void);パラメーターなし。戻り値: HRESULT
各言語での呼び出し定義
// winbio.dll
#include <windows.h>
HRESULT WinBioRemoveAllCredentials(void);[DllImport("winbio.dll", ExactSpelling = true)]
static extern int WinBioRemoveAllCredentials();<DllImport("winbio.dll", ExactSpelling:=True)>
Public Shared Function WinBioRemoveAllCredentials() As Integer
End FunctionDeclare PtrSafe Function WinBioRemoveAllCredentials Lib "winbio" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
WinBioRemoveAllCredentials = ctypes.windll.winbio.WinBioRemoveAllCredentials
WinBioRemoveAllCredentials.restype = ctypes.c_int
WinBioRemoveAllCredentials.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('winbio.dll')
WinBioRemoveAllCredentials = Fiddle::Function.new(
lib['WinBioRemoveAllCredentials'],
[],
Fiddle::TYPE_INT)#[link(name = "winbio")]
extern "system" {
fn WinBioRemoveAllCredentials() -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("winbio.dll")]
public static extern int WinBioRemoveAllCredentials();
"@
$api = Add-Type -MemberDefinition $sig -Name 'winbio_WinBioRemoveAllCredentials' -Namespace Win32 -PassThru
# $api::WinBioRemoveAllCredentials()#uselib "winbio.dll"
#func global WinBioRemoveAllCredentials "WinBioRemoveAllCredentials"
; WinBioRemoveAllCredentials ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "winbio.dll"
#cfunc global WinBioRemoveAllCredentials "WinBioRemoveAllCredentials"
; res = WinBioRemoveAllCredentials(); HRESULT WinBioRemoveAllCredentials()
#uselib "winbio.dll"
#cfunc global WinBioRemoveAllCredentials "WinBioRemoveAllCredentials"
; res = WinBioRemoveAllCredentials()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
winbio = windows.NewLazySystemDLL("winbio.dll")
procWinBioRemoveAllCredentials = winbio.NewProc("WinBioRemoveAllCredentials")
)
r1, _, err := procWinBioRemoveAllCredentials.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction WinBioRemoveAllCredentials: Integer; stdcall;
external 'winbio.dll' name 'WinBioRemoveAllCredentials';result := DllCall("winbio\WinBioRemoveAllCredentials", "Int")●WinBioRemoveAllCredentials() = DLL("winbio.dll", "int WinBioRemoveAllCredentials()")
# 呼び出し: WinBioRemoveAllCredentials()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。