No announcement yet.

Windows API

  • Filter
  • Time
  • Show
Clear All
new posts

    Windows API

    Is it possible to access the Windows API with PBDOS 3.5?
    I need to run a PB DOS application and access the
    Floppy Drive in NT with low level commands (INT13 type).

    I don't want to re-write the huge program in PB CC.

    You cannot access the WinAPI from a DOS program, but you can access the WinApi from a Windows program which is SHELLed from your PB/DOS program.

    So, if you can get your question answered in the PB/CC forum, you can write a PB/CC program you can SHELL from your DOS program..

    Perhaps the API you will need to use is deviceIOControl (??)

    (I am not a hardware guy).


    [This message has been edited by Michael Mattias (edited July 04, 2001).]
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]


      Lee, why do you feel you need to access the Windows API for this? It seems like something that could be done entirely in DOS.

      Tom Hanlin
      PowerBASIC Staff


        When running a DOS program in a Windows NT DOS box you
        cannot use Int13 DOS calls. Accessing Low level BIOS routines
        in Windows NT is not supported (as far as I know)


          A quick test seems to work ok under Windows 2000, which is NT-based. If it doesn't
          work for you, you might look into the &H440D DOS functions (IOCTL). These are based
          on the main INT &H21 DOS interrupt, which may make them more likely to be supported.

          Tom Hanlin
          PowerBASIC Staff