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

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwdsdc.h  $
  4.   $Revision:   1.18  $
  5.   $Modtime::   17 Jul 1995 14:58:46                        $
  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 ( NWDSDC_H )
  20. #define NWDSDC_H
  21.  
  22. #if ! defined( NTYPES_H )
  23. #include "ntypes.h"
  24. #endif
  25.  
  26. #if ! defined( NWDSTYPE_H )
  27. #include "nwdstype.h"
  28. #endif
  29.  
  30. #include "npackon.h"
  31.  
  32. /* Directory Context Key names */
  33.  
  34. #define  DCK_FLAGS               1
  35. #define  DCK_CONFIDENCE          2
  36. #define  DCK_NAME_CONTEXT        3
  37. #define  DCK_TRANSPORT_TYPE      4
  38. #define  DCK_REFERRAL_SCOPE      5
  39. #define  DCK_LAST_CONNECTION     8
  40. #define  DCK_LAST_SERVER_ADDRESS 9  /* NLM only--see NWDSIPXNetworkAddr */
  41. #define  DCK_LAST_ADDRESS_USED   10 /* NLM only--above valid only if this set */
  42. #define  DCK_TREE_NAME           11
  43.  
  44. #define  DCV_DEREF_ALIASES       0x00000001L
  45. #define  DCV_XLATE_STRINGS       0x00000002L
  46. #define  DCV_TYPELESS_NAMES      0x00000004L
  47. #define  DCV_ASYNC_MODE          0x00000008L
  48. #define  DCV_CANONICALIZE_NAMES  0x00000010L
  49. #define  DCV_DEREF_BASE_CLASS    0x00000040L
  50.  
  51. /* values for DCK_CONFIDENCE key */
  52. #define  DCV_LOW_CONF         0
  53. #define  DCV_MED_CONF         1
  54. #define  DCV_HIGH_CONF        2
  55.  
  56. #define  MAX_MESSAGE_LEN            (63*1024)
  57. #define  DEFAULT_MESSAGE_LEN        (4*1024)
  58.  
  59. /* values for DCK_REFERRAL_SCOPE key */
  60. #define  DCV_ANY_SCOPE              0
  61. #define  DCV_COUNTRY_SCOPE          1
  62. #define  DCV_ORGANIZATION_SCOPE     2
  63. #define  DCV_LOCAL_SCOPE            3
  64.  
  65. typedef  nuint32   NWDSContextHandle;
  66.  
  67. #if defined(N_PLAT_NLM)
  68. typedef struct
  69. {
  70.    uint32   addressType;
  71.    uint32   addressLength;
  72.    uint8    address[12];
  73. } NWDSIPXNetworkAddr;
  74. #endif
  75.  
  76. #ifdef __cplusplus
  77.    extern "C" {
  78. #endif
  79.  
  80. N_EXTERN_LIBRARY (NWDSContextHandle)
  81. NWDSCreateContext
  82. (
  83.    void
  84. );
  85.  
  86. N_EXTERN_LIBRARY (NWDSContextHandle)
  87. NWDSDuplicateContext
  88. (
  89.    NWDSContextHandle oldContext
  90. );
  91.  
  92. N_EXTERN_LIBRARY (NWDSCCODE)
  93. NWDSFreeContext
  94. (
  95.    NWDSContextHandle context
  96. );
  97.  
  98. N_EXTERN_LIBRARY (NWDSCCODE)
  99. NWDSGetContext
  100. (
  101.    NWDSContextHandle context,
  102.    nint              key,
  103.    nptr              value
  104. );
  105.  
  106. N_EXTERN_LIBRARY (NWDSCCODE)
  107. NWDSSetContext
  108. (
  109.    NWDSContextHandle context,
  110.    nint              key,
  111.    nptr              value
  112. );
  113.  
  114. N_EXTERN_LIBRARY (NWDSCCODE)
  115. NWDSCreateContextHandle
  116. (
  117.    NWDSContextHandle N_FAR *newHandle
  118. );
  119.  
  120. N_EXTERN_LIBRARY (NWDSCCODE)
  121. NWDSDuplicateContextHandle
  122. (
  123.    NWDSContextHandle N_FAR *destContextHandle,
  124.    NWDSContextHandle       srcContextHandle
  125. );
  126.  
  127. #ifdef __cplusplus
  128.    }
  129. #endif
  130. #include "npackoff.h"
  131. #endif   /* NWDSDC_H */
  132.