Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

203 lines
3.1 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. api.h
  5. Abstract:
  6. This module contains exposed APIs that is used by the
  7. NetWare Control Panel Applet.
  8. Author:
  9. Yi-Hsin Sung 15-Jul-1993
  10. Revision History:
  11. --*/
  12. #ifndef _NWAPI_INCLUDED_
  13. #define _NWAPI_INCLUDED_
  14. #include <nwcons.h>
  15. //
  16. // Bitmask for print options
  17. //
  18. #define NW_PRINT_SUPPRESS_FORMFEED 0x08
  19. #define NW_PRINT_PRINT_BANNER 0x80
  20. #define NW_PRINT_PRINT_NOTIFY 0x10
  21. //
  22. // Flags for logon script support.
  23. //
  24. #define NW_LOGONSCRIPT_DISABLED 0x00000000
  25. #define NW_LOGONSCRIPT_ENABLED 0x00000001
  26. #define NW_LOGONSCRIPT_4X_ENABLED 0x00000002
  27. #define NW_LOGONSCRIPT_DEFAULT NW_LOGONSCRIPT_DISABLED
  28. #define NW_LOGONSCRIPT_DEBUG 0x00000800
  29. //
  30. // Values for turning on Sync login script flags.
  31. //
  32. #define SYNC_LOGONSCRIPT 0x1
  33. #define RESET_SYNC_LOGONSCRIPT 0x2
  34. //
  35. // Bitmask for gateway redirections
  36. //
  37. #define NW_GW_UPDATE_REGISTRY 0x01
  38. #define NW_GW_CLEANUP_DELETED 0x02
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42. DWORD
  43. NwQueryInfo(
  44. OUT PDWORD pnPrintOption,
  45. OUT LPWSTR *ppszPreferredSrv
  46. );
  47. DWORD
  48. NwSetInfoInRegistry(
  49. IN DWORD nPrintOption,
  50. IN LPWSTR pszPreferredSrv
  51. );
  52. DWORD
  53. NwSetLogonOptionsInRegistry(
  54. IN DWORD nLogonScriptOptions
  55. );
  56. DWORD
  57. NwQueryLogonOptions(
  58. OUT PDWORD pnLogonScriptOptions
  59. );
  60. DWORD
  61. NwSetInfoInWksta(
  62. IN DWORD nPrintOption,
  63. IN LPWSTR pszPreferredSrv
  64. );
  65. DWORD
  66. NwSetLogonScript(
  67. IN DWORD ScriptOptions
  68. );
  69. DWORD
  70. NwValidateUser(
  71. IN LPWSTR pszPreferredSrv
  72. );
  73. DWORD
  74. NwEnumGWDevices(
  75. LPDWORD Index,
  76. LPBYTE Buffer,
  77. DWORD BufferSize,
  78. LPDWORD BytesNeeded,
  79. LPDWORD EntriesRead
  80. ) ;
  81. DWORD
  82. NwAddGWDevice(
  83. LPWSTR DeviceName,
  84. LPWSTR RemoteName,
  85. LPWSTR AccountName,
  86. LPWSTR Password,
  87. DWORD Flags
  88. ) ;
  89. DWORD
  90. NwDeleteGWDevice(
  91. LPWSTR DeviceName,
  92. DWORD Flags
  93. ) ;
  94. DWORD
  95. NwEnumConnections(
  96. HANDLE hEnum,
  97. LPDWORD lpcCount,
  98. LPVOID lpBuffer,
  99. LPDWORD lpBufferSize,
  100. BOOL fImplicitConnections
  101. );
  102. DWORD
  103. NwLibSetEverybodyPermission(
  104. HKEY hKey,
  105. DWORD dwAccessPermission
  106. );
  107. DWORD
  108. NwQueryGatewayAccount(
  109. LPWSTR AccountName,
  110. DWORD AccountNameLen,
  111. LPDWORD AccountCharsNeeded,
  112. LPWSTR Password,
  113. DWORD PasswordLen,
  114. LPDWORD PasswordCharsNeeded
  115. );
  116. DWORD
  117. NwSetGatewayAccount(
  118. LPWSTR AccountName,
  119. LPWSTR Password
  120. );
  121. DWORD
  122. NwLogonGatewayAccount(
  123. LPWSTR AccountName,
  124. LPWSTR Password,
  125. LPWSTR Server
  126. );
  127. DWORD
  128. NwRegisterGatewayShare(
  129. IN LPWSTR ShareName,
  130. IN LPWSTR DriveName
  131. );
  132. DWORD
  133. NwClearGatewayShare(
  134. IN LPWSTR ShareName
  135. );
  136. DWORD
  137. NwCleanupGatewayShares(
  138. VOID
  139. );
  140. VOID
  141. MapSpecialJapaneseChars(
  142. LPSTR lpszA,
  143. WORD length
  144. );
  145. VOID
  146. UnmapSpecialJapaneseChars(
  147. LPSTR lpszA,
  148. WORD length
  149. );
  150. LPSTR
  151. NwDupStringA(
  152. const LPSTR lpszA,
  153. WORD length
  154. );
  155. #ifdef __cplusplus
  156. } // extern "C"
  157. #endif
  158. #define NwFreeStringA(lp) if((lp) != NULL) { (void)LocalFree((lp)); }
  159. #endif