Download ROCKEY5 TIME USER GUIDE

Transcript
ROCKEY5 TIME USER GUIDE 7.1.16 RY5_CreateFile DWORD WINAPI RY5_CreateFile(RY_HANDLE handle, WORD FileID, int Size, int Type); Objective: Create file. RY5_Open must be called to open the device and the developer password needs to be verified before this function is called. Parameters: handle [in]Device handle, as same as the handle returned by RY5_Open。 FileID [in]File ID Size [out]File size [in]File type Type Note: „ The free user space of ROCKEY5 TIME is 32k „ File ID is 2 bytes. For example, 0x1002 and 0x009B. Some IDs can only be used internally in ROCKEY5 TIME. For more details, please refer to appendix. „ The file size(not including the file property information 16 bytes) needs to be defined when creating file. For example, creating a 100 bytes file (size =100), the actual obtained space is 100+16= 116 bytes. „ Type is used to set file type. Please check the table below. FILE_TYPE_EXE The executable file. It can be written once developer password is verified or from other executable file in ROCKEY5 TIME. This file cannot be read in any circumstances. FILE_TYPE_DATA Internal data file. Write the data by executable file in ROCKEY5 TIME. The external operation can delete and write but not rea after the verification of developer password. FILE_TYPE_RSA_PUBLIC RSA public key file. The public key file can be written after the verification of developer password or just from the executable file in ROCKEY5 TIME. Copyright © Feitian Technologies Co. Ltd. Website: www.FTsafe.com 142