⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 burn_dll.h

📁 iptv机顶盒写码
💻 H
字号:

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the BURN_DLL_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// BURN_DLL_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifndef BURN_DLL
#define BURN_DLL
typedef struct
{
	char mcid[65];
    char userid[11];
	char userpin[11];
	char dns1[16];
	char dns2[16];
	char domain[257];
	char address[16];  //静态IP地址
	char subnet[16];   //子网掩码
	char gateway[16];  //网关
	char pppoe_username[256];//pppoe 用户名
	char pppoe_password[256];//pppoe 密码
	char videotype;//显示制式 0 NTSC/ 1 PAL
	char nettype;//网络类型   0静态IP/1 DHCP/2 PPPOE

}Burnpara_t;

#define STB_BURN_NOERROR              0  //烧号成功
#define STB_BURN_ERROR_PARA			 100 //必须的字段为空
#define STB_BURN_ERROR_NORESPOND     101 //STB没有响应
#define STB_BURN_ERROR_WRITE         102 //烧号失败  
#define STB_BURN_ERROR_PARA_DNS      103 //DNS不符合规则

//#pragma   comment(lib,"burn_dll.lib")  

#ifdef BURN_DLL_EXPORTS
#define BURN_DLL_API __declspec(dllexport)
#else
#define BURN_DLL_API __declspec(dllimport)
#endif
extern "C" BURN_DLL_API void InitBurn();
extern "C" BURN_DLL_API void ExitBurn();
extern "C" BURN_DLL_API bool GetBurnMCID(char* MCID);
extern "C" BURN_DLL_API void ClearMCID();
extern "C" BURN_DLL_API int Burn(Burnpara_t* szBurnpara);
#endif

⌨️ 快捷键说明

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