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