filelocksmith 1.0.0

Detect what processes are locking a file or folder on Windows
Documentation
fn main() {
    #[cfg(not(feature = "private-docs-rs"))]
    {
        let mut build = cc::Build::new();
        build.cpp(true);
        build.static_crt(true);
        build.include(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop");
        build.file(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop\FileLocksmith.cpp");
        build.file(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop\NtdllBase.cpp");
        build.file(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop\NtdllExtensions.cpp");
        build.file(r"src/interop.cpp");
        build.define("FILELOCKSMITH_LIB_STATIC", None);
        build.flag_if_supported("/std:c++17");
        build.compile("powertoys_locksmith");

        println!("cargo:rustc-link-lib=advapi32");
        println!("cargo:rerun-if-changed=src/lib.rs");
        println!("cargo:rerun-if-changed=src/interop.cpp");
    }
}