Win32 API 日本語リファレンス
ホーム › Devices.BiometricFramework › WinBioDeleteTemplate

WinBioDeleteTemplate

関数
指定IDとサブ要素の登録済み生体テンプレートを削除する。
DLLwinbio.dll呼出規約winapi対応OSWindows 7 以降

シグネチャ

// winbio.dll
#include <windows.h>

HRESULT WinBioDeleteTemplate(
    DWORD SessionHandle,
    DWORD UnitId,
    WINBIO_IDENTITY* Identity,
    BYTE SubFactor
);

パラメーター

名前型方向説明
SessionHandleDWORDinオープン済みのバイオメトリックセッションを識別する WINBIO_SESSION_HANDLE 値です。同期セッションハンドルは WinBioOpenSession を呼び出して開きます。非同期セッションハンドルは WinBioAsyncOpenSession を呼び出して開きます。
UnitIdDWORDinテンプレートが格納されているバイオメトリックユニットを識別する WINBIO_UNIT_ID 値です。
IdentityWINBIO_IDENTITY*in削除するテンプレートの GUID または SID を格納した WINBIO_IDENTITY 構造体へのポインターです。WINBIO_IDENTITY 構造体の Type メンバーが WINBIO_ID_TYPE_WILDCARD の場合、SubFactor パラメーターに一致するテンプレートがすべての ID について削除されます。ワイルドカードによる ID の削除を実行できるのは管理者のみです。
SubFactorBYTEin削除するテンプレートに関する追加情報を指定する WINBIO_BIOMETRIC_SUBTYPE 値です。WINBIO_SUBTYPE_ANY を指定した場合、UnitId パラメーターで指定したバイオメトリックユニットのすべてのテンプレートが削除されます。

戻り値の型: HRESULT

公式ドキュメント

テンプレートストアからバイオメトリックテンプレートを削除します。Windows 10 ビルド 1607 以降、この関数はモバイルイメージでも使用できます。

戻り値

関数が成功した場合は S_OK を返します。関数が失敗した場合は、エラーを示す HRESULT 値を返します。返される可能性のある値には次の表の値が含まれますが、これらに限定されません。一般的なエラーコードの一覧については、Common HRESULT Values を参照してください。

戻り値 説明
E_HANDLE
セッションハンドルが無効です。
E_INVALIDARG
UnitId パラメーターが 0 であるか、SubFactor が WINBIO_SUBTYPE_NO_INFORMATION です。
E_POINTER
Identity パラメーターに指定するポインターを NULL にすることはできません。
WINBIO_E_ENROLLMENT_IN_PROGRESS
現在、バイオメトリックユニットが登録トランザクションで使用されているため、操作を完了できませんでした。

解説(Remarks)

WinBioDeleteTemplate を同期的に使用するには、WinBioOpenSession の呼び出しで作成したセッションハンドルを指定してこの関数を呼び出します。この関数は、操作が完了するかエラーが発生するまでブロックします。

WinBioDeleteTemplate を非同期的に使用するには、WinBioAsyncOpenSession の呼び出しで作成したセッションハンドルを指定してこの関数を呼び出します。フレームワークは WINBIO_ASYNC_RESULT 構造体を割り当て、それを使用して操作の成否に関する情報を返します。削除操作が成功した場合、フレームワークは入れ子になった DeleteTemplate 構造体で WINBIO_IDENTITY および WINBIO_BIOMETRIC_SUBTYPE の情報を返します。操作が失敗した場合は、エラー情報を返します。WINBIO_ASYNC_RESULT 構造体は、WinBioAsyncOpenSession 関数の NotificationMethod パラメーターに設定した値に応じて、アプリケーションのコールバックまたはアプリケーションのメッセージキューに返されます。

メモリリークを防ぐため、WINBIO_ASYNC_RESULT 構造体の使用が終わったら、WinBioFree を呼び出して解放する必要があります。

例

次のコード例では、特定のバイオメトリックテンプレートを削除するために WinBioDeleteTemplate を呼び出します。Winbio.lib スタティックライブラリをリンクし、次のヘッダーファイルをインクルードしてください。

HRESULT DeleteTemplate(WINBIO_BIOMETRIC_SUBTYPE subFactor)
{
    HRESULT hr = S_OK;
    WINBIO_IDENTITY identity = {0};
    WINBIO_SESSION_HANDLE sessionHandle = NULL;
    WINBIO_UNIT_ID unitId = 0;

    // ユーザーの ID を取得します。
    hr = GetCurrentUserIdentity( &identity );
    if (FAILED(hr))
    {
        wprintf_s(L"\n User identity not found. hr = 0x%x\n", hr);
        goto e_Exit;
    }

    // システムプールに接続します。 
    //
    hr = WinBioOpenSession( 
            WINBIO_TYPE_FINGERPRINT,    // サービスプロバイダー
            WINBIO_POOL_SYSTEM,         // プールの種類
            WINBIO_FLAG_DEFAULT,        // 構成とアクセス
            NULL,                       // バイオメトリックユニット ID の配列
            0,                          // バイオメトリックユニット ID の個数
            NULL,                       // データベース ID
            &sessionHandle              // [out] セッションハンドル
            );
    if (FAILED(hr))
    {
        wprintf_s(L"\n WinBioEnumBiometricUnits failed. hr = 0x%x\n", hr);
        goto e_Exit;
    }

    // センサーを特定します。
    //
    wprintf_s(L"\n Swipe your finger on the sensor...\n");
    hr = WinBioLocateSensor( sessionHandle, &unitId);
    if (FAILED(hr))
    {
        wprintf_s(L"\n WinBioLocateSensor failed. hr = 0x%x\n", hr);
        goto e_Exit;
    }

    // subFactor 引数で指定されたテンプレートを削除します。
    //
    hr = WinBioDeleteTemplate(
            sessionHandle,
            unitId,
            &identity,
            subFactor
            );
    if (FAILED(hr))
    {
        wprintf_s(L"\n WinBioDeleteTemplate failed. hr = 0x%x\n", hr);
        goto e_Exit;
    }

e_Exit:
    if (sessionHandle != NULL)
    {
        WinBioCloseSession(sessionHandle);
        sessionHandle = NULL;
    }

    wprintf_s(L"Press any key to exit...");
    _getch();

    return hr;
}

//------------------------------------------------------------------------
// 次の関数は現在のユーザーの ID を取得します。
// これはヘルパー関数であり、Windows Biometric Framework API の
// 一部ではありません。
//
HRESULT GetCurrentUserIdentity(__inout PWINBIO_IDENTITY Identity)
{
    // 変数を宣言します。
    HRESULT hr = S_OK;
    HANDLE tokenHandle = NULL;
    DWORD bytesReturned = 0;
    struct{
        TOKEN_USER tokenUser;
        BYTE buffer[SECURITY_MAX_SID_SIZE];
    } tokenInfoBuffer;

    // 入力の identity をゼロクリアし、種類を指定します。
    ZeroMemory( Identity, sizeof(WINBIO_IDENTITY));
    Identity->Type = WINBIO_ID_TYPE_NULL;

    // 現在のプロセスに関連付けられたアクセストークンを
    // 開きます。
    if (!OpenProcessToken(
            GetCurrentProcess(),            // プロセスハンドル
            TOKEN_READ,                     // 読み取りアクセスのみ
            &tokenHandle))                  // アクセストークンのハンドル
    {
        DWORD win32Status = GetLastError();
        wprintf_s(L"Cannot open token handle: %d\n", win32Status);
        hr = HRESULT_FROM_WIN32(win32Status);
        goto e_Exit;
    }

    // tokenInfoBuffer 構造体をゼロクリアします。
    ZeroMemory(&tokenInfoBuffer, sizeof(tokenInfoBuffer));

    // アクセストークンに関する情報を取得します。ここでは
    // SID を取得します。
    if (!GetTokenInformation(
            tokenHandle,                    // アクセストークンのハンドル
            TokenUser,                      // トークンのユーザー
            &tokenInfoBuffer.tokenUser,     // 格納先のバッファー
            sizeof(tokenInfoBuffer),        // バッファーのサイズ
            &bytesReturned))                // 必要なサイズ
    {
        DWORD win32Status = GetLastError();
        wprintf_s(L"Cannot query token information: %d\n", win32Status);
        hr = HRESULT_FROM_WIN32(win32Status);
        goto e_Exit;
    }

    // SID を tokenInfoBuffer 構造体から WINBIO_IDENTITY
    // 構造体にコピーします。 
    CopySid(
        SECURITY_MAX_SID_SIZE,
        Identity->Value.AccountSid.Data,
        tokenInfoBuffer.tokenUser.User.Sid
        );

    // SID のサイズを指定し、WINBIO_IDENTITY 構造体の type
    // メンバーに WINBIO_ID_TYPE_SID を設定します。
    Identity->Value.AccountSid.Size = GetLengthSid(tokenInfoBuffer.tokenUser.User.Sid);
    Identity->Type = WINBIO_ID_TYPE_SID;

e_Exit:

    if (tokenHandle != NULL)
    {
        CloseHandle(tokenHandle);
    }

    return hr;
}

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での呼び出し定義

// winbio.dll
#include <windows.h>

HRESULT WinBioDeleteTemplate(
    DWORD SessionHandle,
    DWORD UnitId,
    WINBIO_IDENTITY* Identity,
    BYTE SubFactor
);
[DllImport("winbio.dll", ExactSpelling = true)]
static extern int WinBioDeleteTemplate(
    uint SessionHandle,   // DWORD
    uint UnitId,   // DWORD
    IntPtr Identity,   // WINBIO_IDENTITY*
    byte SubFactor   // BYTE
);
<DllImport("winbio.dll", ExactSpelling:=True)>
Public Shared Function WinBioDeleteTemplate(
    SessionHandle As UInteger,   ' DWORD
    UnitId As UInteger,   ' DWORD
    Identity As IntPtr,   ' WINBIO_IDENTITY*
    SubFactor As Byte   ' BYTE
) As Integer
End Function
' SessionHandle : DWORD
' UnitId : DWORD
' Identity : WINBIO_IDENTITY*
' SubFactor : BYTE
Declare PtrSafe Function WinBioDeleteTemplate Lib "winbio" ( _
    ByVal SessionHandle As Long, _
    ByVal UnitId As Long, _
    ByVal Identity As LongPtr, _
    ByVal SubFactor As Byte) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

WinBioDeleteTemplate = ctypes.windll.winbio.WinBioDeleteTemplate
WinBioDeleteTemplate.restype = ctypes.c_int
WinBioDeleteTemplate.argtypes = [
    wintypes.DWORD,  # SessionHandle : DWORD
    wintypes.DWORD,  # UnitId : DWORD
    ctypes.c_void_p,  # Identity : WINBIO_IDENTITY*
    ctypes.c_ubyte,  # SubFactor : BYTE
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('winbio.dll')
WinBioDeleteTemplate = Fiddle::Function.new(
  lib['WinBioDeleteTemplate'],
  [
    -Fiddle::TYPE_INT,  # SessionHandle : DWORD
    -Fiddle::TYPE_INT,  # UnitId : DWORD
    Fiddle::TYPE_VOIDP,  # Identity : WINBIO_IDENTITY*
    -Fiddle::TYPE_CHAR,  # SubFactor : BYTE
  ],
  Fiddle::TYPE_INT)
#[link(name = "winbio")]
extern "system" {
    fn WinBioDeleteTemplate(
        SessionHandle: u32,  // DWORD
        UnitId: u32,  // DWORD
        Identity: *mut WINBIO_IDENTITY,  // WINBIO_IDENTITY*
        SubFactor: u8  // BYTE
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("winbio.dll")]
public static extern int WinBioDeleteTemplate(uint SessionHandle, uint UnitId, IntPtr Identity, byte SubFactor);
"@
$api = Add-Type -MemberDefinition $sig -Name 'winbio_WinBioDeleteTemplate' -Namespace Win32 -PassThru
# $api::WinBioDeleteTemplate(SessionHandle, UnitId, Identity, SubFactor)
#uselib "winbio.dll"
#func global WinBioDeleteTemplate "WinBioDeleteTemplate" sptr, sptr, sptr, sptr
; WinBioDeleteTemplate SessionHandle, UnitId, varptr(Identity), SubFactor   ; 戻り値は stat
; SessionHandle : DWORD -> "sptr"
; UnitId : DWORD -> "sptr"
; Identity : WINBIO_IDENTITY* -> "sptr"
; SubFactor : BYTE -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
出力引数:
#uselib "winbio.dll"
#cfunc global WinBioDeleteTemplate "WinBioDeleteTemplate" int, int, var, int
; res = WinBioDeleteTemplate(SessionHandle, UnitId, Identity, SubFactor)
; SessionHandle : DWORD -> "int"
; UnitId : DWORD -> "int"
; Identity : WINBIO_IDENTITY* -> "var"
; SubFactor : BYTE -> "int"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
出力引数:
; HRESULT WinBioDeleteTemplate(DWORD SessionHandle, DWORD UnitId, WINBIO_IDENTITY* Identity, BYTE SubFactor)
#uselib "winbio.dll"
#cfunc global WinBioDeleteTemplate "WinBioDeleteTemplate" int, int, var, int
; res = WinBioDeleteTemplate(SessionHandle, UnitId, Identity, SubFactor)
; SessionHandle : DWORD -> "int"
; UnitId : DWORD -> "int"
; Identity : WINBIO_IDENTITY* -> "var"
; SubFactor : BYTE -> "int"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	winbio = windows.NewLazySystemDLL("winbio.dll")
	procWinBioDeleteTemplate = winbio.NewProc("WinBioDeleteTemplate")
)

// SessionHandle (DWORD), UnitId (DWORD), Identity (WINBIO_IDENTITY*), SubFactor (BYTE)
r1, _, err := procWinBioDeleteTemplate.Call(
	uintptr(SessionHandle),
	uintptr(UnitId),
	uintptr(Identity),
	uintptr(SubFactor),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // HRESULT
function WinBioDeleteTemplate(
  SessionHandle: DWORD;   // DWORD
  UnitId: DWORD;   // DWORD
  Identity: Pointer;   // WINBIO_IDENTITY*
  SubFactor: Byte   // BYTE
): Integer; stdcall;
  external 'winbio.dll' name 'WinBioDeleteTemplate';
result := DllCall("winbio\WinBioDeleteTemplate"
    , "UInt", SessionHandle   ; DWORD
    , "UInt", UnitId   ; DWORD
    , "Ptr", Identity   ; WINBIO_IDENTITY*
    , "UChar", SubFactor   ; BYTE
    , "Int")   ; return: HRESULT
●WinBioDeleteTemplate(SessionHandle, UnitId, Identity, SubFactor) = DLL("winbio.dll", "int WinBioDeleteTemplate(dword, dword, void*, byte)")
# 呼び出し: WinBioDeleteTemplate(SessionHandle, UnitId, Identity, SubFactor)
# SessionHandle : DWORD -> "dword"
# UnitId : DWORD -> "dword"
# Identity : WINBIO_IDENTITY* -> "void*"
# SubFactor : BYTE -> "byte"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
const std = @import("std");

extern "winbio" fn WinBioDeleteTemplate(
    SessionHandle: u32, // DWORD
    UnitId: u32, // DWORD
    Identity: [*c]WINBIO_IDENTITY, // WINBIO_IDENTITY*
    SubFactor: u8 // BYTE
) callconv(std.os.windows.WINAPI) i32;
proc WinBioDeleteTemplate(
    SessionHandle: uint32,  # DWORD
    UnitId: uint32,  # DWORD
    Identity: ptr WINBIO_IDENTITY,  # WINBIO_IDENTITY*
    SubFactor: uint8  # BYTE
): int32 {.importc: "WinBioDeleteTemplate", stdcall, dynlib: "winbio.dll".}
pragma(lib, "winbio");
extern(Windows)
int WinBioDeleteTemplate(
    uint SessionHandle,   // DWORD
    uint UnitId,   // DWORD
    WINBIO_IDENTITY* Identity,   // WINBIO_IDENTITY*
    ubyte SubFactor   // BYTE
);
ccall((:WinBioDeleteTemplate, "winbio.dll"), stdcall, Int32,
      (UInt32, UInt32, Ptr{WINBIO_IDENTITY}, UInt8),
      SessionHandle, UnitId, Identity, SubFactor)
# SessionHandle : DWORD -> UInt32
# UnitId : DWORD -> UInt32
# Identity : WINBIO_IDENTITY* -> Ptr{WINBIO_IDENTITY}
# SubFactor : BYTE -> UInt8
# stdcall は 32bit のみ意味を持つ(x64 では無視)。
local ffi = require("ffi")
ffi.cdef[[
int32_t WinBioDeleteTemplate(
    uint32_t SessionHandle,
    uint32_t UnitId,
    void* Identity,
    uint8_t SubFactor);
]]
local winbio = ffi.load("winbio")
-- winbio.WinBioDeleteTemplate(SessionHandle, UnitId, Identity, SubFactor)
-- SessionHandle : DWORD
-- UnitId : DWORD
-- Identity : WINBIO_IDENTITY*
-- SubFactor : BYTE
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
const koffi = require('koffi');
const lib = koffi.load('winbio.dll');
const WinBioDeleteTemplate = lib.func('__stdcall', 'WinBioDeleteTemplate', 'int32_t', ['uint32_t', 'uint32_t', 'void *', 'uint8_t']);
// WinBioDeleteTemplate(SessionHandle, UnitId, Identity, SubFactor)
// SessionHandle : DWORD -> 'uint32_t'
// UnitId : DWORD -> 'uint32_t'
// Identity : WINBIO_IDENTITY* -> 'void *'
// SubFactor : BYTE -> 'uint8_t'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。
const lib = Deno.dlopen("winbio.dll", {
  WinBioDeleteTemplate: { parameters: ["u32", "u32", "pointer", "u8"], result: "i32" },
});
// lib.symbols.WinBioDeleteTemplate(SessionHandle, UnitId, Identity, SubFactor)
// SessionHandle : DWORD -> "u32"
// UnitId : DWORD -> "u32"
// Identity : WINBIO_IDENTITY* -> "pointer"
// SubFactor : BYTE -> "u8"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。
<?php
$ffi = FFI::cdef(<<<C
int32_t WinBioDeleteTemplate(
    uint32_t SessionHandle,
    uint32_t UnitId,
    void* Identity,
    uint8_t SubFactor);
C, "winbio.dll");
// $ffi->WinBioDeleteTemplate(SessionHandle, UnitId, Identity, SubFactor);
// SessionHandle : DWORD
// UnitId : DWORD
// Identity : WINBIO_IDENTITY*
// SubFactor : BYTE
// 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
// WINAPI(stdcall): x64 では呼出規約が統一されるため問題なし。x86 では __stdcall 対応のラッパが必要な場合あり。
import com.sun.jna.*;
import com.sun.jna.ptr.*;
import com.sun.jna.win32.StdCallLibrary;
import com.sun.jna.win32.W32APIOptions;

public interface Winbio extends StdCallLibrary {
    Winbio INSTANCE = Native.load("winbio", Winbio.class);
    int WinBioDeleteTemplate(
        int SessionHandle,   // DWORD
        int UnitId,   // DWORD
        Pointer Identity,   // WINBIO_IDENTITY*
        byte SubFactor   // BYTE
    );
}
@[Link("winbio")]
lib Libwinbio
  fun WinBioDeleteTemplate = WinBioDeleteTemplate(
    SessionHandle : UInt32,   # DWORD
    UnitId : UInt32,   # DWORD
    Identity : WINBIO_IDENTITY*,   # WINBIO_IDENTITY*
    SubFactor : UInt8   # BYTE
  ) : Int32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。
import 'dart:ffi';
import 'package:ffi/ffi.dart';

typedef WinBioDeleteTemplateNative = Int32 Function(Uint32, Uint32, Pointer<Void>, Uint8);
typedef WinBioDeleteTemplateDart = int Function(int, int, Pointer<Void>, int);
final WinBioDeleteTemplate = DynamicLibrary.open('winbio.dll')
    .lookupFunction<WinBioDeleteTemplateNative, WinBioDeleteTemplateDart>('WinBioDeleteTemplate');
// SessionHandle : DWORD -> Uint32
// UnitId : DWORD -> Uint32
// Identity : WINBIO_IDENTITY* -> Pointer<Void>
// SubFactor : BYTE -> Uint8
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。
{$mode objfpc}{$H+}
function WinBioDeleteTemplate(
  SessionHandle: DWORD;   // DWORD
  UnitId: DWORD;   // DWORD
  Identity: Pointer;   // WINBIO_IDENTITY*
  SubFactor: Byte   // BYTE
): Integer; stdcall;
  external 'winbio.dll' name 'WinBioDeleteTemplate';
import Foreign
import Foreign.C.Types
import Foreign.C.String

foreign import stdcall safe "WinBioDeleteTemplate"
  c_WinBioDeleteTemplate :: Word32 -> Word32 -> Ptr () -> Word8 -> IO Int32
-- SessionHandle : DWORD -> Word32
-- UnitId : DWORD -> Word32
-- Identity : WINBIO_IDENTITY* -> Ptr ()
-- SubFactor : BYTE -> Word8
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。
open Ctypes
open Foreign

let winbiodeletetemplate =
  foreign "WinBioDeleteTemplate"
    (uint32_t @-> uint32_t @-> (ptr void) @-> uint8_t @-> returning int32_t)
(* SessionHandle : DWORD -> uint32_t *)
(* UnitId : DWORD -> uint32_t *)
(* Identity : WINBIO_IDENTITY* -> (ptr void) *)
(* SubFactor : BYTE -> uint8_t *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)
(cffi:define-foreign-library winbio (t "winbio.dll"))
(cffi:use-foreign-library winbio)

(cffi:defcfun ("WinBioDeleteTemplate" win-bio-delete-template :convention :stdcall) :int32
  (session-handle :uint32)   ; DWORD
  (unit-id :uint32)   ; DWORD
  (identity :pointer)   ; WINBIO_IDENTITY*
  (sub-factor :uint8))   ; BYTE
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。
use Win32::API;
my $WinBioDeleteTemplate = Win32::API::More->new('winbio',
    'int WinBioDeleteTemplate(DWORD SessionHandle, DWORD UnitId, LPVOID Identity, BYTE SubFactor)');
# my $ret = $WinBioDeleteTemplate->Call($SessionHandle, $UnitId, $Identity, $SubFactor);
# SessionHandle : DWORD -> DWORD
# UnitId : DWORD -> DWORD
# Identity : WINBIO_IDENTITY* -> LPVOID
# SubFactor : BYTE -> BYTE
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。

関連項目

使用する型