how to configure bio metric sensor to creating private pool?
-
What is GUID parameter in WinBioOpenSession() ?
-
This is what I tried... please help
BOOL CPrivatePoolBioDlg::EnrollFingerprint()
{
WINBIO_UNIT_SCHEMA *unitSchemaArray = NULL;
SIZE_T unitSchemaCount = 0;WINBIO\_UNIT\_ID unitIdArray\[1\]={}; SIZE\_T unitIdCount = ARRAYSIZE(unitIdArray); WINBIO\_SESSION\_HANDLE sessionHandle; HRESULT hr; // = S\_OK;
//Enumarating devices...
hr = WinBioEnumBiometricUnits(WINBIO_TYPE_FINGERPRINT,&unitSchemaArray,&unitSchemaCount);if(FAILED(hr))
{
CString m;
m.Format(_T("Unable to Enumarate Device 0x%08x"),hr);
AfxMessageBox(m);
return 0;
}
//Enumaration Success...
unitIdArray[0] = unitSchemaArray[0].UnitId;//Opening the session...
hr = WinBioOpenSession(WINBIO_TYPE_FINGERPRINT,WINBIO_POOL_PRIVATE,WINBIO_FLAG_BASIC,
unitIdArray,unitIdCount,&PRIVATE_POOL_DATABASE_ID,&sessionHandle);
if(FAILED(hr))
{
///////////////////////HERE FUNCTION IS RETURNING WINBIO_E_CONFIGURATION_FAILURE////////////////////
CString m;
m.Format(_T("Unable to Start session 0x%08x, %d"),hr, GetLastError());
AfxMessageBox(m);
return 0;
}//Session opened...
WinBioCloseSession(sessionHandle);
return 1;
} -
See WinBioOpenSession function[^]
There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
Sir there is only example for creating system pool not the private pool
-
This is what I tried... please help
BOOL CPrivatePoolBioDlg::EnrollFingerprint()
{
WINBIO_UNIT_SCHEMA *unitSchemaArray = NULL;
SIZE_T unitSchemaCount = 0;WINBIO\_UNIT\_ID unitIdArray\[1\]={}; SIZE\_T unitIdCount = ARRAYSIZE(unitIdArray); WINBIO\_SESSION\_HANDLE sessionHandle; HRESULT hr; // = S\_OK;
//Enumarating devices...
hr = WinBioEnumBiometricUnits(WINBIO_TYPE_FINGERPRINT,&unitSchemaArray,&unitSchemaCount);if(FAILED(hr))
{
CString m;
m.Format(_T("Unable to Enumarate Device 0x%08x"),hr);
AfxMessageBox(m);
return 0;
}
//Enumaration Success...
unitIdArray[0] = unitSchemaArray[0].UnitId;//Opening the session...
hr = WinBioOpenSession(WINBIO_TYPE_FINGERPRINT,WINBIO_POOL_PRIVATE,WINBIO_FLAG_BASIC,
unitIdArray,unitIdCount,&PRIVATE_POOL_DATABASE_ID,&sessionHandle);
if(FAILED(hr))
{
///////////////////////HERE FUNCTION IS RETURNING WINBIO_E_CONFIGURATION_FAILURE////////////////////
CString m;
m.Format(_T("Unable to Start session 0x%08x, %d"),hr, GetLastError());
AfxMessageBox(m);
return 0;
}//Session opened...
WinBioCloseSession(sessionHandle);
return 1;
} -
Sorry, I do not have a sensor so am unable to test your code. You need to step through it with your debugger and see what values are being generated/returned through the code.
In comment see that WinBioOpenSession() is returning
WINBIO_E_CONFIGURATION_FAILURE
-
In comment see that WinBioOpenSession() is returning
WINBIO_E_CONFIGURATION_FAILURE
-
What is GUID parameter in WinBioOpenSession() ?
It spells it out to you .. >>>>> If the PoolType parameter is WINBIO_POOL_PRIVATE, you must specify the GUID of an installed database <<<<<< Can you tell us what PRIVATE_POOL_DATABASE_ID is in your code? You haven't shown us the database entry ... the bit where it usually links in the .DAT file into a database
In vino veritas
-
Sir there is only example for creating system pool not the private pool
yes there is it is spelled out in very clear steps Private Pool Setup (Windows)[^] If you googled private pool setup MSDN you would have found it ... that is after all what you are trying to setup a private pool database. 3rd entry down gives you the funky GUID you need once you have the database online.
In vino veritas
-
It spells it out to you .. >>>>> If the PoolType parameter is WINBIO_POOL_PRIVATE, you must specify the GUID of an installed database <<<<<< Can you tell us what PRIVATE_POOL_DATABASE_ID is in your code? You haven't shown us the database entry ... the bit where it usually links in the .DAT file into a database
In vino veritas
Sorry for this but I used the same as mentioned in msdn Private Pool Setup. Because first of all I wanted to know how it works and if I'm able to take one fingerprint sample using private pool then after I can go further. Actually I'm working on Fingerprint Attendance Demo project for practicing so can you give me suggestion what database I can use to store fingerprint template and corresponding user details and How to get GUID of Installed Database...
GUID PRIVATE_POOL_DATABASE_ID =
{ 0x5086745d, 0xb3f9, 0x4da7, { 0x85, 0x9e, 0x9c, 0xc4, 0x33, 0x1c, 0xe4, 0x7c } }; -
Sorry for this but I used the same as mentioned in msdn Private Pool Setup. Because first of all I wanted to know how it works and if I'm able to take one fingerprint sample using private pool then after I can go further. Actually I'm working on Fingerprint Attendance Demo project for practicing so can you give me suggestion what database I can use to store fingerprint template and corresponding user details and How to get GUID of Installed Database...
GUID PRIVATE_POOL_DATABASE_ID =
{ 0x5086745d, 0xb3f9, 0x4da7, { 0x85, 0x9e, 0x9c, 0xc4, 0x33, 0x1c, 0xe4, 0x7c } };You need to show us the code you are using. So you are using the msdn private pool sample as your database but have you actually checked it? Did you try the entity sample to check the database is working? I can't tell if the database is empty for example and you haven't enrolled any fingerprints so you have no pool to match against. You are reporting a config error which usually means a database problem. Can I ask have you tried using the WINBIO_POOL_SYSTEM it is a little easier and at this stage you just need to get it working?
In vino veritas
-
You need to show us the code you are using. So you are using the msdn private pool sample as your database but have you actually checked it? Did you try the entity sample to check the database is working? I can't tell if the database is empty for example and you haven't enrolled any fingerprints so you have no pool to match against. You are reporting a config error which usually means a database problem. Can I ask have you tried using the WINBIO_POOL_SYSTEM it is a little easier and at this stage you just need to get it working?
In vino veritas
Yes using system pool its working fine I can enroll fingerprint also there was no problem
-
Yes using system pool its working fine I can enroll fingerprint also there was no problem
Ok so it's as we suspected the private pool database. So in your program before using the private pool make sure you can access it. Things we are concerned about 1.) You don't have access rights to the private pool (It was created with different access rights to what you have now) 2.) It failed to create or it's empty 3.) The GUID for it is incorrrect
In vino veritas
-
Yes, so you obviously have some information in your configuration parameters that are not acceptable. But as I already explained, I do not have a bio device, so cannot test your code.
Got it Sir... The problem is in starting WbioSrvc Service and creating configuration in registry values.
-
Yes, so you obviously have some information in your configuration parameters that are not acceptable. But as I already explained, I do not have a bio device, so cannot test your code.
Thanks for helping!
-
Ok so it's as we suspected the private pool database. So in your program before using the private pool make sure you can access it. Things we are concerned about 1.) You don't have access rights to the private pool (It was created with different access rights to what you have now) 2.) It failed to create or it's empty 3.) The GUID for it is incorrrect
In vino veritas
Yes Now I Understood sir, The problem is in configuration and starting the WbioSrvc Thanks For the Help!