blog

枪手亨利

博客园 首页 新随笔 联系 订阅 管理
   TSHFileOpStruct OpStruct;
    char DelFile[128];
    setmem(DelFile,128,'\0');
    StrPCopy(DelFile,"C:\\temp");
    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);
posted on 2005-11-12 21:58  henry  阅读(135)  评论(0)    收藏  举报