Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to configure bio metric sensor to creating private pool?

how to configure bio metric sensor to creating private pool?

Scheduled Pinned Locked Moved C / C++ / MFC
questioniottutorial
17 Posts 4 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Premnath Mali
    wrote on last edited by
    #1

    What is GUID parameter in WinBioOpenSession() ?

    L Z L 3 Replies Last reply
    0
    • P Premnath Mali

      What is GUID parameter in WinBioOpenSession() ?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What does the documentation say?

      P 1 Reply Last reply
      0
      • P Premnath Mali

        What is GUID parameter in WinBioOpenSession() ?

        Z Offline
        Z Offline
        ZurdoDev
        wrote on last edited by
        #3

        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.

        P 1 Reply Last reply
        0
        • L Lost User

          What does the documentation say?

          P Offline
          P Offline
          Premnath Mali
          wrote on last edited by
          #4

          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;
          }

          L 1 Reply Last reply
          0
          • Z ZurdoDev

            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.

            P Offline
            P Offline
            Premnath Mali
            wrote on last edited by
            #5

            Sir there is only example for creating system pool not the private pool

            L 1 Reply Last reply
            0
            • P Premnath Mali

              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;
              }

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              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.

              P 1 Reply Last reply
              0
              • L Lost User

                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.

                P Offline
                P Offline
                Premnath Mali
                wrote on last edited by
                #7

                In comment see that WinBioOpenSession() is returning

                WINBIO_E_CONFIGURATION_FAILURE

                L 1 Reply Last reply
                0
                • P Premnath Mali

                  In comment see that WinBioOpenSession() is returning

                  WINBIO_E_CONFIGURATION_FAILURE

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  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.

                  P 2 Replies Last reply
                  0
                  • P Premnath Mali

                    What is GUID parameter in WinBioOpenSession() ?

                    L Offline
                    L Offline
                    leon de boer
                    wrote on last edited by
                    #9

                    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

                    P 1 Reply Last reply
                    0
                    • P Premnath Mali

                      Sir there is only example for creating system pool not the private pool

                      L Offline
                      L Offline
                      leon de boer
                      wrote on last edited by
                      #10

                      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

                      1 Reply Last reply
                      0
                      • L leon de boer

                        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

                        P Offline
                        P Offline
                        Premnath Mali
                        wrote on last edited by
                        #11

                        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 } };

                        L 1 Reply Last reply
                        0
                        • P Premnath Mali

                          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 } };

                          L Offline
                          L Offline
                          leon de boer
                          wrote on last edited by
                          #12

                          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

                          P 1 Reply Last reply
                          0
                          • L leon de boer

                            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

                            P Offline
                            P Offline
                            Premnath Mali
                            wrote on last edited by
                            #13

                            Yes using system pool its working fine I can enroll fingerprint also there was no problem

                            L 1 Reply Last reply
                            0
                            • P Premnath Mali

                              Yes using system pool its working fine I can enroll fingerprint also there was no problem

                              L Offline
                              L Offline
                              leon de boer
                              wrote on last edited by
                              #14

                              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

                              P 1 Reply Last reply
                              0
                              • L Lost User

                                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.

                                P Offline
                                P Offline
                                Premnath Mali
                                wrote on last edited by
                                #15

                                Thanks for helping!

                                1 Reply Last reply
                                0
                                • L Lost User

                                  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.

                                  P Offline
                                  P Offline
                                  Premnath Mali
                                  wrote on last edited by
                                  #16

                                  Got it Sir... The problem is in starting WbioSrvc Service and creating configuration in registry values.

                                  1 Reply Last reply
                                  0
                                  • L leon de boer

                                    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

                                    P Offline
                                    P Offline
                                    Premnath Mali
                                    wrote on last edited by
                                    #17

                                    Yes Now I Understood sir, The problem is in configuration and starting the WbioSrvc Thanks For the Help!

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups