#include "StdAfx.h" #include "SuperDogMgr.h" #include "LogMgr.h" #include "FileMgr.h" #include "GlobalFunction.h" #include "MsgBox.h" #ifdef __USE_SUPER_DOG__ #pragma comment( lib, "KernelMode.lib") CKernelMode gKernelMode; #endif CSuperDogMgr *gSuperDogMgr = new CSuperDogMgr; CSuperDogMgr::CSuperDogMgr(void) { } CSuperDogMgr::~CSuperDogMgr(void) { } //检查加密状态 bool CSuperDogMgr::CheckState() { #ifdef __USE_SUPER_DOG__ int code = gKernelMode.CheckState(); if(code>0) { CString s; s.Format(_T("设备使用授权有问题 ,请联系供应商 (code :53000%d)"),code); CMsgBox MsgBox; MsgBox.Show(s); return false; } #endif return true; }