home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / GRLF-C-2.ZIP / GFUNC / SETHNCNT.ASM < prev    next >
Encoding:
Assembly Source File  |  1990-05-30  |  961 b   |  47 lines

  1. ;/*
  2. ;** sethncnt.asm
  3. ;** contains: sethncnt()
  4. ;*/
  5.  
  6. SETHANDLECOUNT    equ    067h            ;DOS: Set Handle Count Function
  7. DOSCALL     equ    021h            ;DOS: Software Interrupt #
  8.  
  9.         include model.h
  10.         include prologue.h
  11.  
  12.         pseg    pSetDosHandleCount
  13.  
  14. ;/*
  15. ;**  int
  16. ;** sethncnt(int count)
  17. ;**
  18. ;** ARGUMENT(s)
  19. ;**    count        -    Number of open handles allowed
  20. ;**
  21. ;** DESCRIPTION
  22. ;**  Permits more than 20 open files per process (DOS 3.30)
  23. ;**
  24. ;**
  25. ;** RETURNS
  26. ;**  0 if successful, else DOS error code.
  27. ;**
  28. ;** AUTHOR
  29. ;**  ""   Wed 16-Nov-1988    10:40:42
  30. ;**   Copyright (C)1988-1990 Greenleaf Software Inc. All Rights Reserved.
  31. ;**
  32. ;** MODIFICATIONS
  33. ;**  RJC Mon 03-July-1989 
  34. ;**   Changed to call correct DOS function.
  35. ;*/
  36.         cproc    sethncnt
  37.         mov    ah,SETHANDLECOUNT       ;Error Correction
  38.         mov    bx,parm1_        ;BX = count
  39.         int    DOSCALL
  40.         jc    setdoshandexit        ;if error leave with it
  41.         xor    ax,ax            ;else say no error
  42. setdoshandexit:
  43.         cproce
  44.  
  45.         endps
  46.         end
  47.