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