Just wondering if there is any APIs that will let a .NET program write to a partition without entering kernel mode. I am developing an OS and just want to write a quick program on windows so I can add files to a partition shared with VMware. If I had the time I would write actual drivers for it, but I just want something to make something quick. I remember seeing a .NET program for modding Xbox games that could read and write directly to FatX Formatted USB flashdrives.
Asked
Active
Viewed 3,383 times
2
-
See http://www.codeproject.com/Articles/28314/Reading-and-Writing-to-Raw-Disk-Sectors , http://stackoverflow.com/questions/1399485/direct-disk-access-in-windows-c (only vague answer given) , http://stackoverflow.com/questions/38190/how-do-i-read-a-disk-directly-with-net (only some systems) and similar – Jan 14 '13 at 04:19
-
You can't do any sort of disk access without entering kernel mode. Maybe you mean without writing code that executes in kernel mode? – Gabe Jan 14 '13 at 04:39
-
Lol thats what I ment....... – user1454902 Jan 14 '13 at 05:17
1 Answers
0
Try something like "\\?\Device\Harddisk0\Partition1" as path.

iced
- 1,562
- 8
- 10
-
-
I'm still pretty sure it's device level, though I really don't want to install windows just to check it. Give it a try, eh? – iced Jan 14 '13 at 04:18
-
1I found a similar question (http://stackoverflow.com/questions/38190/how-do-i-read-a-disk-directly-with-net) with a wrapper that will work with that, thanks – user1454902 Jan 14 '13 at 05:18