drm.h
资源名称:SDK_M5661.rar [点击查看]
上传用户:hjhsjcl
上传日期:2020-09-25
资源大小:11378k
文件大小:3k
源码类别:
压缩解压
开发平台:
C++ Builder
- /***********************************************************************************
- *
- * Copyright (C) 2005 ALi Corporation. All Rights Reserved.
- *
- * File: drm.h
- *
- * Contents:
- *
- * History:
- * Date By Reason
- * =========== =========== ===========
- * 2005/1/17 Jeremy Jiang development
- *
- ************************************************************************************/
- #ifdef _DRM_H_
- #define EXTERN
- #else
- #define EXTERN extern
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifndef uint8_t
- #define int8_t volatile char
- #define uint8_t volatile unsigned char
- #define uint16_t volatile unsigned int
- #define uint32_t volatile unsigned long
- #define addr_t volatile unsigned char xdata *
- #endif
- EXTERN XBYTE gbSecureClockState;
- #define DRM_SUCCESS _htonl(0x00000000L) //The operation completed successfully.
- #define DRM_S_FALSE _htonl(0x00000001L) //The method succeeded and returned the Boolean value FALSE.
- #define DRM_E_FAIL _htonl(0x80004005L) //An unspecified failure has occurred.
- #define DRM_E_INVALIDARG _htonl(0x80070057L) //A parameter is not valid or is a NULL pointer.
- #define DRM_E_OUTOFMEMORY _htonl(0x80000002L) //The method failed to allocate the necessary memory.
- #define DRM_E_FILENOTFOUND _htonl(0x80030002L) //The system cannot find the file specified.
- #define DRM_E_BUFFERTOOSMALL _htonl(0x8007007AL) //A buffer is too small for the data.
- #define DRM_E_NOTIMPL _htonl(0x80004001L) //Not implemented.
- #define DRM_E_NOMORE _htonl(0x80070103L) //The end of the enumeration, or no more data available.
- //Chris061024 #2 start add for Metering
- #define DSP_METER_STAGE 0x046E
- #define DSP_METER_DATALEN 0x046F
- #define DSP_METER_DATAIN 0x037C
- #define DSP_METER_ACK 0x0470
- #define DSP_METER_READ_INDEX 0x047D
- #define DSP_METER_SIGNATURE 0x0313
- #define DSP_METER_DATAOUT 0x1000
- #define DSP_METER_FORCE_ECC 0x2014
- #define DSP_METER_TEST 0x2014
- #define DSP_METER_ECC 0x05f5
- #define DSP_METER_ECC_SIZE 3232
- #define DSP_METER_SEED 0x0145
- //Chris061024 #2 end
- EXTERN void DrmGetSecureTimeChallenge(void) large;
- EXTERN void DrmGetSyncList(void) large;
- EXTERN void DrmSetLicenseResponse(void) large;
- EXTERN void DrmGetLicenseStat(void) large;
- EXTERN void DrmGetSecureClock(bit fValueOnly) large;
- EXTERN void DrmSaveSecurityTime(void); //David0600116#3 add new function for saving security colock
- EXTERN void DrmGetDeviceCertificate(bit fValueOnly) large;
- EXTERN API void DrmSetSecureTimeResponse(void) large; //David 050422
- EXTERN BOOL DrmMeterDspProcess(WORD wStage, WORD wLen, PBYTE pbData, WORD wECC) large;//Chris060904 add
- EXTERN void TurnTextTime(DWORD *dwSetTime) large;
- EXTERN void TurnTimeText(DWORD dwGetTime) large;
- //Chris 060602
- EXTERN void DrmMeterChallenge(void) large;
- EXTERN XBYTE gxbStringEditTime[6]; // time string
- EXTERN XBYTE gxbStringEditDate[6]; // date string
- #ifdef __cplusplus
- }
- #endif
- #undef EXTERN
English
