home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Becoming a Computer Animator
/
COMPANIMATE.ISO
/
pc
/
windemos
/
pcanim
/
msdetect.in_
/
msdetect.bin
Wrap
Text File
|
1993-01-12
|
2KB
|
54 lines
'**************************************************************************
'************************* Setup Detect API's ***************************
'**************************************************************************
''detect
DECLARE FUNCTION LcbFreeDrive LIB "msdetstf.dll" (nDrive%) AS LONG
DECLARE FUNCTION FDirExists LIB "msdetstf.dll" (szDir$) AS INTEGER
DECLARE FUNCTION FIsValidDrive LIB "msdetstf.dll" (nDrive%) AS INTEGER
DECLARE FUNCTION FHasMouseInstalled LIB "msdetstf.dll" AS INTEGER
'*************************************************************************
'**************** Detect Basic Wrapper Declarations ********************
'*************************************************************************
'' detect
DECLARE FUNCTION IsDriveValid (szDrive$) AS INTEGER
DECLARE FUNCTION GetFreeSpaceForDrive (szDrive$) AS LONG
DECLARE FUNCTION HasMouseInstalled AS INTEGER
'*************************************************************************
FUNCTION IsDriveValid (szDrive$) STATIC AS INTEGER
'$ifdef DEBUG
if FValidDrive(szDrive$) = 0 then
BadArgErr 1, "IsDriveValid", szDrive$
end if
'$endif ''DEBUG
IsDriveValid = FIsValidDrive(ASC(UCASE$(szDrive$)) - ASC("A") + 1)
END FUNCTION
'*************************************************************************
FUNCTION GetFreeSpaceForDrive (szDrive$) STATIC AS LONG
'$ifdef DEBUG
if FValidDrive(szDrive$) = 0 then
BadArgErr 1, "GetFreeSpaceForDrive", szDrive$
end if
'$endif ''DEBUG
GetFreeSpaceForDrive = LcbFreeDrive(ASC(UCASE$(szDrive$)) - ASC("A") + 1)
END FUNCTION
'*************************************************************************
FUNCTION HasMouseInstalled STATIC AS INTEGER
HasMouseInstalled = FHasMouseInstalled
END FUNCTION