Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions SysManager/SysManager/Services/TuneUpService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace SysManager.Services;
///
/// No admin required. No registry edits. No service changes.
/// </summary>
public sealed class TuneUpService
public sealed partial class TuneUpService
{
private readonly ShortcutCleanerService _shortcuts;
private readonly DiskHealthService _diskHealth;
Expand Down Expand Up @@ -232,9 +232,9 @@ private static bool EmptyRecycleBin()
}
}

private static class NativeMethods
private static partial class NativeMethods
{
[System.Runtime.InteropServices.DllImport("shell32.dll", CharSet = System.Runtime.InteropServices.CharSet.Unicode)]
internal static extern int SHEmptyRecycleBin(IntPtr hwnd, string? pszRootPath, uint dwFlags);
[System.Runtime.InteropServices.LibraryImport("shell32.dll", StringMarshalling = System.Runtime.InteropServices.StringMarshalling.Utf16, EntryPoint = "SHEmptyRecycleBinW")]
internal static partial int SHEmptyRecycleBin(IntPtr hwnd, string? pszRootPath, uint dwFlags);
}
}
Loading