[comp.lang.pascal] Four Turbo Questions

dbyron@cunixf.cc.columbia.edu (David Byron) (11/16/90)

I have four questions.  Any help you have will be appreciated but what will help me most will be Turbo Pascal specific information.

  1. How can I, without actually accessing the drives, get a complete list of all valid drive letters on a given machine?  This list should include all kinds of virtual drives as well as the physical ones.

  2. How can I sort directories?  I know how to use FindFirst and FindNext to get the directory information from disk.  I also know how to perform the sort.  The actual question is:  how can I write this information back to disk?

  3. I have a Logitech mouse.  I am looking for the following functions which will return appropriate values in either text or graphics mode:

        MouseExists
        IsCursorOn
        IsCursorOff
        TurnCursorOn
        TurnCursorOff
        IsLeftButtonOn
        IsCenterButtonOn
        IsRightButtonOn
        MousePosX
        MousePosY

I think (please tell me if I am wrong) that from only these functions, I should be able to get all the information the mouse has to offer.  I have made the assumption that MouseExists will only return true is the mouse has also been initialized.  Also, the CenterButtonOn will return false if there is no center button.

4. How can I dump the contents of the graphics screen to a printer in Turbo Pascal?  This is essentially a graphics print screen operation.

Pleas e-mail responses and I will summarize.

Thanks in advance.

-David Byron
dbyron@cunixf.cc.columbia.edu