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