LUMI_ID_ERROR LumiDeviceCtrl::GetSystemMetrics(DBGroupMetrics** pDBMets, uint &nNumActiveGroups) { SetLastError(""); if(!GoodHandle()) return LUMI_ID_GEN_ERROR_ID_OPERATION_FAILED; V100_ERROR_CODE rc = GEN_OK; _MX00_DB_METRICS* pSysDBMetrics = NULL; rc = V100_ID_Get_System_Metrics(&m_DevHdl, &pSysDBMetrics, nNumActiveGroups); if(GEN_OK != rc) { SetLastError(rc, "V100_ID_Get_System_Metrics"); goto Exit; } *pDBMets = new DBGroupMetrics[nNumActiveGroups]; _MX00_DB_METRICS* pTmpSrc = pSysDBMetrics; DBGroupMetrics* pTmpDst = *pDBMets; for(uint ii = 0; ii < nNumActiveGroups; ++ii) { pTmpDst->nGroupID = pTmpSrc->nGroupID; pTmpDst->nFlags = pTmpSrc->nFlags; pTmpDst->nMaxUsers = pTmpSrc->nMaxUsers; pTmpDst->nFingersPerUser = pTmpSrc->nFingersPerUser; pTmpDst->nInstancesPerFinger = pTmpSrc->nInstancesPerFinger; pTmpDst->nCurEnrolledUserFingers = pTmpSrc->nCurEnrolledUserFingers; pTmpDst->nCurEnrolledUsers = pTmpSrc->nCurEnrolledUsers; pTmpDst++; pTmpSrc++; } Exit: if(pSysDBMetrics) V100_ID_Release_System_Metrics(&m_DevHdl, pSysDBMetrics); return (LUMI_ID_ERROR)rc; }
pDBMets
ref
out
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)