123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #include "stdafx.h"
- #include "MachineMgrBase.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- CMachineMgrBase* g_pCMachineMgrBase = NULL;
- CMachineMgrBase::CMachineMgrBase()
- {
- m_bOpenDevice = 0;
- m_pOcxCtrl = NULL;
- m_lpCfg = NULL;
- }
- CMachineMgrBase::CMachineMgrBase(CWnd* pOcx)
- {
- m_bOpenDevice = 0;
- m_pOcxCtrl = pOcx;
- m_lpCfg = NULL;
- }
- CMachineMgrBase::~CMachineMgrBase()
- {
- if(m_pOcxCtrl)
- m_pOcxCtrl = NULL;
- if(m_lpCfg)
- m_lpCfg = NULL;
- }
- int CMachineMgrBase::InitMgrCfg(LPDEVICECFG lpCfg)
- {
- if(lpCfg == NULL)
- return 0;
- if(m_lpCfg != NULL)
- return 1;
- m_lpCfg = lpCfg;
- return 1;
- }
- int CMachineMgrBase::OpenDevice()
- {
- return 1;
- }
- int CMachineMgrBase::CloseDevice()
- {
- return 1;
- }
- //读取记录
- int CMachineMgrBase::ReadGeneralLogData(std::vector<STGeneralLogData>* pVData)
- {
- return 0;
- }
- int CMachineMgrBase::ReadAllGlLogData(std::vector<STGeneralLogData>* pVData)
- {
- return 0;
- }
- int CMachineMgrBase::USBReadSuperLogData(LPWSTR LPSZFileName)
- {
- return 0;
- }
- void CMachineMgrBase::SetReadMark(BOOL propVal)
- {
- }
- //设置指纹机可用/不可用
- BOOL CMachineMgrBase::SetMachineEnable(BOOL bEnable/*=TRUE*/)
- {
- return TRUE;
- }
- //
- BOOL CMachineMgrBase::SolveError(CONST LONG& nErroCode)
- {
- return TRUE;
- }
- BOOL CMachineMgrBase::DelLogData()
- {
- return FALSE;
- }
- //清除所有管理员
- int CMachineMgrBase::BenumbAllManager()
- {
- return 0;
- }
|