예제 #1
0
 public static void SendToRecycleBin(string fileName)
 {
     SHFILEOPSTRUCT shf = new SHFILEOPSTRUCT();
     shf.wFunc = FO_DELETE;
     shf.fFlags = FOF_ALLOWUNDO | FOF_NOCONFIRMATION;
     shf.pFrom = fileName;
     SHFileOperation(ref shf);
 }
예제 #2
0
 static extern int SHFileOperation(ref SHFILEOPSTRUCT FileOp);