home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / progmisc / nfsrc21.zip / NWTTS5.ASM < prev    next >
Assembly Source File  |  1991-08-16  |  3KB  |  97 lines

  1. ; File......: NWTTS5.ASM
  2. ; Author....: James R. Zack
  3. ; CIS ID....: 75410,1567
  4. ; Date......: $Date:   15 Aug 1991 23:07:06  $
  5. ; Revision..: $Revision:   1.2  $
  6. ; Log file..: $Logfile:   E:/nanfor/src/nwtts5.asv  $
  7. ; This is an original work by James Zack and is placed in the
  8. ; public domain.
  9. ;
  10. ; Modification history:
  11. ; ---------------------
  12. ;
  13. ; $Log:   E:/nanfor/src/nwtts5.asv  $
  14. ;  
  15. ;     Rev 1.2   15 Aug 1991 23:07:06   GLENN
  16. ;  Forest Belt proofread/edited/cleaned up doc
  17. ;  
  18. ;     Rev 1.1   14 Jun 1991 19:54:50   GLENN
  19. ;  Minor edit to file header
  20. ;  
  21. ;     Rev 1.0   01 Apr 1991 01:03:44   GLENN
  22. ;  Nanforum Toolkit
  23. ;  
  24.  
  25. ; $DOC$
  26. ; $FUNCNAME$
  27. ;     FT_TTSSTAT()
  28. ; $CATEGORY$
  29. ;     NetWare
  30. ; $ONELINER$
  31. ;     Verify if TTS transaction has been written to disk
  32. ; $SYNTAX$
  33. ;    FT_TTSSTAT( <nTransNumber> ) -> nResult
  34. ; $ARGUMENTS$
  35. ;    <nTransNumber> is the transaction number, returned from FT_TTSEND().
  36. ; $RETURNS$
  37. ;      0 - Success, transaction written to disk
  38. ;    255 - Transaction not yet written to disk
  39. ; $DESCRIPTION$
  40. ;    For further information on NetWare's Transaction Tracking System (TTS),
  41. ;    consult Novell's documentation.
  42. ; $EXAMPLES$
  43. ;    nResult := FT_TTSSTAT()
  44. ;    DO CASE
  45. ;       CASE nResult == 0
  46. ;          ? "Transaction wrttten to disk"
  47. ;       CASE nResult == 255
  48. ;          ? "Transaction not yet written to disk"
  49. ;       OTHERWISE
  50. ;          ? "Unknown result code"
  51. ;    ENDCASE
  52. ; $SEEALSO$
  53. ;    FT_TTSABORT() FT_TTSAVAIL() FT_TTSBEGIN() FT_TTSEND()
  54. ; $END$
  55.  
  56. PUBLIC    FT_TTSSTAT
  57. EXTRN     __PARNL:FAR
  58. EXTRN     __RETNI:FAR
  59. EXTRN     __RET:FAR
  60. _NanFor   SEGMENT 'CODE'
  61.           ASSUME cs:_NanFor
  62. FT_TTSSTAT  PROC    FAR
  63.           push    bp
  64.           mov     bp,sp
  65.           push    ds
  66.           push    es
  67.           push    si
  68.           push    di
  69.           mov     ax,1
  70.           push    ax
  71.           call    __PARNL
  72.           add     sp,2
  73.           mov     cx,dx
  74.           mov     dx,ax
  75.           mov     ah,0c7h          ; Novell API function c7
  76.           mov     al,04h           ; Subfunction 02
  77.           int     21h              ; TTS Transaction Status
  78.           mov     ah,00h
  79.           push    ax
  80.           call    __RETNI
  81.           add     sp,2
  82.           pop     di
  83.           pop     si
  84.           pop     es
  85.           pop     ds
  86.           pop     bp
  87.           call    __RET
  88.           ret
  89.  
  90. FT_TTSSTAT  endp
  91.  
  92. _NanFor   ends
  93.  
  94.           end
  95. 
  96.