Results 1 to 5 of 5

Thread: Detect hardware

  1. #1

    Thread Starter
    Member
    Join Date
    May 2002
    Posts
    37

    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.

  2. #2

    Thread Starter
    Member
    Join Date
    May 2002
    Posts
    37
    Come on, somebody of you smart guys knows this.

  3. #3
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    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.
    Baaaaaaaaah

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  5. #5

    Thread Starter
    Member
    Join Date
    May 2002
    Posts
    37
    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
  •  



Click Here to Expand Forum to Full Width