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