Exemple #1
0
        private static void DeleteFileOrFolder(string path)
        {
            var val = new UIModManagement.SHFILEOPSTRUCT()
            {
                wFunc  = 3,
                pFrom  = path + (object)char.MinValue + (object)char.MinValue,
                fFlags = (short)80
            };

            UIModManagement.SHFileOperation(ref val);
        }
Exemple #2
0
 private static extern int SHFileOperation(ref UIModManagement.SHFILEOPSTRUCT FileOp);