首页 > 编程知识 正文

windows api中文文档,windows怎么设置指纹

时间:2023-05-03 21:42:58 阅读:153446 作者:3253

有关相关链接的非常详细的democode,请参阅Client Application Functions

错误代码的定义Client Error Codes

函数说明WinBioEnrollBegin function

环境2

使用的是win1064系统、VS2012编译环境

三注意

1 WinBioOpenSession的第三个参数Flags [in]、capture和enroll的设定不同

hresultcapturesample ((hresult HR=s _ ok; winbio _ session _ handlesessionhandle=null; WINBIO_UNIT_ID unitId=0; winbio _ reject _ detailrejectdetail=0; PWINBIO_BIR sample=NULL; SIZE_T sampleSize=0; //connecttothesystempool.HR=winbioopensession (winbio _ type _ fingerprint,//serviceproviderwinbio _ pool _ sys //Array of biometric unit IDs 0,//countofbiometricunitidswinbio _ db _ default,//default

33558 www.Sina.com/(returnthesampleexactlyasitwascapturedbythesensor.) )。

我用capturesample可以用前几次,但试了好几次马上就挂了,WinBioOpenSession拒绝了访问

2位置传感器() )

此函数中存在一个错误,不会报告任何硬件问题。

HR=winbiolocatesensor (session handle,unitId );

//hr=0x0

//我们的芯片VDDpin用完了,这个函数很快就会回来,不等按下手指。 但是返回值仍然是0x0。

3 hresultenrollsyspool (booldiscardenrollment,winbio _ biometric _ subtypesubfactor ) )。

同步注册功能,subFactor用于指定指纹的存储位置,包括identify时显示的手指和宽字符指针

hr=WinBioEnrollBegin (

sessionHandle,//Handle to open biometric session

subFactor,//Finger to create template for

unitId //Biometric unit ID

);

在winbio_types.h中定义的:

# define winbio _ ansi _ 381 _ pos _ RH _ index _ finger ((winbio _ biometric _ subtype )2) )

注意:

1 )同一subFactor不能多次保存。 错误地报告为“WINBIO_DATA_FLAG_RAW0x8009801C”。

" thespecifiedidentityandsub-factorarealreadyenrolledinthedatabase."

2 )同一根手指不能保存两次。 不同的辅因子也不行。 将出现“WINBIO_E_DUPLICATE_ENROLLMENT 0x8009802B”错误

" thedatainabiometrictemplatematchesthatofanothertemplatealreadyinthedatabase."

注册后,因为不知道如何清除指纹信息,所以我用系统附带的账户设定()“账户设定-”指纹登录)进行了清除。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。