teamy-mft 0.7.1

TeamDman's Master File Table CLI and library for NTFS.
1
2
3
4
5
6
7
8
use crate::windows_utils::elevation::ElevatedChildProcess;
use crate::windows_utils::elevation::run_as_admin;
use crate::windows_utils::invocation::SameInvocationSameConsole;

/// Relaunches the current executable with administrative privileges, preserving arguments and console.
pub fn relaunch_as_admin() -> eyre::Result<ElevatedChildProcess> {
    run_as_admin(&SameInvocationSameConsole)
}