home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / section5 / fxn440bh.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  1.2 KB  |  26 lines

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;     Function 44H, Subfunction 0BH:                         ;
  4.         ;                   IOCTL Change Sharing Retry Count         ;
  5.         ;                                                            ;
  6.         ;     int ioctl_set_retry(num_retries,wait_time)             ;
  7.         ;         int num_retries;                                   ;
  8.         ;         int wait_time;                                     ;
  9.         ;                                                            ;
  10.         ;     Returns 0 for success, otherwise returns error code.   ;
  11.         ;                                                            ;
  12.         ;************************************************************;
  13.  
  14. cProc   ioctl_set_retry,PUBLIC,<ds,si>
  15. parmW   num_retries
  16. parmW   wait_time
  17. cBegin
  18.         mov     dx,num_retries  ; Get parameters.
  19.         mov     cx,wait_time
  20.         mov     ax,440bh        ; Set function code, Subfunction 0BH.
  21.         int     21h             ; Call MS-DOS.
  22.         jc      isrx            ; Branch on error.
  23.         xor     ax,ax
  24. isrx:
  25. cEnd
  26.