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.

117 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. RxServer.h
  5. Abstract:
  6. This is the public header file for the NT version of RpcXlate.
  7. This contains prototypes for the RxNetServer APIs and old info level
  8. structures (in 32-bit format).
  9. Author:
  10. John Rogers (JohnRo) 01-May-1991
  11. Environment:
  12. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  13. Requires ANSI C extensions: slash-slash comments, long external names.
  14. Notes:
  15. You must include <windef.h>, <lmcons.h>, and <rap.h> before this file.
  16. Revision History:
  17. 01-May-1991 JohnRo
  18. Created.
  19. 26-May-1991 JohnRo
  20. Added incomplete output parm to RxGetServerInfoLevelEquivalent.
  21. 04-Dec-1991 JohnRo
  22. Change RxNetServerSetInfo() to new-style interface.
  23. --*/
  24. #ifndef _RXSERVER_
  25. #define _RXSERVER_
  26. //
  27. // Handlers for individual APIs:
  28. // (Add prototypes for other APIs here, in alphabetical order.)
  29. //
  30. NET_API_STATUS
  31. RxNetServerDiskEnum (
  32. IN LPTSTR UncServerName,
  33. IN DWORD Level,
  34. OUT LPBYTE *BufPtr,
  35. IN DWORD PrefMaxSize,
  36. OUT LPDWORD EntriesRead,
  37. OUT LPDWORD TotalEntries,
  38. IN OUT LPDWORD Resume_Handle OPTIONAL
  39. );
  40. NET_API_STATUS
  41. RxNetServerEnum (
  42. IN LPCWSTR UncServerName,
  43. IN LPCWSTR TransportName,
  44. IN DWORD Level,
  45. OUT LPBYTE *BufPtr,
  46. IN DWORD PrefMaxSize,
  47. OUT LPDWORD EntriesRead,
  48. OUT LPDWORD TotalEntries,
  49. IN DWORD ServerType,
  50. IN LPCWSTR Domain OPTIONAL,
  51. IN LPCWSTR FirstNameToReturn OPTIONAL
  52. );
  53. NET_API_STATUS
  54. RxNetServerGetInfo (
  55. IN LPTSTR UncServerName,
  56. IN DWORD Level, // May be old or new info level.
  57. OUT LPBYTE *BufPtr
  58. );
  59. NET_API_STATUS
  60. RxNetServerSetInfo (
  61. IN LPTSTR UncServerName,
  62. IN DWORD Level, // Level and/or ParmNum
  63. IN LPBYTE Buf,
  64. OUT LPDWORD ParmError OPTIONAL
  65. );
  66. //
  67. // Equates for set-info handling.
  68. //
  69. #define NEW_SERVER_SUPERSET_LEVEL 102
  70. #define OLD_SERVER_SUPERSET_LEVEL 3
  71. //
  72. // Server-specific common routines:
  73. //
  74. NET_API_STATUS
  75. RxGetServerInfoLevelEquivalent (
  76. IN DWORD FromLevel,
  77. IN BOOL FromNative,
  78. IN BOOL ToNative,
  79. OUT LPDWORD ToLevel,
  80. OUT LPDESC * ToDataDesc16 OPTIONAL,
  81. OUT LPDESC * ToDataDesc32 OPTIONAL,
  82. OUT LPDESC * ToDataDescSmb OPTIONAL,
  83. OUT LPDWORD FromMaxSize OPTIONAL,
  84. OUT LPDWORD FromFixedSize OPTIONAL,
  85. OUT LPDWORD FromStringSize OPTIONAL,
  86. OUT LPDWORD ToMaxSize OPTIONAL,
  87. OUT LPDWORD ToFixedSize OPTIONAL,
  88. OUT LPDWORD ToStringSize OPTIONAL,
  89. OUT LPBOOL IncompleteOutput OPTIONAL
  90. );
  91. #endif // ndef _RXSERVER_