HRESULT SetLicenseKey(LPCSTR lpcsKey);
//生成簽名後的License文件函數,先調用CFileReadWrite::CreateFile,然後調用
//CDictionary::AddInfoToDic生成字典後,然後從字典中提取信息調用
//CFileReadWrite::WriteStringToFile
HRESULT CreateLicenseFile(LPCSTR lpcsPath);
//獲取設備特征碼函數,SN+key->MD5
HRESULT GetEsnInfo(CString& strEsn);
//License文件認證函數,此函數中先調用SetLicenseFilePath設置License文件位置
//然後調用SetProductKey,調用GetFileSectionNUM,再調用SetDictionaryNum,然後調用InitDictionary(),
//接著將讀到的License信息寫入字典
HRESULT VerifyLicenseFile(LPCSTR lpcsPath);
//獲取License分段數目函數,取CDictionary::m_iDicCount的值
HRESULT GetSectionCount(UINT& uiNum);
//獲取段中節點數目函數,調用CDictionary::GetKeyInfo
HRESULT GetKeyCount(UINT uiID, UINT& uiKeyNum);
//獲取節點名稱的函數,調用CDictionary::GetKeyI
HRESULT GetKeyInfo(UINT uiID, UINT uiIndex, CString& strKey);
//獲取節點信息對應的值函數,調用CDictionary::GetKeyValue
HRESULT GetKeyValue(UINT uiID, UINT uiIndex, CString& strValue);
//供生成License時調用設置License文件中段的數目,調用CDictionary::SetDictionaryNum來實現
HRESULTSetSectionCount(UINTuiCount);//此函數壹並對字典進行初始化;
//設置License文件中各段中節點及其值的函數,此接口函數調用類CDictionary中的
//AddInfoToDic來實現,生成字典
HRESULT SetKeyValue(UINT uiID, LPCSTR lpcsKey, LPCSTR lpcsValue );