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); }
private static extern int SHFileOperation(ref UIModManagement.SHFILEOPSTRUCT FileOp);