ホーム › Devices.BiometricFramework › WINBIO_PIPELINE
WINBIO_PIPELINE
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| SensorHandle | HANDLE | 8/4 | +0 | +0 | バイオメトリック ユニットに関連付けられたセンサー デバイスへのファイル ハンドルです。アダプターは、このフィールドを読み取り専用として扱う必要があります。 |
| EngineHandle | HANDLE | 8/4 | +8 | +4 | 専用のハードウェア照合エンジンが存在する場合、そのエンジンへのファイル ハンドルです。これはエンジン アダプターのみが変更します。Windows Biometric Framework はこれを読み取ります。 |
| StorageHandle | HANDLE | 8/4 | +16 | +8 | テンプレート ストレージ データベースへのファイル ハンドルです。これは Windows Biometric Framework によって読み取られますが、変更するのはストレージ アダプターのみです。 |
| SensorInterface | WINBIO_SENSOR_INTERFACE* | 8/4 | +24 | +12 | バイオメトリック ユニットの WINBIO_SENSOR_INTERFACE 構造体へのポインターです。アダプターは、このフィールドを無視する必要があります。 |
| EngineInterface | WINBIO_ENGINE_INTERFACE* | 8/4 | +32 | +16 | バイオメトリック ユニットの WINBIO_ENGINE_INTERFACE 構造体へのポインターです。アダプターは、このフィールドを無視する必要があります。 |
| StorageInterface | WINBIO_STORAGE_INTERFACE* | 8/4 | +40 | +20 | バイオメトリック ユニットの WINBIO_STORAGE_INTERFACE 構造体へのポインターです。アダプターは、このフィールドを無視する必要があります。 |
| SensorContext | WINIBIO_SENSOR_CONTEXT* | 8/4 | +48 | +24 | センサー アダプターが定義するプライベートなデータ構造体へのポインターです。このポインターと構造体の内容はセンサー アダプターが管理し、Windows Biometric Framework がアクセスすることはありません。 |
| EngineContext | WINIBIO_ENGINE_CONTEXT* | 8/4 | +56 | +28 | エンジン アダプターが定義するプライベートなデータ構造体へのポインターです。このポインターと構造体の内容はエンジン アダプターが管理し、Windows Biometric Framework がアクセスすることはありません。 |
| StorageContext | WINIBIO_STORAGE_CONTEXT* | 8/4 | +64 | +32 | ストレージ アダプターが定義するプライベートなデータ構造体へのポインターです。このポインターと構造体の内容はストレージ アダプターが管理し、Windows Biometric Framework がアクセスすることはありません。 |
| FrameworkInterface | WINBIO_FRAMEWORK_INTERFACE* | 8/4 | +72 | +36 | フレームワークが提供する関数テーブルへのポインタ。 |
公式ドキュメント
WINBIO_PIPELINE 構造体は、単一のバイオメトリック ユニット内のセンサー、エンジン、ストレージの各アダプター コンポーネントで使用される、共有のコンテキスト情報を格納します。
解説(Remarks)
各バイオメトリック ユニットは、そのユニットが実行する操作の現在の処理状態を保持するために、固有の WINBIO_PIPELINE 構造体を持ちます。Windows Biometric Framework は、パイプライン構造体のアドレスをコンポーネント スタック内の各アダプターに自動的に渡します。アダプターはこのパイプライン ポインターを使用して、自身のプライベートなコンテキスト データにアクセスしたり、コンポーネント スタックの下位レベルにある関数を呼び出したりします。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での定義
#include <windows.h>
// WINBIO_PIPELINE (x64 80 / x86 40 バイト)
typedef struct WINBIO_PIPELINE {
HANDLE SensorHandle;
HANDLE EngineHandle;
HANDLE StorageHandle;
WINBIO_SENSOR_INTERFACE* SensorInterface;
WINBIO_ENGINE_INTERFACE* EngineInterface;
WINBIO_STORAGE_INTERFACE* StorageInterface;
WINIBIO_SENSOR_CONTEXT* SensorContext;
WINIBIO_ENGINE_CONTEXT* EngineContext;
WINIBIO_STORAGE_CONTEXT* StorageContext;
WINBIO_FRAMEWORK_INTERFACE* FrameworkInterface;
} WINBIO_PIPELINE;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct WINBIO_PIPELINE
{
public IntPtr SensorHandle;
public IntPtr EngineHandle;
public IntPtr StorageHandle;
public IntPtr SensorInterface;
public IntPtr EngineInterface;
public IntPtr StorageInterface;
public IntPtr SensorContext;
public IntPtr EngineContext;
public IntPtr StorageContext;
public IntPtr FrameworkInterface;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure WINBIO_PIPELINE
Public SensorHandle As IntPtr
Public EngineHandle As IntPtr
Public StorageHandle As IntPtr
Public SensorInterface As IntPtr
Public EngineInterface As IntPtr
Public StorageInterface As IntPtr
Public SensorContext As IntPtr
Public EngineContext As IntPtr
Public StorageContext As IntPtr
Public FrameworkInterface As IntPtr
End Structureimport ctypes
from ctypes import wintypes
class WINBIO_PIPELINE(ctypes.Structure):
_fields_ = [
("SensorHandle", ctypes.c_void_p),
("EngineHandle", ctypes.c_void_p),
("StorageHandle", ctypes.c_void_p),
("SensorInterface", ctypes.c_void_p),
("EngineInterface", ctypes.c_void_p),
("StorageInterface", ctypes.c_void_p),
("SensorContext", ctypes.c_void_p),
("EngineContext", ctypes.c_void_p),
("StorageContext", ctypes.c_void_p),
("FrameworkInterface", ctypes.c_void_p),
]#[repr(C)]
pub struct WINBIO_PIPELINE {
pub SensorHandle: *mut core::ffi::c_void,
pub EngineHandle: *mut core::ffi::c_void,
pub StorageHandle: *mut core::ffi::c_void,
pub SensorInterface: *mut core::ffi::c_void,
pub EngineInterface: *mut core::ffi::c_void,
pub StorageInterface: *mut core::ffi::c_void,
pub SensorContext: *mut core::ffi::c_void,
pub EngineContext: *mut core::ffi::c_void,
pub StorageContext: *mut core::ffi::c_void,
pub FrameworkInterface: *mut core::ffi::c_void,
}import "golang.org/x/sys/windows"
type WINBIO_PIPELINE struct {
SensorHandle uintptr
EngineHandle uintptr
StorageHandle uintptr
SensorInterface uintptr
EngineInterface uintptr
StorageInterface uintptr
SensorContext uintptr
EngineContext uintptr
StorageContext uintptr
FrameworkInterface uintptr
}type
WINBIO_PIPELINE = record
SensorHandle: Pointer;
EngineHandle: Pointer;
StorageHandle: Pointer;
SensorInterface: Pointer;
EngineInterface: Pointer;
StorageInterface: Pointer;
SensorContext: Pointer;
EngineContext: Pointer;
StorageContext: Pointer;
FrameworkInterface: Pointer;
end;const WINBIO_PIPELINE = extern struct {
SensorHandle: ?*anyopaque,
EngineHandle: ?*anyopaque,
StorageHandle: ?*anyopaque,
SensorInterface: ?*anyopaque,
EngineInterface: ?*anyopaque,
StorageInterface: ?*anyopaque,
SensorContext: ?*anyopaque,
EngineContext: ?*anyopaque,
StorageContext: ?*anyopaque,
FrameworkInterface: ?*anyopaque,
};type
WINBIO_PIPELINE {.bycopy.} = object
SensorHandle: pointer
EngineHandle: pointer
StorageHandle: pointer
SensorInterface: pointer
EngineInterface: pointer
StorageInterface: pointer
SensorContext: pointer
EngineContext: pointer
StorageContext: pointer
FrameworkInterface: pointerstruct WINBIO_PIPELINE
{
void* SensorHandle;
void* EngineHandle;
void* StorageHandle;
void* SensorInterface;
void* EngineInterface;
void* StorageInterface;
void* SensorContext;
void* EngineContext;
void* StorageContext;
void* FrameworkInterface;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; WINBIO_PIPELINE サイズ: 40 バイト(x86)
dim st, 10 ; 4byte整数×10(構造体サイズ 40 / 4 切り上げ)
; SensorHandle : HANDLE (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; EngineHandle : HANDLE (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; StorageHandle : HANDLE (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; SensorInterface : WINBIO_SENSOR_INTERFACE* (+12, 4byte) varptr(st)+12 を基点に操作(4byte:入れ子/配列)
; EngineInterface : WINBIO_ENGINE_INTERFACE* (+16, 4byte) varptr(st)+16 を基点に操作(4byte:入れ子/配列)
; StorageInterface : WINBIO_STORAGE_INTERFACE* (+20, 4byte) varptr(st)+20 を基点に操作(4byte:入れ子/配列)
; SensorContext : WINIBIO_SENSOR_CONTEXT* (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; EngineContext : WINIBIO_ENGINE_CONTEXT* (+28, 4byte) st.7 = 値 / 値 = st.7 (lpoke/lpeek も可)
; StorageContext : WINIBIO_STORAGE_CONTEXT* (+32, 4byte) st.8 = 値 / 値 = st.8 (lpoke/lpeek も可)
; FrameworkInterface : WINBIO_FRAMEWORK_INTERFACE* (+36, 4byte) varptr(st)+36 を基点に操作(4byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; WINBIO_PIPELINE サイズ: 80 バイト(x64)
dim st, 20 ; 4byte整数×20(構造体サイズ 80 / 4 切り上げ)
; SensorHandle : HANDLE (+0, 8byte) qpoke st,0,値 / qpeek(st,0) ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; EngineHandle : HANDLE (+8, 8byte) qpoke st,8,値 / qpeek(st,8) ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; StorageHandle : HANDLE (+16, 8byte) qpoke st,16,値 / qpeek(st,16) ※IronHSPのみ。3.7/3.8は lpoke st,16,下位 : lpoke st,20,上位
; SensorInterface : WINBIO_SENSOR_INTERFACE* (+24, 8byte) varptr(st)+24 を基点に操作(8byte:入れ子/配列)
; EngineInterface : WINBIO_ENGINE_INTERFACE* (+32, 8byte) varptr(st)+32 を基点に操作(8byte:入れ子/配列)
; StorageInterface : WINBIO_STORAGE_INTERFACE* (+40, 8byte) varptr(st)+40 を基点に操作(8byte:入れ子/配列)
; SensorContext : WINIBIO_SENSOR_CONTEXT* (+48, 8byte) qpoke st,48,値 / qpeek(st,48) ※IronHSPのみ。3.7/3.8は lpoke st,48,下位 : lpoke st,52,上位
; EngineContext : WINIBIO_ENGINE_CONTEXT* (+56, 8byte) qpoke st,56,値 / qpeek(st,56) ※IronHSPのみ。3.7/3.8は lpoke st,56,下位 : lpoke st,60,上位
; StorageContext : WINIBIO_STORAGE_CONTEXT* (+64, 8byte) qpoke st,64,値 / qpeek(st,64) ※IronHSPのみ。3.7/3.8は lpoke st,64,下位 : lpoke st,68,上位
; FrameworkInterface : WINBIO_FRAMEWORK_INTERFACE* (+72, 8byte) varptr(st)+72 を基点に操作(8byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global WINBIO_PIPELINE
#field intptr SensorHandle
#field intptr EngineHandle
#field intptr StorageHandle
#field intptr SensorInterface
#field intptr EngineInterface
#field intptr StorageInterface
#field intptr SensorContext
#field intptr EngineContext
#field intptr StorageContext
#field intptr FrameworkInterface
#endstruct
stdim st, WINBIO_PIPELINE ; NSTRUCT 変数を確保