1
Programming / Re: DISKIO - storage device detection logic
« on: January 04, 2025, 11:54:28 pm »
Hey Andi!
Aha...good stuff for sure!
This has helped me a lot in understanding how to correctly call the other DosDevIOCtl category functions and I was in fact able complete the logic for the device mapping function. Alas (see my previous thread update) that's still not enough to tell me whether a simple device # has media mounted on it and could in fact be benchmarked.
FYI - there is a very real chance here I'm missing something obvious, so don't by shy in giving me a quick smack...LOL
Not sure what you're really want to know but DataSeeker uses DosQueryFSAttach() to distinguish between different drive types. I think I copied this from 4os2 code back then but not sure anymore. Anyway http://trac.netlabs.org/dataseeker/browser/trunk/DriveInfo.c contains the code which finds out if the drive is a disk, floppy, network, CD/DVD, or .... Also if removable or not...
Aha...good stuff for sure!
This has helped me a lot in understanding how to correctly call the other DosDevIOCtl category functions and I was in fact able complete the logic for the device mapping function. Alas (see my previous thread update) that's still not enough to tell me whether a simple device # has media mounted on it and could in fact be benchmarked.
FYI - there is a very real chance here I'm missing something obvious, so don't by shy in giving me a quick smack...LOL