ePass1000 C/C++ API Reference Manual Version 2.0

EPAS_DIRINFO

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;


Member

ulID
This member defines the ID of the directory. For EPAS_SYS_TYPE1 file system, 32-bit and 16-bit directory ID are both supported. It is recommended that applications use 16-bit directory IDs in the range of 0 to 0xEFFF. Future versions of the file system will only support 16-bit directory IDs.
ulFlags
This member is reserved for future use and must be set to zero.
ucReserved
This member is reserved for future use and must be set to zero.

Remarks

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.

See Also

EPAS_ACCESSINFO, EPAS_VERSIONINFO, EPAS_SYSINFO, EPAS_FILEINFO