将文件或目录删除到回改站
TSHFileOpStrUCt OpStruct;
char DelFile[128];
setmem(DelFile,128,'\0');
StrPCopy(DelFile,"C:emp");
OpStruct.hwnd=Handle;
OpStruct.wFunc=FO_DELETE;
OpStruct.pFrom=DelFile;
OpStruct.pTo=NULL;
OpStruct.fFlags=FOF_ALLOWUNDO;
OpStruct.hNameMappings=NULL;
OpStruct.lpszProgressTitle=NULL;
SHFileOperation(&OpStruct);
- 上一篇:将文件copy到剪贴板上
- 下一篇:九九乘法表的几种不同形状