flat assembler
Message board for the users of flat assembler.

Index > OS Construction > disk io under windows 10 64-bit

Author
Thread Post new topic Reply to topic
Hack1532



Joined: 20 Feb 2016
Posts: 3
Hack1532 20 Feb 2016, 22:16
I've just modified my bootstrap i'm currently working on and a the 16-bit *.com file I wrote to manage disks, sectors, usb, fire wire ect no longer works (compatability issue). Does any one know of any windows 10 API that I could use, or point me to an app that can write/read sectors. hehe

thanks Hack1532
Post 20 Feb 2016, 22:16
View user's profile Send private message Reply with quote
BAiC



Joined: 22 Mar 2011
Posts: 272
Location: California
BAiC 21 Feb 2016, 18:18
FYI: non-Windows OSes are never running at the same time as Windows (regardless of the version). you need to include a driver for each of the device types you want to support. due to the nature of a "hobby" OS you're not gonna find anything you can just "plug in". BTW: NOTHING that works in Windows is going to be usable in your OS without heavy modifications to it.
Post 21 Feb 2016, 18:18
View user's profile Send private message Visit poster's website Reply with quote
Hack1532



Joined: 20 Feb 2016
Posts: 3
Hack1532 21 Feb 2016, 23:22
I solved the problem by booting Mini-XP 32-bit from USB. My 16-bit *.COM files work correctly.
ie: MAKEBOOT.COM
RAWWRITE.COM

I was able to build my little OS just fine under 32-bit Win OS,Laughing
Post 21 Feb 2016, 23:22
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 21 Feb 2016, 23:26
You can open a file name called "\\.\PhysicalDriveN" where N is the drive number and read/write data to that. Writing should be fine for all non-system drives in Win7 and up. For XP writing also works on the system dive so you need to be careful you don't kill your boot HDD.
Post 21 Feb 2016, 23:26
View user's profile Send private message Visit poster's website Reply with quote
Trinitek



Joined: 06 Nov 2011
Posts: 257
Trinitek 22 Feb 2016, 04:05
You need to be careful about writing to your boot HDD on 7, too. I was trying to write a floppy image to a USB floppy with some third party software, and it overwrote my boot HDD instead. Luckily the partitions were still intact.
Post 22 Feb 2016, 04:05
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.