|
-
Jul 2nd, 2002, 05:00 AM
#1
Thread Starter
Member
Detect hardware
Hi.
I'm trying to detect hardware in C or ASM, but I posted it here because I think this should be done in C, but I'm not sure
I just want to know, which drives (like A:\, B:\, C:\) exist in the pc where my app is running.
But:
- It is for running on my own os, so: I can't use the windows api's and also not use the dos interrupt 21h.
Anybody suggestions??
Please help me out of this problem I'm already fighting centuries, for my feeling.
-
Jul 3rd, 2002, 12:20 PM
#2
Thread Starter
Member
Come on, somebody of you smart guys knows this.
-
Jul 3rd, 2002, 02:05 PM
#3
PowerPoster
You'll probably have to do some research on this. Infact, these letters like A:, B:, C: are assigned by Windows and other Operating Systems might use a different symbol. So you'll have to check all the drives (Primary Master/Slave, and Secondry Master/Slave) and see if you get any single. Then you'll also have to recognize that certain drive in order to work with it. That's why developers have to write device drivers for you software to communicate or recognize the floppy drive, hard drive, cdrom or any other disk drive. Unfortunately, I have't worked with any of them so I can't really help you but you can look up different interrupts and their functions and you might find some useful information (especially BIOS interrupts). Search for Ralph Brown's Interrupt List(or similar name) which has reference for almost all the interrupts and their functions including specific paramters that you need to know.
-
Jul 10th, 2002, 07:24 PM
#4
And don't forget that if you want to assign drive letters (linux doesn't BTW) you must take care of partitioning.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 11th, 2002, 04:08 AM
#5
Thread Starter
Member
Yes, already found a snippet that may work...testing it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|