ePass1000 C/C++ API Reference Manual Version 2.0 |
The EPAS_DIRINFO structure defines information of a directory.
typedef struct{ unsigned long ulID; // ID of the directory unsigned long ulFlags; // reserved for future use, MUST be set to zero unsigned char ucReserved[40]; // reserved for future use, MUST be set to zero }EPAS_DIRINFO,*PEPAS_DIRINFO;
It is recommended that applications uses only 16-bit directory IDs in the range of 0 to 0xEFFF. 32-bit directory IDs may not be supported on future versions of the file system.
To obtain the type of file system supported by a device, use the epas_GetProperty function.
Application should zero initialize this structure before invoke any functions.
The following directory IDs have been reserved by Feitian.
Name | Value | Description |
---|---|---|
EPAS_ROOT_DIR | 0 | Root directory (Master File). |
EPAS_7816_ROOT_DIR | 0x3F00 | Root directory for ISO/IEC 7816 compatible applications. This directory ID is internally mapped to EPAS_ROOT_DIR. |
Auto assigned directory IDs | 0xF000 to 0xFFFF | The EPAS_AUTO_CREATE_ID flags creates directory IDs within this range. |
Application defined directory IDs | 0x0000 to 0xEFFF | Application should use directory IDs within this range. |
EPAS_ACCESSINFO, EPAS_VERSIONINFO, EPAS_SYSINFO, EPAS_FILEINFO