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

  1. /****************************************************************************
  2.  
  3.   $Workfile:   nwclncon.h  $
  4.   $Revision:   1.2  $
  5.   $Modtime::   07 Jun 1995 11:20:44                        $
  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.  
  20. #if ! defined ( NWCLNCON_H )
  21. #define NWCLNCON_H
  22.  
  23. #if ! defined ( NTYPES_H )
  24. #include "ntypes.h"
  25. #endif
  26.  
  27. #if ! defined ( NWAPIDEF_H )
  28. #include "nwapidef.h"
  29. #endif
  30.  
  31. #include "npackon.h"
  32.  
  33. typedef nuint  NWCCAuthentState;
  34. #define NWCC_AUTHENT_STATE_NONE     0x0000
  35. #define NWCC_AUTHENT_STATE_BIND     0x0001
  36. #define NWCC_AUTHENT_STATE_NDS      0x0002
  37.  
  38. typedef nuint NWCCBCastState;
  39. #define NWCC_BCAST_PERMIT_ALL       0x0000
  40. #define NWCC_BCAST_PERMIT_SYSTEM    0x0001
  41. #define NWCC_BCAST_PERMIT_NONE      0x0002
  42. #define NWCC_BCAST_PERMIT_POLL      0x0003  /* DOS Windows and OS/2 only */
  43.  
  44. typedef nuint  NWCCNDSState;
  45. #define NWCC_NDS_NOT_CAPABLE        0x0000
  46. #define NWCC_NDS_CAPABLE            0x0001
  47.  
  48. typedef nuint  NWCCLicenseState;
  49. #define NWCC_NOT_LICENSED           0x0000
  50. #define NWCC_CONNECTION_LICENSED    0x0001
  51. #define NWCC_HANDLE_LICENSED        0x0002
  52.  
  53. typedef nuint  NWCCNameFormat;
  54. #define NWCC_NAME_FORMAT_NDS        0x0001  /* Unicode full dot format name */
  55. #define NWCC_NAME_FORMAT_BIND       0x0002
  56. #define NWCC_NAME_FORMAT_NDS_TREE   0x0008
  57.  
  58. typedef nuint32  NWCCTranType;
  59. #define NWCC_TRAN_TYPE_IPX          0x00000001
  60. #define NWCC_TRAN_TYPE_UDP          0x00000002
  61. #define NWCC_TRAN_TYPE_DDP          0x00000003
  62. #define NWCC_TRAN_TYPE_ASP          0x00000004
  63.  
  64. typedef nuint  NWCCOpenState;
  65. #define NWCC_OPEN_LICENSED          0x0001
  66. #define NWCC_OPEN_UNLICENSED        0x0002
  67.  
  68. typedef nuint  NWCCReserved;
  69. #define NWCC_RESERVED               0x0000
  70.  
  71. typedef struct tagNWCCTranAddr
  72. {
  73.    NWCCTranType   type;
  74.    nuint32        len;
  75.    pnuint8        buffer;
  76. } NWCCTranAddr, N_FAR *pNWCCTranAddr;
  77.  
  78. typedef struct tagNWCCVersion
  79. {
  80.    nuint major;
  81.    nuint minor;
  82.    nuint revision;
  83. }NWCCVersion, N_FAR *pNWCCVersion;
  84.  
  85. typedef nuint NWCCInfoType;
  86. #define NWCC_INFO_AUTHENT_STATE      1
  87. #define NWCC_INFO_BCAST_STATE        2
  88. #define NWCC_INFO_CONN_REF           3
  89. #define NWCC_INFO_TREE_NAME          4
  90. #define NWCC_INFO_CONN_NUMBER        5
  91. #define NWCC_INFO_USER_ID            6
  92. #define NWCC_INFO_SERVER_NAME        7
  93. #define NWCC_INFO_TRAN_ADDR          8
  94. #define NWCC_INFO_NDS_STATE          9
  95. #define NWCC_INFO_MAX_PACKET_SIZE   10
  96. #define NWCC_INFO_LICENSE_STATE     11
  97. #define NWCC_INFO_DISTANCE          12
  98. #define NWCC_INFO_SERVER_VERSION    13
  99.  
  100. typedef nuint NWCCInfoVersion;
  101. #define NWCC_INFO_VERSION           0x0001
  102.  
  103. /* Transport Address is not returned in this structure */
  104. typedef struct tagNWCCConnInfo
  105. {
  106.    NWCCAuthentState     authenticationState;
  107.    NWCCBCastState       broadcastState;
  108.    nuint32              connRef;
  109.    nstr                 treeName[NWA_MAX_TREE_NAME_LEN];
  110.    nuint                connNum;
  111.    nuint32              userID;
  112.    nstr                 serverName[NWA_MAX_SERVER_NAME_LEN];
  113.    NWCCNDSState         NDSState;
  114.    nuint                maxPacketSize;
  115.    NWCCLicenseState     licenseState;
  116.    nuint                distance;
  117.    NWCCVersion          serverVersion;
  118. }NWCCConnInfo, N_FAR *pNWCCConnInfo;
  119.  
  120. #ifdef __cplusplus
  121. extern "C" {
  122. #endif
  123.  
  124. N_EXTERN_LIBRARY( NWRCODE )
  125. NWCCOpenConnByName
  126. (
  127.    NWCONN_HANDLE           startConnHandle,     /* in     */
  128.    pnstr8                  name,                /* in     */
  129.    NWCCNameFormat          nameFormat,          /* in     */
  130.    NWCCOpenState           openState,           /* in     */
  131.    NWCCReserved            reserved,            /* in     * use NWCC_RESERVED */
  132.    NWCONN_HANDLE N_FAR *   connHandle           /*    out */
  133. );
  134.  
  135. N_EXTERN_LIBRARY( NWRCODE )
  136. NWCCOpenConnByAddr
  137. (
  138.    pNWCCTranAddr           tranAddr,            /* in     */
  139.    NWCCOpenState           openState,           /* in     */
  140.    NWCCReserved            reserved,            /* in     * use NWCC_RESERVED */
  141.    NWCONN_HANDLE N_FAR *   connHandle           /*    out */
  142. );
  143.  
  144. N_EXTERN_LIBRARY( NWRCODE )
  145. NWCCOpenConnByRef
  146. (
  147.    nuint32                 connRef,             /* in     */
  148.    NWCCOpenState           openState,           /* in     */
  149.    NWCCReserved            reserved,            /* in     * use NWCC_RESERVED */
  150.    NWCONN_HANDLE N_FAR *   connHandle           /*    out */          
  151. );
  152.  
  153. N_EXTERN_LIBRARY( NWRCODE )
  154. NWCCCloseConn
  155. (
  156.    NWCONN_HANDLE  connHandle                    /* in     */
  157. );
  158.  
  159. N_EXTERN_LIBRARY( NWRCODE )
  160. NWCCSysCloseConnRef
  161. (
  162.    nuint32       connRef                        /* in     */
  163. );
  164.  
  165. N_EXTERN_LIBRARY( NWRCODE )
  166. NWCCMakeConnPermanent
  167. (
  168.    NWCONN_HANDLE  connHandle                    /* in     */
  169. );
  170.  
  171. N_EXTERN_LIBRARY( NWRCODE )
  172. NWCCLicenseConn
  173. (
  174.    NWCONN_HANDLE  connHandle                    /* in     */
  175. );
  176.  
  177. N_EXTERN_LIBRARY( NWRCODE )
  178. NWCCUnlicenseConn
  179. (
  180.    NWCONN_HANDLE  connHandle                    /* in     */
  181. );
  182.  
  183. N_EXTERN_LIBRARY( NWRCODE )
  184. NWCCGetConnRef
  185. (
  186.    NWCONN_HANDLE  connHandle,                   /* in     */
  187.    pnuint32       connRef                       /*    out */
  188. );
  189.  
  190. N_EXTERN_LIBRARY( NWRCODE )
  191. NWCCGetPrefServerName
  192. (
  193.    nuint    len,                                /* in     */
  194.    pnstr    prefServer                          /*    out */
  195. );
  196.  
  197. N_EXTERN_LIBRARY( NWRCODE )
  198. NWCCSetPrefServerName
  199. (
  200.    pnstr    prefServer                          /* in     */
  201. );
  202.  
  203. N_EXTERN_LIBRARY( NWRCODE )
  204. NWCCGetPrimConnRef
  205. (
  206.    pnuint32 connRef                             /*    out */
  207. );
  208.  
  209. N_EXTERN_LIBRARY( NWRCODE )
  210. NWCCSetPrimConn
  211. (
  212.    NWCONN_HANDLE  connHandle                    /* in     */
  213. );
  214.  
  215. N_EXTERN_LIBRARY( NWRCODE )
  216. NWCCScanConnRefs
  217. (  
  218.    pnuint32    scanIterator,                    /* in/out : initialize to 0 */
  219.    pnuint32    connRef                          /*    out */
  220. );
  221.  
  222. N_EXTERN_LIBRARY( NWRCODE )
  223. NWCCGetConnInfo
  224. (
  225.    NWCONN_HANDLE  connHandle,                   /* in     */
  226.    NWCCInfoType   infoType,                     /* in     */
  227.    nuint          len,                          /* in     */
  228.    nptr           buffer                        /*    out */
  229. ); 
  230.  
  231. N_EXTERN_LIBRARY( NWRCODE )
  232. NWCCGetConnRefInfo
  233. (
  234.    nuint32        connRef,                      /* in     */
  235.    NWCCInfoType   infoType,                     /* in     */
  236.    nuint          len,                          /* in     */
  237.    nptr           buffer                        /*    out */
  238. ); 
  239.  
  240. N_EXTERN_LIBRARY( NWRCODE )
  241. NWCCGetAllConnInfo
  242. (
  243.    NWCONN_HANDLE     connHandle,                /* in     */
  244.    NWCCInfoVersion   connInfoVersion,           /* in     */
  245.                                                 /* always set to NWCC_INFO_VERSION */
  246.    pNWCCConnInfo     connInfoBuffer             /*    out */
  247. ); 
  248.  
  249. N_EXTERN_LIBRARY( NWRCODE )
  250. NWCCGetAllConnRefInfo
  251. (
  252.    nuint32           connRef,                   /* in     */
  253.    NWCCInfoVersion   connInfoVersion,           /* in     */
  254.                                                 /* always set to NWCC_INFO_VERSION */
  255.    pNWCCConnInfo     connInfoBuffer             /*    out */
  256. ); 
  257.  
  258. N_EXTERN_LIBRARY( NWRCODE )
  259. NWCCGetConnAddressLength
  260. (
  261.    NWCONN_HANDLE     connHandle,
  262.    pnuint32          addrLen
  263. );
  264.  
  265. N_EXTERN_LIBRARY( NWRCODE )
  266. NWCCGetConnRefAddressLength
  267. (
  268.    nuint32           connRef,
  269.    pnuint32          addrLen
  270. );
  271.  
  272.  
  273. N_EXTERN_LIBRARY( NWRCODE )
  274. NWCCGetConnAddress
  275. (
  276.    NWCONN_HANDLE     connHandle,                /* in     */
  277.    nuint32           bufferLen,                 /* in     */
  278.    pNWCCTranAddr     tranAddr                   /*    out */
  279. ); 
  280.  
  281. N_EXTERN_LIBRARY( NWRCODE )
  282. NWCCGetConnRefAddress
  283. (
  284.    nuint32           connRef,                   /* in     */
  285.    nuint32           bufferLen,                 /* in     */
  286.    pNWCCTranAddr     tranAddr                   /*    out */
  287. ); 
  288.  
  289. #ifdef __cplusplus
  290. }
  291. #endif
  292.  
  293. #include "npackoff.h"
  294. #endif /* NWCLNCON_INC */
  295.