zoukankan
html css js c++ java
关于回收站的疑问
//
删除文件到回收站
API: SHFileOperation
//
清空回收站
API: SHEmptyRecycleBin
//
检索回收站信息
API: SHQueryRecycleBinA
//
恢复回收站文件
在recycled目录下,有个Info2的文件,文件被回收后都被修改了名称,并保存信息到这个文件内,但操作系统不同,结构也不同;所要做的就是根据info2 文件的内容遍历并move 文件到原始位置
看看v 4的结构
偏移 长度 含义
0
~
259
,
260
,原文件或目录名称,如果0字节是0,表示无效
260
~
263
,
4
,文件编号
264
~
267
,
4
,驱动盘编号0表示A,
1
=
b,
2
=
c
..
268
~
275
,
8
,删除时间
276
~
279
,
4
,文件或目录占用空间(字节,保留到“簇”)
v5的结构
偏移 长度 含义
0
~
259
,
260
,原文件或目录的短名称8.3命名,如果0字节是0,表示无效
260
~
263
,
4
,文件编号
264
~
267
,
4
,驱动盘编号0表示A,
1
=
b,
2
=
c
..
268
~
275
,
8
,删除时间
276
~
279
,
4
,文件或目录占用空间(字节,保留到“簇”)
280
~
799
,
520
,原文件完整名称,Unicode
另外,这些信息都是我原来用delphi 搞的,C#无代码可供参考,抱歉。
版权信息
作者:
Chinasf
出处:
http://Chinasf.cnblogs.com/
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
查看全文
相关阅读:
Java初试
could not insert new action connection could not find any information for the class named
GIT 从入门到放弃大整理
'XCTest/XCTest.h' file not found
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
后台数据为空因此程序闪退
UISearchController Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior
AFNetworking request failed unacceptable content type text/html
Xcode找不到模拟器
如何查看设备的 UDID
原文地址:https://www.cnblogs.com/Chinasf/p/139200.html
最新文章
uva11258 String Partition(DP)
uva10593 Kites(DP)
uva10559 Blocks(DP 费用提前)
ZOJ3741 Eternal Reality(DP)
BUAA 735 晴天小猪来刷人人
uva11386 Triples
uva10048 Audiophobia
hdu3525 Orienteering
hdu4115 Eliminate the Conflict
FZU2136 取糖果
热门文章
IOS之国际化xib的使用方法
IOS之解析Html的两种方式
iOS中3种正则表达式的使用与比较
xcode6 使用MJRefresh,Too many arguments to function call, expected 0, have *
TextView设置文字的颜色
MBProgress的使用方法
UIScrollview的使用方法:
IOS中新手引导页面的实现(新手引导,Guide)
UIView如何设置圆角
【转】javascript变量作用域、匿名函数及闭包
Copyright © 2011-2022 走看看