Repository navigation
feat: mount and unmount ISO/IMG/VHD(X) images with the native Windows API - #209
Merged
Merged
Conversation
nextestudios
force-pushed
the
feature/73-mount-images
branch
from
September 27, 2026 22:34
aa80964 to
81fd928
Compare
… API Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nextestudios
force-pushed
the
feature/73-mount-images
branch
from
September 27, 2026 22:39
5d92011 to
a8764b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IDiskImageService(Core) andVirtualDiskService(Infrastructure.Windows) over virtdisk.dll:OpenVirtualDisk+AttachVirtualDisk(permanent lifetime like Explorer's Mount; ISO/IMG read-only),GetVirtualDiskPhysicalPath+IOCTL_STORAGE_GET_DEVICE_NUMBERto find the new drive letter,GetStorageDependencyInformationto find the image behind a drive (also for images mounted by Windows),DetachVirtualDiskto unmount. No shell, no command line, no third-party drivers; paths are only passed to the API..iso/.img/.vhd/.vhdx→ Montar imagem (opens the new drive). North on a drive that is a mounted image (This PC and Home; checked off the UI thread) → Desmontar imagem… with a confirmation that starts on Cancel and warns about open files; tabs inside the drive go back to This PC.Tests
DiskImageJourneyTests(fake service: error explained, mount opens the drive, unmount confirmation and removal) andDiskImageIntegrationTests(Windows: a minimal ISO 9660 generated in the test is mounted, read, identified viaImageBehind, re-mount returns the same drive, unmount removes it).Closes #73
Closes #74
🤖 Generated with Claude Code