📄 drm.h
字号:
#ifndef _DRM_H
#define _DRM_H
#ifdef _DRM_C
#define DRM_EXTERN
#else
#define DRM_EXTERN extern
#endif
DRM_EXTERN xdata BYTE _bDRMState;
DRM_EXTERN xdata BYTE _bSelBtnNo;
#define DRM_REG_CODE_ST 0X00
#define DRM_AUTH_ERR_ST 0X01
#define DRM_RENT_EXP_ST 0X02
#define DRM_RENT_LMT_ST 0X03
#define DRM_MAX_ST 0X04
#define IR_DRM_REG IR_MUTE
#ifdef _DRM_C
typedef struct sTextItem
{
WORD wPosX;
WORD wPosY;
WORD wMsgId;
} sTextItem;
#ifdef SUPPORT_DRM
//DRM display registeration code title define
code sTextItem _rDRMDRCTTLine1={70,16,OSD_MSG_DRM_DRC1};
code sTextItem *_prDRMDRCTT[]={&_rDRMDRCTTLine1};
#define DRM_DRC_TT_LINE_NO TBL_SIZE(_prDRMDRCTT)
//DRM display registeration code content define
code sTextItem _rDRMDRCCNTLine0={30,46,OSD_MSG_DRM_DRC2};
code sTextItem _rDRMDRCCNTLine1={30,76,OSD_MSG_DRM_DRC3};
code sTextItem _rDRMDRCCNTLine2={30,106,OSD_MSG_DRM_DRC4};
code sTextItem _rDRMDRCCNTLine3={30,136,OSD_MSG_DRM_DRC5};
code sTextItem _rDRMDRCCNTLine4={30,166,OSD_MSG_DRM_DRC6};
code sTextItem _rDRMDRCCNTLine5={30,196,OSD_MSG_DRM_DRC7};
//code sTextItem _rDRMDRCCNTLine6={30,230,OSD_MSG_DRM_DRC8};
//code sTextItem _rDRMDRCCNTLine7={30,260,OSD_MSG_DRM_DRC9};
code sTextItem *_prDRMDRCCNT[]={&_rDRMDRCCNTLine0,&_rDRMDRCCNTLine1,&_rDRMDRCCNTLine2,
&_rDRMDRCCNTLine3,&_rDRMDRCCNTLine4,
&_rDRMDRCCNTLine5/*,&_rDRMDRCCNTLine6,
&_rDRMDRCCNTLine7*/};
#define DRM_DRC_CNT_LINE_NO TBL_SIZE(_prDRMDRCCNT)
#define DRM_DRC_RG_CODE_X 300
#define DRM_DRC_RG_CODE_Y 46
//DRM Display Authorization Error Message title define
code sTextItem _rDRMErrTTLine1={150,60,OSD_MSG_DRM_DRERR1};
code sTextItem *_prDRMErrTT[]={&_rDRMErrTTLine1};
//DRM Display Authorization Error Message content define
code sTextItem _rDRMErrCntLine1={40,100,OSD_MSG_DRM_DRERR2};
code sTextItem _rDRMErrCntLine2={40,130,OSD_MSG_DRM_DRERR3};
code sTextItem _rDRMErrCntLine3={40,160,OSD_MSG_DRM_DRERR4};
code sTextItem *_prDRMErrCnt[]={&_rDRMErrCntLine1,&_rDRMErrCntLine2
};//vDRMRegCodeKey();
//DRM Display Rental Expired Message title define
code sTextItem _rDRMRntExpTT={180,60,OSD_MSG_DRM_DRRTEXP1};
code sTextItem *_prDRMRntExpTT[]={&_rDRMRntExpTT};
//DRM Display Rental Expired Message content define
code sTextItem _rDRMRntExpCntLine1={140,120,OSD_MSG_DRM_DRRTEXP2};
code sTextItem *_prDRMRntExpCnt[]={&_rDRMRntExpCntLine1};
//DRM Display Rental Confirmation Choice title define
code sTextItem _rDRMRTLMTTT={140,20,OSD_MSG_DRM_DRRTLM1};
code sTextItem *_prDRMRTLMTTT[]={&_rDRMRTLMTTT};
//DRM Display Rental Confirmation Choice content define
code sTextItem _rDRMRTLMTCntLine1={40,90,OSD_MSG_DRM_DRRTLM3};
code sTextItem _rDRMRTLMTCntLine2={40,120,OSD_MSG_DRM_DRRTLM4};
code sTextItem _rDRMRTLMTCntLine3={40,150,OSD_MSG_DRM_DRRTLM5};
code sTextItem _rDRMRTLMTCntLine4={40,180,OSD_MSG_DRM_DRRTLM6};
//code sTextItem _rDRMRTLMTCntLine5={40,210,OSD_MSG_DRM_DRRTLM7};
//code sTextItem _rDRMRTLMTCntLine6={40,240,OSD_MSG_DRM_DRRTLM8};
code sTextItem *_prDRMRTLMTCnt[]={&_rDRMRTLMTCntLine1,&_rDRMRTLMTCntLine2,
&_rDRMRTLMTCntLine3,&_rDRMRTLMTCntLine4/*,
&_rDRMRTLMTCntLine5,&_rDRMRTLMTCntLine6*/};
#endif // SUPPORT_DRM
#define DRM_RNTLMT_X 40
#define DRM_RNTLMT_Y 60
#define DRM_RNTLMT_MAX_BTN_NO 0X02
#endif
#define DRM_ACK(parm) (wSIItemPos(bHiByte(wHiWord((DWRD)parm)),\
(bLoByte(wHiWord((DWRD)parm))+1)))
void vDRMInit()large;
void vDRMState()large;
void vDRMExit()large;
void vJudgeDRMType()large;
void vDRMJudgeState(void)large;
void vDRMDisRgCdExitState()large;
void vDRMDisRgCdInit()large;
void vDRMDisRgCdState()large;
void vDRMRegCodeKey()large;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -