Leaked source code of windows server 2003
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.

202 lines
5.9 KiB

  1. /*++
  2. Copyright (c) 1991-1992 Microsoft Corporation
  3. Module Name:
  4. StrucInf.h
  5. Abstract:
  6. This is the header file for routines which return information about
  7. a given info level for a given category of API.
  8. Author:
  9. John Rogers (JohnRo) 31-Jul-1991
  10. Environment:
  11. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  12. Requires ANSI C extensions: slash-slash comments, long external names.
  13. Notes:
  14. You must include <windef.h>, <lmcons.h>, and <rap.h> before this file.
  15. Revision History:
  16. 31-Jul-1991 JohnRo
  17. Implement downlevel NetWksta APIs.
  18. 20-Aug-1991 JohnRo
  19. Downlevel NetFile APIs.
  20. 07-Sep-1991 JohnRo
  21. Downlevel NetService APIs.
  22. 15-Oct-1991 JohnRo
  23. Implement remote NetSession APIs.
  24. 07-Jan-1992 JohnRo
  25. Added replicator structures.
  26. 06-Apr-1992 JohnRo
  27. Added alert structures.
  28. 03-Jun-1992 JohnRo
  29. RAID 10324: net print vs. UNICODE.
  30. --*/
  31. #ifndef _STRUCINF_
  32. #define _STRUCINF_
  33. #include <rap.h> // LPDESC.
  34. // Each of these routines returns ERROR_INVALID_LEVEL or NO_ERROR.
  35. // (Except NetpAlertStructureInfo, which returns NERR_NoSuchAlert or NO_ERROR.)
  36. NET_API_STATUS
  37. NetpAlertStructureInfo(
  38. IN LPTSTR AlertType, // ALERT_xxx_EVENT string (see <lmalert.h>).
  39. OUT LPDWORD MaxSize OPTIONAL,
  40. OUT LPDWORD FixedSize OPTIONAL
  41. );
  42. NET_API_STATUS
  43. NetpFileStructureInfo (
  44. IN DWORD Level,
  45. IN DWORD ParmNum, // Use PARMNUM_ALL if not applicable.
  46. IN BOOL Native, // Should sizes be native or RAP?
  47. OUT LPDESC * DataDesc16 OPTIONAL,
  48. OUT LPDESC * DataDesc32 OPTIONAL,
  49. OUT LPDESC * DataDescSmb OPTIONAL,
  50. OUT LPDWORD MaxSize OPTIONAL,
  51. OUT LPDWORD FixedSize OPTIONAL,
  52. OUT LPDWORD StringSize OPTIONAL
  53. );
  54. NET_API_STATUS
  55. NetpPrintDestStructureInfo (
  56. IN DWORD Level,
  57. IN DWORD ParmNum, // Use PARMNUM_ALL if not applicable.
  58. IN BOOL Native, // Should sizes be native or RAP?
  59. IN BOOL AddOrSetInfoApi,
  60. IN DWORD CharSize, // size of chars wanted
  61. OUT LPDESC * DataDesc16 OPTIONAL,
  62. OUT LPDESC * DataDesc32 OPTIONAL,
  63. OUT LPDESC * DataDescSmb OPTIONAL,
  64. OUT LPDWORD MaxSize OPTIONAL,
  65. OUT LPDWORD FixedSize OPTIONAL,
  66. OUT LPDWORD StringSize OPTIONAL
  67. );
  68. NET_API_STATUS
  69. NetpPrintJobStructureInfo (
  70. IN DWORD Level,
  71. IN DWORD ParmNum, // Use PARMNUM_ALL if not applicable.
  72. IN BOOL Native, // Should sizes be native or RAP?
  73. IN BOOL SetInfoApi,
  74. IN DWORD CharSize, // size of chars wanted
  75. OUT LPDESC * DataDesc16 OPTIONAL,
  76. OUT LPDESC * DataDesc32 OPTIONAL,
  77. OUT LPDESC * DataDescSmb OPTIONAL,
  78. OUT LPDWORD MaxSize OPTIONAL,
  79. OUT LPDWORD FixedSize OPTIONAL,
  80. OUT LPDWORD StringSize OPTIONAL
  81. );
  82. NET_API_STATUS
  83. NetpPrintQStructureInfo (
  84. IN DWORD Level,
  85. IN DWORD ParmNum, // Use PARMNUM_ALL if not applicable.
  86. IN BOOL Native, // Should sizes be native or RAP?
  87. IN BOOL AddOrSetInfoApi,
  88. IN DWORD CharSize, // size of chars wanted
  89. OUT LPDESC * DataDesc16 OPTIONAL,
  90. OUT LPDESC * DataDesc32 OPTIONAL,
  91. OUT LPDESC * DataDescSmb OPTIONAL,
  92. OUT LPDESC * AuxDesc16 OPTIONAL,
  93. OUT LPDESC * AuxDesc32 OPTIONAL,
  94. OUT LPDESC * AuxDescSmb OPTIONAL,
  95. OUT LPDWORD MaxSize OPTIONAL,
  96. OUT LPDWORD FixedSize OPTIONAL,
  97. OUT LPDWORD StringSize OPTIONAL
  98. );
  99. NET_API_STATUS
  100. NetpReplDirStructureInfo (
  101. IN DWORD Level,
  102. IN DWORD ParmNum, // Use PARMNUM_ALL if not applicable.
  103. IN BOOL Native, // Should sizes be native or RAP?
  104. OUT LPDESC * DataDesc16 OPTIONAL,
  105. OUT LPDESC * DataDesc32 OPTIONAL,
  106. OUT LPDESC * DataDescSmb OPTIONAL,
  107. OUT LPDWORD MaxSize OPTIONAL,
  108. OUT LPDWORD FixedSize OPTIONAL,
  109. OUT LPDWORD StringSize OPTIONAL
  110. );
  111. NET_API_STATUS
  112. NetpReplExportDirStructureInfo (
  113. IN DWORD Level,
  114. IN DWORD ParmNum, // Use PARMNUM_ALL if not applicable.
  115. IN BOOL Native, // Should sizes be native or RAP?
  116. OUT LPDESC * DataDesc16 OPTIONAL,
  117. OUT LPDESC * DataDesc32 OPTIONAL,
  118. OUT LPDESC * DataDescSmb OPTIONAL,
  119. OUT LPDWORD MaxSize OPTIONAL,
  120. OUT LPDWORD FixedSize OPTIONAL,
  121. OUT LPDWORD StringSize OPTIONAL
  122. );
  123. NET_API_STATUS
  124. NetpReplImportDirStructureInfo (
  125. IN DWORD Level,
  126. IN DWORD ParmNum, // Use PARMNUM_ALL if not applicable.
  127. IN BOOL Native, // Should sizes be native or RAP?
  128. OUT LPDESC * DataDesc16 OPTIONAL,
  129. OUT LPDESC * DataDesc32 OPTIONAL,
  130. OUT LPDESC * DataDescSmb OPTIONAL,
  131. OUT LPDWORD MaxSize OPTIONAL,
  132. OUT LPDWORD FixedSize OPTIONAL,
  133. OUT LPDWORD StringSize OPTIONAL
  134. );
  135. NET_API_STATUS
  136. NetpServiceStructureInfo (
  137. IN DWORD Level,
  138. IN DWORD ParmNum, // Use PARMNUM_ALL if not applicable.
  139. IN BOOL Native, // Should sizes be native or RAP?
  140. OUT LPDESC * DataDesc16 OPTIONAL,
  141. OUT LPDESC * DataDesc32 OPTIONAL,
  142. OUT LPDESC * DataDescSmb OPTIONAL,
  143. OUT LPDWORD MaxSize OPTIONAL,
  144. OUT LPDWORD FixedSize OPTIONAL,
  145. OUT LPDWORD StringSize OPTIONAL
  146. );
  147. NET_API_STATUS
  148. NetpSessionStructureInfo (
  149. IN DWORD Level,
  150. IN DWORD ParmNum, // Use PARMNUM_ALL if not applicable.
  151. IN BOOL Native, // Should sizes be native or RAP?
  152. OUT LPDESC * DataDesc16 OPTIONAL,
  153. OUT LPDESC * DataDesc32 OPTIONAL,
  154. OUT LPDESC * DataDescSmb OPTIONAL,
  155. OUT LPDWORD MaxSize OPTIONAL,
  156. OUT LPDWORD FixedSize OPTIONAL,
  157. OUT LPDWORD StringSize OPTIONAL
  158. );
  159. NET_API_STATUS
  160. NetpWkstaStructureInfo (
  161. IN DWORD Level,
  162. IN DWORD ParmNum, // Use PARMNUM_ALL if not applicable.
  163. IN BOOL Native, // Should sizes be native or RAP?
  164. OUT LPDESC * DataDesc16 OPTIONAL,
  165. OUT LPDESC * DataDesc32 OPTIONAL,
  166. OUT LPDESC * DataDescSmb OPTIONAL,
  167. OUT LPDWORD MaxSize OPTIONAL,
  168. OUT LPDWORD FixedSize OPTIONAL,
  169. OUT LPDWORD StringSize OPTIONAL
  170. );
  171. #endif // ndef _STRUCINF_