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

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwtcomm.h  $
  4.   $Revision:   1.9  $
  5.   $Modtime::   08 May 1995 16:55:24                        $
  6.   $Copyright:
  7.  
  8.   Copyright (c) 1989-1995 Novell, Inc.  All Rights Reserved.                      
  9.  
  10.   THIS WORK IS AN UNPUBLISHED WORK AND CONTAINS CONFIDENTIAL PROPRIETARY
  11.   AND TRADE SECRET INFORMATION OF NOVELL, INC. ACCESS  TO  THIS  WORK IS
  12.   RESTRICTED TO (I) NOVELL, INC.  EMPLOYEES WHO HAVE A NEED TO  KNOW HOW
  13.   TO  PERFORM  TASKS WITHIN  THE SCOPE  OF  THEIR   ASSIGNMENTS AND (II)
  14.   ENTITIES OTHER  THAN  NOVELL, INC.  WHO  HAVE ENTERED INTO APPROPRIATE 
  15.   LICENSE   AGREEMENTS.  NO  PART  OF  THIS WORK MAY BE USED, PRACTICED,
  16.   PERFORMED COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED, ABRIDGED,
  17.   CONDENSED, EXPANDED, COLLECTED, COMPILED, LINKED,  RECAST, TRANSFORMED
  18.   OR ADAPTED  WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC.  ANY USE
  19.   OR EXPLOITATION  OF  THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE
  20.   PERPETRATOR  TO CRIMINAL AND CIVIL LIABILITY.$
  21.  
  22.  *****************************************************************************/
  23.  
  24. #if ! defined ( NWTCOMM_H )
  25. #define NWTCOMM_H
  26.  
  27. #if ! defined ( NWALIAS_H )
  28. #include "nwalias.h"
  29. #endif
  30.  
  31. #if ! defined ( NWDSDC_H )
  32. #include "nwdsdc.h"
  33. #endif
  34.  
  35. #if ! defined ( NWDSDEFS_H )
  36. #include "nwdsdefs.h"
  37. #endif
  38.  
  39. #if ! defined ( NWCALDEF_H )
  40. # include "nwcaldef.h"
  41. #endif
  42.  
  43.  
  44. # define NWT_MAX_PASSWORD 125
  45.  
  46. extern NWCONN_HANDLE     _connHandle;
  47. extern NWCONN_TYPE       _connType;
  48. extern NWDSContextHandle _contextHandle;
  49. extern char              _serverName[];
  50. extern char              _objTree[];
  51. extern char              _objContext[];
  52. extern char              _objName[];
  53. extern char              _objPassword[];
  54.  
  55. extern int               _codePage;
  56. extern int               _countryCode;
  57.  
  58. #ifndef LONG
  59. # define LONG        unsigned long
  60. # define BYTE        unsigned char
  61. #endif
  62.  
  63. extern  UINT32   _blockingStatus;
  64.  
  65. extern LONG            GetProcessSwitchCount(void);
  66.  
  67. UINT32  NWTWriteStackDepthSignatures(void);
  68. UINT32  NWTCheckStackDepthSignatures(void);
  69. UINT32  NWTLogBlockingMessage( LONG blockingCountBefore,LONG blockingCountAfter, 
  70.                                          UINT32 blockingStatus,   char * functionName);
  71. void delaySeconds (int seconds);
  72. int IsValid(NWDSContextHandle nContext,char *ObjectName);
  73. int IsDeleted(NWDSContextHandle nContext,char *ObjectName);
  74. int ReplicasAreStable(NWDSContextHandle nContext, char *ObjectName);
  75.  
  76.  
  77. #ifdef N_PLAT_NLM
  78.  
  79. extern WORD _fileServerID;
  80.  
  81. # define NWT_NON_BLOCKING      0
  82. # define NWT_BLOCKING          1
  83. # define NWT_REMOTE_BLOCKING   2
  84. # define NWT_UNKNOWN_BLOCKING  3
  85.  
  86.  
  87. # define NWT_REGULAR_THREAD    0
  88. # define NWT_WORK_THREAD       1
  89. # define NWT_AT_EVENT_THREAD   2
  90. # define NWT_AT_EXIT_THREAD    3
  91. # define NWT_AT_UNLOAD_THREAD  4
  92. # define    NWT_DEFAULT_THREAD    5
  93.  
  94. /* -------------------------------------------
  95.  * Prototypes for NWTNLM Special NLM Functions
  96.  * -------------------------------------------
  97.  */
  98. /*  From 4.10\src\miniproc.h     Functions imported from CLIB  */
  99.  
  100. extern void CSetD(   LONG value,    void *address, LONG numberOfDWords);
  101. extern LONG CNFindD(    LONG value,    void *address,    LONG numberOfDWords);
  102.  
  103. UINT32  NWTPromptForBlockingStatus(void);
  104. UINT32  NWTPromptForThreadType(void);
  105. UINT32  NWTCallThreadType( UINT32 threadType,
  106.                                     void *callParameters,
  107.                                     UINT32 *complete,
  108.                                     void(*CallFunction)(void *),
  109.                                     void(*WorkToDoFunction)(),
  110.                                     void(*SignalFunction)(int) );
  111.  
  112. #endif
  113.  
  114. UINT32 NWTReportInfo( void );
  115.  
  116. UINT32 NWTPNWLogin(  void );
  117.  
  118. UINT32 NWTLogin(     void );
  119.  
  120. UINT32 NWTLoginByNum( int promptNum );
  121.  
  122. UINT32 NWTLogout(    void );
  123.  
  124. UINT32 NWTBinderyLogin(   void );
  125.  
  126. UINT32 NWTDirectoryLogin( void );
  127.  
  128. NWCONN_HANDLE NWTGetBadConnHandle( NWCONN_HANDLE connHandle );
  129.  
  130. UINT32 NWTCompareConnHandles(NWCONN_HANDLE conn1, NWCONN_HANDLE conn2);
  131.  
  132.  
  133. #endif
  134.  
  135.