Wholock-rs
Read this in other languages: English | δΈζ
Overview
Windows file locking diagnostics toolkit with surgical precision. Identify processes locking files and safely release resources.
This is basically a Rust implementation of File Locksmith and for now its in a very early version.
Features β¨
- π Deep Handle Inspection - Enumerate system handles with NTAPI
- π― Precise PID Targeting - Map handles to exact process IDs
- π Controlled Unlocking - Graceful termination with safety checks
- π Path Normalization - Handle Win32 device path conversions
- π‘οΈ Safe FFI Wrapping - RAII guards for Windows handles
Installation βοΈ
Add to Cargo.toml:
[]
= "0.0.1"
Requires Windows 10+ and Rust 1.70+
Usage Guide π
Basic Lock Detection
use ;
Safe Process Termination
use ;
Advanced Monitoring
use ProcessInfo;
use ;
async
async
Security Notes π
Critical Requirements
- π Admin Privileges Required for handle duplication
- β οΈ Handle Validation - Anti-DLL injection protections
- π Cleanup Guarantees - RAII pattern for system handles
System Compatibility
| Component | Requirement |
|---|---|
| OS Version | Windows 10+ |
| Rust Toolchain | 1.70+ (MSRV) |
| Security Policy | SeDebugPrivilege enabled |
Contribution π₯
Development Workflow
# Clone with submodules
# Build with Windows SDK
# Run tests (admin required)
Code Standards
- Branch naming:
feat/[feature-name]/fix/[issue-number] - Commit messages: Follow Conventional Commits
- Documentation: 100% API coverage required
Support & Troubleshooting
For urgent issues, create a GitHub Issue with:
- Exact error message
- Windows build number (
winver) - Reproduction steps
- Security context details
Thanks
License π
Distributed under the LICENSE-MIT License. See LICENSE for more information.
Author
Developed with π¦ by @Hellager