📄 wd_file_to_name.h
字号:
#ifndef _WD_HEADER_WD_FILE_TO_NAME_
#define _WD_HEADER_WD_FILE_TO_NAME_
// 这个模块的功能在于可以维持FileObject和文件名
// 的对应关系。只要在FileOjbect Create的时候,你
// 调用wd_file_fton_create(),就能把它保存在链表
// 中。在CleanUp和Close中调用wd_file_fton_close()
// 删除之。此中间你就可以调用wd_file_fton()来得到
// 你想要的文件名
#include "wdf.h"
#include "wd_ustr.h"
#include "wd_dev.h"
#include "wd_irp.h"
#include "wd_mem.h"
wd_bool wd_file_fton_create(wd_file *file);
wd_bool wd_file_fton(wd_file *file,wd_ustr *name);
wd_void wd_file_fton_close(wd_file *file);
wd_ustr_h wd_file_ftop(wd_file *file);
wd_ulong wd_file_fton_count();
// 这是一个相当有用的函数,它可以由路径得到一个文件名
wd_wchar *wd_file_path_to_name(wd_wchar *path);
// 获得文件的路径,这个函数仅仅可以在Create中调用.得到的path之后必须
// free.
wd_ustr_h wd_file_get_path(wd_file *file);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -