#drive #disk #winapi #wrapper #windows

windows-drives

Safe Win32 API wrappers for access to raw binary data on physical drives

10 releases (4 breaking)

0.5.0 Mar 3, 2021
0.4.3 Jan 14, 2021
0.3.1 Dec 29, 2020
0.2.1 Dec 11, 2020
0.1.0 Dec 11, 2020

#171 in Windows APIs

25 downloads per month
Used in luks2

MIT license

24KB
425 lines

windows-drives

This crate provides safe wrappers around the unsafe Win32 API provided by winapi for raw disk access.

Currently accessing complete disks (\\.\PhysicalDriveX) and disk partitions (\\?\HarddiskVolumeX) is supported.

A good program to view your computer's disk mapping is SIV (under "Volumes -> Disk Mapping").

Dependencies

~1.1–1.7MB
~36K SLoC