How to detect whether a given drive letter is a PCMCIA ATA drive?

We have a program developed in Delphi 5.0 which deals with different kinds of ATA removeable drives (such as USB, 1394, ZIP, and PC Card or PCMCIA).

I need some guidance or may be some code sample on how to perform the following:

1) Detect whether a drive letter is a PCMCIA ATA drive or not
2) Detect when the drive is inserted (so program can perform an action upon insertion of the PCMICA ATA drive into its slot.

I need to support: Win98, ME, 2000, XP pro & home

I would also like to know how this is done for:
a) USB ATA drives
b) 1394 ATA drives
Who is Participating?
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
All Courses

From novice to tech pro — start learning today.