HRESULT CBioFingerPrintDlg::EnumarateBioUnits() { HRESULT hr = S_OK; if(FAILED( WinBioEnumBiometricUnits(m_Factor,&m_UnitSchema,&m_UnitCount))) { m_msg = _T("Enumaration failed"); ShowMessage(m_msg); goto e_Exit; } for(int i=0; i<m_UnitCount; i++) { CString msg; msg.Format(_T("\nPool Type:%d"),m_UnitSchema[i].PoolType); m_unitId = m_UnitSchema[0].UnitId; ShowMessage(msg); ///////////////////////////////////////////////////// msg contains Pool Type:1 that is system pool ///////////////////////////////////////////////////// } ShowMessage(_T("Enumaration Success...")); return hr; e_Exit: if(m_UnitSchema!=NULL) { WinBioFree(m_UnitSchema); m_UnitSchema = NULL; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)