•  Back 
  •  VDI FSMGDOS 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-Filevqt_devinfo()                                                           VDI

Syntax

VOID vqt_devinfo( handle, devid, exists, devstr )
WORD handle, devid;
WORD *exists;
char *devstr;

Function      vqt_devinfo() determines if a particular device ID is
              available, and if so, the name of the device driver.

Opcode        248

Availability  Available only with FONTGDOS, FSM, or SpeedoGDOS.

Parameters    handle specifies a valid workstation handle. devid specifies
              the device ID as listed in the 'ASSIGN.SYS' file. exists is
              a pointer to a WORD which will be filled in with
              DEV_INSTALLED (1) if a device is installed with the
              specified ID number or DEV_MISSING (0) if not. If the device
              does exist, the character buffer pointer to by devstr will
              be filled in with the filename of the device padded with
              spaces to the standard GEMDOS 8 + 3 format.

Binding       WORD i;

              contrl[0] = 248;
              contrl[1] = 0;
              contrl[3] = 1;
              contrl[6] = handle;

              intin[0] = devid;

              vdi();

              *exists = ptsout[0];

              for(i = 0;i < contrl[4];i++)
                  devstr[i] = (char)intout[i];

Group         VDI FSMGDOS