home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 8 / 08.iso / d / d026 / 25.ddi / NET / WNET.IN_ / WNET.IN
Encoding:
Text File  |  1991-04-19  |  2.1 KB  |  94 lines

  1. ;===============================================================================
  2. ;        File    WNET.INC
  3. ;===============================================================================
  4.  
  5.         IDD_RMLOGO        equ    30
  6.  
  7.         MAJOR_SPEC_VERSION    equ    0
  8.         MINOR_SPEC_VERSION    equ    58
  9.         SPEC_VERSION        equ    MAJOR_SPEC_VERSION * 100 + MINOR_SPEC_VERSION
  10.  
  11.         MAJOR_DRIVER_VERSION    equ    0
  12.         MINOR_DRIVER_VERSION    equ    21
  13.         DRIVER_VERSION        equ    MAJOR_DRIVER_VERSION * 100 + MINOR_DRIVER_VERSION
  14.  
  15. ;        General return status codes
  16.  
  17.         WN_SUCCESS        equ    00h
  18.         WN_NOT_SUPPORTED    equ    01h
  19.         WN_NET_ERROR        equ    02h
  20.         WN_MORE_DATA        equ    03h
  21.         WN_BAD_POINTER        equ    04h
  22.         WN_BAD_VALUE        equ    05h
  23.         WN_BAD_PASSWORD     equ    06h
  24.         WN_ACCESS_DENIED    equ    07h
  25.         WN_FUNCTION_BUSY    equ    08h
  26.         WN_WINDOWS_ERROR    equ    09h
  27.         WN_BAD_USER        equ    0ah
  28.         WN_OUT_OF_MEMORY    equ    0bh
  29.         WN_CANCEL        equ    0ch
  30.  
  31. ;        Connection return status codes
  32.  
  33.         WN_NOT_CONNECTED    equ    30h
  34.         WN_OPEN_FILES        equ    31h
  35.         WN_BAD_NETNAME        equ    32h
  36.         WN_BAD_LOCALNAME    equ    33h
  37.         WN_ALREADY_CONNECTED    equ    34h
  38.         WN_DEVICE_ERROR     equ    35h
  39.         WN_CONNECTION_CLOSED    equ    36h
  40.  
  41. ;        Printing return status codes
  42.  
  43.         WN_BAD_JOBID        equ    40h
  44.         WN_JOB_NOT_FOUND    equ    41h
  45.         WN_JOB_NOT_HELD     equ    42h
  46.         WN_BAD_QUEUE        equ    43h
  47.         WN_BAD_FILE_HANDLE    equ    44h
  48.         WN_CANT_SET_COPIES    equ    45h
  49.         WN_ALREADY_LOCKED    equ    46h
  50.  
  51. ;        Queue Changed message
  52.  
  53.         SP_QUEUECHANGED     equ    500h
  54.  
  55. ;
  56. ;   MSNet will intermix output from multiple windows applications on the
  57. ;   server if the Windows spooler is bypassed.    Therefore, only allow a
  58. ;   single app to have the port open.  Enforce similar restriction for
  59. ;   queue watches.
  60. ;
  61.         PORT_OPEN        equ    00000001b
  62.         PORT_WATCHED        equ    00000010b
  63.  
  64. ;        Commonly used cmacros
  65.  
  66.         RegPtr    RegPairDsSi, ds, si
  67.         RegPtr    RegPairEsDi, es, di
  68.         RegPtr    RegPairEsBx, es, bx
  69.         RegPtr    RegPairDxAx, dx, ax
  70.         RegPtr    RegPairSSBX, ss, bx
  71.         RegPtr    RegPairSSSI, ss, si
  72.         RegPtr    RegPairESDX, es, dx
  73.  
  74. StandardSave    macro
  75.         push    si
  76.         push    di
  77.         push    ds
  78.         endm
  79.  
  80. StandardRestore macro
  81.         pop    ds
  82.         pop    di
  83.         pop    si
  84.         endm
  85.  
  86. WatchEntry    struc
  87.         fWatch        dw        ?
  88.         hTask        dw        ?
  89.         hf        dw        ?
  90. WatchEntry    ends
  91.  
  92. externFP    dos3call
  93. externFP    netbioscall
  94.