示例#1
0
 public static void Delete(string path)
 {
     SHFILEOPSTRUCT shf = new SHFILEOPSTRUCT();
     shf.wFunc = FO_DELETE;
     shf.fFlags = FOF_ALLOWUNDO | FOF_NOCONFIRMATION;
     shf.pFrom = path;
     SHFileOperation(ref shf);
 }
示例#2
0
 public static extern int SHFileOperation(ref SHFILEOPSTRUCT FileOp);
示例#3
0
 public static extern int SHFileOperation(ref SHFILEOPSTRUCT FileOp);