GetDriverType Procedure

Returns the interface type of a specified Driver's name.

Syntax

[ lType = ] GetDriverType ( [ sDriverName ] )

The GetDriverType procedure syntax has the following parts:

 

Name

Type

Description

lType

enumAInterfaceType

Driver type

sDriverName

Val BString

Name of the Driver in the Driver table

Where

enumAInterfaceType can be one of the following:

 

Name

Value

Description

aioNone

0

None

aioGpib

1

GPIB

aioCom

2

COM

aioVxi

3

VXI

aioFile

4

File

aioIsa

5

ISA

aioWinSock

6

Winsock

aioUsb

7

USB

Comments

The Driver's name must be specified according to its definition in the Driver shortcut Property page. Otherwise, the function returns -1.

Example

Print GetDriverType("sVxiDriver")

! This will print 8 if sVxiDriver is a VXI Driver

See Also

ADriver, ADriver.InterfaceInfo, ADriver.InterfaceType, ADriver.ModuleType, ASystem, Driver Variable, enumAInterfaceType, GetDriverAddress, GetDriverModule, GetDriverName