Windows 10 2004/20H2/21H1 | LTSC
Diff from v5.9
5.8...5.9
- Для граждан СНГ добавил перевод пожертвований с помощью ЮMoney, используя прямой перевод с карты;
- Updated the
UnpinTaskbarEdgeStore
function again;- Fixed bug when calling this function before
UninstallUWPApps
breaks the retrieval of the localized UWP apps packages names; - Refixed #145;
- Thanks to iNNOKENTIY21
- Fixed bug when calling this function before
- The
TempFolders
and theOneDrive
functions updateTempFolders
totally rewritten using theMoveFileExA
function- Now with the
MOVEFILE_DELAY_UNTIL_REBOOT
flag all unremovable files and folder will be removed after reboot (log off) automatically. After that the temporary scheduled task will create a symobolic link and remove itself; - Thanks to @gtumanyan for the tip;
More details
public enum MoveFileFlags
{
MOVEFILE_DELAY_UNTIL_REBOOT = 0x00000004
}
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
static extern bool MoveFileEx(string lpExistingFileName, string lpNewFileName, MoveFileFlags dwFlags);
public static bool MarkFileDelete (string sourcefile)
{
return MoveFileEx(sourcefile, null, MoveFileFlags.MOVEFILE_DELAY_UNTIL_REBOOT);
}