按给出的目录id号打开当前目录下的一个目录或根目录下的一个目录。

参数
[in] hcontexthandle
一个已经成功打开的设备的句柄。
[in] puchdirid
要打开的目录的id号。
[in] uldiridlen
要打开的目录的id的长度。
[in] ulflag
参数,其定义如下
esf_root_dir:回到根目录,此时puchdirid,uldiridlen无效
esf_change_dir_from_root_dir:从根目录开始打开目录。
esf_change_dir_from_current_dir:从当前目录开始打开目录。
要求
esfp_opendev
返回值
esf_success:成功
esf_rv_not_find_file_error:文件或目录未找到
esf_rv_ac_error:安全状态不满足
其它:见“api返回码说明”。
示例代码
esf_handle hcontexthandle = null;
esf_rv irv;
unsigned char df[2];
df[0] = 0x00; df[1] = 0x01;
irv = esfp_changedir(hcontexthandle, df, 2, esf_change_dir_from_root_dir);
参见
esfp_createdir, esfp_deletedir, esfp_getcurrentdir