licenseexport.h

来自「跨操作系统的微型中间件」· C头文件 代码 · 共 39 行

H
39
字号
#ifndef _LICENSEEXPORT_H_
#define _LICENSEEXPORT_H_

#ifdef WIN32
	#ifdef _IMPORT_
	#define CALLMOTHED extern "C" __declspec(dllimport)
	#endif

	#ifdef _EXPORT_
	#define CALLMOTHED extern "C" __declspec(dllexport)
	#endif

	#ifndef CALLMOTHED
	#define CALLMOTHED extern "C" __declspec(dllimport)
	#endif
#else
	#define CALLMOTHED extern "C"
	#define __stdcall	
#endif

/* Describe:
	*  Verify the certificate
	* Input:
	szFileName -- a string contain the path of the certificate 
	* Output:
	license -- a structure contain all of licensed information.	
	* Return:
	* 0 -- success
	* -1 -- Open File failed
	* -2 -- Verify the certificate failed.
*/
namespace License
{
	CALLMOTHED int __stdcall VerifyCertificate(const char *szFileName);

	CALLMOTHED int __stdcall Init( void* pInitPara );
}

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?