home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 8 / 08.iso / d / d026 / 25.ddi / NET / WNETCAP.AS_ / WNETCAP.AS
Encoding:
Text File  |  1991-04-19  |  2.8 KB  |  107 lines

  1. page        60, 132
  2. title        Windows Network Capabilitity Functions
  3. ;===============================================================================
  4. ;        Filename    WNETCAP.ASM
  5. ;        Copyright    (C) 1989 by Research Machines
  6. ;        Copyright    (C) 1989, 1990 Microsoft Corporation
  7. ;===============================================================================
  8. ; REVISIONS:    24/02/1989    Initial version
  9. ;        16/03/1989    Change to STANDARD procedures (save si, di, ds)
  10. ;        1/5/89        Made it real
  11. ;===============================================================================
  12.  
  13.         memM    equ    1        ; Middle memory model
  14.         ?WIN    =    1        ; Windows prolog/epilog
  15.         ?PLM    =    1        ; Pascal calling convention
  16.  
  17.         .xlist
  18. include     cmacros.inc
  19. include     windows.inc
  20. include     wnet.inc
  21. include     wnetcaps.inc
  22.         .list
  23.  
  24.         .sall
  25.  
  26. externFP    MessageBox
  27.  
  28. ;===============================================================================
  29. sBegin        CODE
  30.         assumes cs, CODE
  31.         assumes ds, DATA
  32. ;===============================================================================
  33.  
  34.  
  35. ;===============================================================================
  36. subttl        WNetGetCaps
  37. page
  38. ;===============================================================================
  39.  
  40. cProc        WNetGetCaps, <FAR, PUBLIC>
  41.  
  42.         parmW    nIndex
  43. cBegin
  44.         mov    ax, NULL
  45.  
  46.         mov    bx, ( nIndex )
  47.         cmp    bx, WNNC_SPEC_VERSION
  48.         jb    WNetGetCapsExit
  49.         cmp    bx, WNNC_ERROR
  50.         ja    WNetGetCapsExit
  51.  
  52.         dec    bx
  53.         shl    bx, 1
  54.         mov    ax, word ptr CapsTable[ bx ]
  55.  
  56. WNetGetCapsExit:
  57.  
  58. cEnd
  59.  
  60. ;===============================================================================
  61. sEnd        CODE
  62. ;===============================================================================
  63. sBegin        DATA
  64. ;===============================================================================
  65.  
  66. public        CapsTable
  67. labelW        CapsTable
  68.  
  69.         dw    0310h            ; Spec Version
  70.  
  71.         dw    WNNC_NET_MSNet        ; Net type
  72.  
  73.         dw    0300h            ; Driver Version
  74.  
  75.         dw    WNNC_USR_GetUser    ; username caps
  76.  
  77.         dw     0            ; index 5 unused
  78.  
  79.         concaps    =            WNNC_CON_AddConnection
  80.         concaps = concaps or WNNC_CON_CancelConnection
  81.         concaps = concaps or WNNC_CON_GetConnections
  82.         dw    concaps            ; connection caps
  83.  
  84.         prtcaps =            WNNC_PRT_OpenJob
  85.         prtcaps = prtcaps or WNNC_PRT_CloseJob
  86.         prtcaps = prtcaps or WNNC_PRT_WatchQueue
  87.         prtcaps = prtcaps or WNNC_PRT_UnwatchQueue
  88.         prtcaps = prtcaps or WNNC_PRT_LockQueueData
  89.         prtcaps = prtcaps or WNNC_PRT_UnlockQueueData
  90.         prtcaps = prtcaps or WNNC_PRT_ChangeMsg
  91.         prtcaps = prtcaps or WNNC_PRT_NoArbitraryLock
  92.         prtcaps = prtcaps or WNNC_PRT_WriteJob
  93.         dw    prtcaps            ; printing caps
  94.  
  95.         dlgcaps =         WNNC_DEV_DevMode
  96.         dw    dlgcaps
  97.  
  98.         dw    0            ; index 9 unused
  99.  
  100.         dw    0            ; no error caps
  101.  
  102. ;===============================================================================
  103. sEnd        DATA
  104. ;===============================================================================
  105.  
  106.         end
  107.