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 >
C/C++ Source or Header  |  1993-03-18  |  661b  |  38 lines

  1. #include <bios.h>
  2. #include <stdio.h>
  3. char desqview_installed(void)
  4. {
  5. char temp=255;
  6. asm mov cx,0x4445;
  7. asm mov dx,0x5351;
  8. asm mov ah,0x2b;
  9. asm mov al,0x01;
  10. asm int 021h;
  11. asm cmp al,0ffh;
  12. asm jz notloaded;
  13. temp= _BX;
  14. asm jmp end;
  15. notloaded:
  16. temp = 0;
  17. end:
  18. return temp;
  19. }
  20. #define DEBUG
  21.  
  22. #ifdef DEBUG
  23. #include <stdio.h>
  24. main()
  25. {
  26. int dv =0;
  27. puts("Desqview Installation Checker");
  28. puts("Copyright 1993, David Johnson");
  29. puts("Released to the Public Domain");
  30. dv = desqview_installed();
  31.  
  32. if (dv) printf("\nDesqview Version %u.%u installed\n",dv >>4, dv & 255);
  33.     else  puts("\nDesqview is not loaded");
  34.     return (dv >>4);
  35. }
  36. #endif
  37.  
  38.