home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / os232.exe / INCLUDE / NWNDSCON.H < prev    next >
C/C++ Source or Header  |  1995-05-10  |  4KB  |  172 lines

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwndscon.h  $
  4.   $Revision:   1.11  $
  5.   $Modtime::   10 May 1995 11:17:04                        $
  6.   $Copyright:
  7.  
  8.   Copyright (c) 1989-1995 Novell, Inc.  All Rights Reserved.                      
  9.  
  10.   THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  11.   TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  12.   COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  13.   EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  14.   WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  15.   OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  16.   CRIMINAL AND CIVIL LIABILITY.$
  17.  
  18.  *****************************************************************************/
  19. #if ! defined ( NWNDSCON_H )
  20. #define NWNDSCON_H
  21.  
  22. #if ! defined ( NTYPES_H )
  23. #include "ntypes.h"
  24. #endif
  25.  
  26. #if ! defined ( NWCALDEF_H )
  27. #include "nwcaldef.h"
  28. #endif
  29.  
  30. #define NWNDS_CONNECTION         0x0001
  31. #define NWNDS_LICENSED           0x0002
  32. #define NWNDS_AUTHENTICATED      0x0004
  33. #define NWNDS_PACKET_BURST_AVAIL 0x0001
  34. #define NWNDS_NEEDED_MAX_IO      0x0040
  35. #define SYSTEM_LOCK              0x0
  36. #define TASK_LOCK                0x4
  37. #define SYSTEM_DISCONNECT        0x0
  38. #define TASK_DISCONNECT          0x1
  39.  
  40. #define ALLREADY_ATTACHED        0x1
  41. #define ATTACHED_NOT_AUTH        0X2
  42. #define ATTACHED_AND_AUTH        0X4
  43.  
  44.  
  45. #ifdef __cplusplus
  46.    extern "C" {
  47. #endif
  48.  
  49.  
  50. NWCCODE N_API NWGetNearestDSConnRef
  51. (
  52.    pnuint32    connRef
  53. );
  54.  
  55. NWCCODE N_API NWGetNearestDirectoryService
  56. (
  57.    NWCONN_HANDLE N_FAR  *conn
  58. );
  59.  
  60. NWCCODE N_API NWSetDefaultNameContext
  61. (
  62.    nuint16  contextLength,
  63.    pnuint8  context
  64. );
  65.  
  66. NWCCODE N_API NWGetDefaultNameContext
  67. (
  68.    nuint16  bufferSize,
  69.    pnuint8  context
  70. );
  71.  
  72. NWCCODE N_API NWGetConnectionIDFromAddress
  73. (
  74.    nuint8               transType,
  75.    nuint32              transLen,
  76.    pnuint8              transBuf,
  77.    NWCONN_HANDLE N_FAR  *conn
  78. );
  79.  
  80. NWCCODE N_API NWDSGetConnectionInfo
  81. (
  82.    NWCONN_HANDLE  conn,
  83.    pnuint8        connStatus,
  84.    pnuint8        connType,
  85.    pnuint8        serverFlags,
  86.    pnuint8        serverName,
  87.    pnuint8        transType,
  88.    pnuint32       transLen,
  89.    pnuint8        transBuf,
  90.    pnuint16       distance,
  91.    pnuint16       maxPacketSize
  92. );
  93.  
  94. NWCCODE N_API NWDSGetConnectionSlot
  95. (
  96.    nuint8               connType,
  97.    nuint8               transType,
  98.    nuint32              transLen,
  99.    pnuint8              transBuf,
  100.    NWCONN_HANDLE N_FAR  *conn
  101. );
  102.  
  103. NWCCODE N_API NWGetPreferredDSServer
  104. (
  105.    NWCONN_HANDLE N_FAR  *conn
  106. );
  107.  
  108. NWCCODE N_API NWSetPreferredDSTree
  109. (
  110.    nuint16  length,
  111.    pnuint8  treeName
  112. );
  113.  
  114. NWCCODE N_API NWGetNumConnections
  115. (
  116.    pnuint16 numConnections
  117. );
  118.  
  119. NWCCODE N_API NWDSGetMonitoredConnection
  120. (
  121.    NWCONN_HANDLE N_FAR  *conn
  122. );
  123.  
  124. NWCCODE N_API NWDSSetMonitoredConnection
  125. (
  126.    NWCONN_HANDLE conn
  127. );
  128.  
  129. NWCCODE N_API NWGetConnectionIDFromName
  130. (
  131.    nuint32              nameLen,
  132.    pnuint8              name,
  133.    NWCONN_HANDLE N_FAR  *conn
  134. );
  135.  
  136. NWCCODE N_API NWIsDSAuthenticated
  137. (
  138.    void
  139. );
  140.  
  141. NWCCODE N_API NWDSLockConnection
  142. (
  143.    NWCONN_HANDLE conn
  144. );
  145.  
  146. NWCCODE N_API NWDSUnlockConnection
  147. (
  148.    NWCONN_HANDLE conn
  149. );
  150.  
  151. NWCCODE N_API NWGetPreferredConnName
  152. (
  153.    pnuint8  preferredName,
  154.    pnuint8  preferredType
  155. );
  156.  
  157. NWCCODE N_API NWFreeConnectionSlot
  158. (
  159.    NWCONN_HANDLE  conn,
  160.    nuint8         disconnectType
  161. );
  162.  
  163. NWCCODE N_API NWGetNextConnectionID
  164. (
  165.    NWCONN_HANDLE N_FAR  *conn
  166. );
  167.  
  168. #ifdef __cplusplus
  169.    }
  170. #endif
  171. #endif /* NWNDSCON_H */
  172.