in reply to Re: Win32::API arguments
in thread Win32::API arguments

I thought they would be the same through ASPI, wouldn't they?

As far as I am aware, no. ASPI stands for the Advanced SCSI Programming Interface, so it seems unlikely.

Update: I'm wrong! According to wikipedia: Support for ATAPI interface (such as IDE) was later added.. (Shows how long it is since I did anything with ASPI! :)

However, the problem is that MS chose not to include an ASPI interface in XP/2000, so unless you've installed one yourself (such as the Adaptec freeware implementation), then using ASPI won't work.

Maybe his program uses other means to detect IDE optical drives?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^3: Win32::API arguments
by VMat (Novice) on Feb 03, 2009 at 19:01 UTC
    Yes, I do have ASPI installed (as a matter of fact, the "other function" that worked is the one that checks if ASPI is installed).

    His software is very, very simple, I'd doubt he used other interface to IDE drives. But I think the code is all there, so I'll check it out anyway.

    Thanks again!

    VMat
      OK... I broke my promise - couldn't do the tests last weekend. Sorry.

      Guys, I checked the delphi code, and apparently there's no different interface to the IDE drives, all is handled by DiscIdCalcDLL.dll. I also tried to remove that backslash, no success.

      As I said before, the function "AspiInstalled" works fine. It's returning 5, which is exactly the number of ASPI hosts reported by ASPICHK.exe (Adaptec's tool).

      Any other ideas? Maybe writing the code in C and using Inline?

      At this point, actually, I'm about to change focus. If you can show me some way of reading an audio CD's TOC (in Win32) I think I can get what I want.

      Thank you again,

      VMat
        Maybe writing the code in C and using Inline?

        If you can do it in C, then doing it in Inline::C sounds a good idea.

        Cheers,
        Rob