
                                Drive Type DLL


The enclosed 16-bit DLL contains an exported procedure "pbGetDriveType"
which returns the type of drive specified.  If Windows 95 or Windows NT is
detected the 32-bit GetDriveTypeA() API call is made, otherwise the 16-bit
GetDriveType() call is made.

This DLL was written with the PowerBASIC DLL Compiler for Windows.  It uses
the built-in assembler to "thunk" into the 32-bit API.  No other DLL is
required, the thunk is built-in.

The PowerBASIC DLL Compiler for Windows (PB/DLL) is a Basic compiler which
creates true machine code DLLs and EXEs for 16-bit Microsoft Windows.  The
code generated does not require any external run-time DLLs and generates
small, fast, efficient machine code.


In Visual Basic:
  Declare Function pbGetDriveType% Lib "DRVTYPE.DLL" (ByVal Drive%)

Returns:
  DRIVE_UNKNOWN   = 0
  DRIVE_NOROOT    = 1
  DRIVE_REMOVABLE = 2
  DRIVE_FIXED     = 3
  DRIVE_REMOTE    = 4
  DRIVE_CDROM     = 5       ' Windows 95/NT only
  DRIVE_RAMDISK   = 6       ' Windows 95/NT only


To order PB/DLL, fill out ORDER.TXT or call our sales department at
800-780-7707 or 408-659-8000.
