in reply to Win32::API arguments

BrowserUK, thank you for the nice tips. I'm gonna try that out this weekend. By the way... the guy's software works fine with my IDE drives (the executable can be downloaded from the same website where the dll is), so I never worried about them being IDE or SCSI. I thought they would be the same through ASPI, wouldn't they?

CptSkripto, thank you too. 1) I'll remove the backslash and give it a try (this weekend). 2) If I got you right, that's exactly what I did - just ommitted the code from the question to keep it short. But if the function worked, we should see some values set for "Drive[??]" in the debugger output that I pasted.

I'll try all that on Saturday (at most) and keep you posted.

Thank you guys,

VMat

Replies are listed 'Best First'.
Re^2: Win32::API arguments
by BrowserUk (Patriarch) on Feb 03, 2009 at 16:23 UTC
    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.
      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