home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
d
/
dvins.zip
/
DVINS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-18
|
661b
|
38 lines
#include <bios.h>
#include <stdio.h>
char desqview_installed(void)
{
char temp=255;
asm mov cx,0x4445;
asm mov dx,0x5351;
asm mov ah,0x2b;
asm mov al,0x01;
asm int 021h;
asm cmp al,0ffh;
asm jz notloaded;
temp= _BX;
asm jmp end;
notloaded:
temp = 0;
end:
return temp;
}
#define DEBUG
#ifdef DEBUG
#include <stdio.h>
main()
{
int dv =0;
puts("Desqview Installation Checker");
puts("Copyright 1993, David Johnson");
puts("Released to the Public Domain");
dv = desqview_installed();
if (dv) printf("\nDesqview Version %u.%u installed\n",dv >>4, dv & 255);
else puts("\nDesqview is not loaded");
return (dv >>4);
}
#endif