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.

412 lines
11 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. XsDef16.h
  5. Abstract:
  6. Type declarations and constants for default values returned to 16-bit
  7. clients. Data expected by downlevel clients but not available to NT
  8. is defined here.
  9. Author:
  10. David Treadwell (davidtr) 09-Jan-1991
  11. Revision History:
  12. --*/
  13. #ifndef _XSDEF16_
  14. #define _XSDEF16_
  15. //
  16. // The string definitions in this file are put into 16-bit
  17. // structures with a macro that converts Unicode->Ansi.
  18. // Therefore, these definitions should be Unicode.
  19. // All other definitions are Ascii, and should be left alone.
  20. //
  21. // 16-bit info structures for manual filling of defaults.
  22. //
  23. #include <packon.h>
  24. // Pointers are actually Dword offsets (64-bit compat)
  25. #define LPSTR_16_REMOTE DWORD
  26. typedef struct _ACCESS_16_INFO_1 {
  27. LPSTR_16_REMOTE acc1_resource_name;
  28. WORD acc1_attr;
  29. WORD acc1_count;
  30. } ACCESS_16_INFO_1, *PACCESS_16_INFO_1;
  31. typedef struct _PRQINFO_16 {
  32. LPSTR_16_REMOTE pszName;
  33. WORD uPriority;
  34. WORD uStartTime;
  35. WORD uUntilTime;
  36. WORD pad1;
  37. LPSTR_16_REMOTE pszSepFile;
  38. LPSTR_16_REMOTE pszPrProc;
  39. LPSTR_16_REMOTE pszParms;
  40. LPSTR_16_REMOTE pszComment;
  41. WORD fsStatus;
  42. WORD cJobs;
  43. LPSTR_16_REMOTE pszPrinters;
  44. LPSTR_16_REMOTE pszDriverName;
  45. PBYTE pDriverData;
  46. } PRQINFO3_16, *PPRQINFO3_16;
  47. typedef struct _PRJINFO_16 {
  48. WORD uJobId;
  49. WORD uPriority;
  50. LPSTR_16_REMOTE pszUserName;
  51. WORD uPosition;
  52. WORD fsStatus;
  53. DWORD ulSubmitted;
  54. DWORD ulSize;
  55. LPSTR_16_REMOTE pszComment;
  56. LPSTR_16_REMOTE pszDocument;
  57. } PRJINFO2_16, *PPRJINFO2_16;
  58. typedef struct _PRINTQ_16_INFO_5 {
  59. LPSTR_16_REMOTE pszName;
  60. } PRQ_16_INFO_5, *PPRQ_16_INFO_5;
  61. typedef struct _SERVER_16_INFO_2 {
  62. BYTE sv2_name[LM20_CNLEN + 1];
  63. BYTE sv2_version_major;
  64. BYTE sv2_version_minor;
  65. DWORD sv2_type;
  66. LPSTR_16_REMOTE sv2_comment;
  67. DWORD sv2_ulist_mtime;
  68. DWORD sv2_glist_mtime;
  69. DWORD sv2_alist_mtime;
  70. WORD sv2_users;
  71. WORD sv2_disc;
  72. LPSTR_16_REMOTE sv2_alerts;
  73. WORD sv2_security;
  74. WORD sv2_auditing;
  75. WORD sv2_numadmin;
  76. WORD sv2_lanmask;
  77. WORD sv2_hidden;
  78. WORD sv2_announce;
  79. WORD sv2_anndelta;
  80. BYTE sv2_guestacct[LM20_UNLEN + 1];
  81. BYTE sv2_pad1;
  82. LPSTR_16_REMOTE sv2_userpath;
  83. WORD sv2_chdevs;
  84. WORD sv2_chdevq;
  85. WORD sv2_chdevjobs;
  86. WORD sv2_connections;
  87. WORD sv2_shares;
  88. WORD sv2_openfiles;
  89. WORD sv2_sessopens;
  90. WORD sv2_sessvcs;
  91. WORD sv2_sessreqs;
  92. WORD sv2_opensearch;
  93. WORD sv2_activelocks;
  94. WORD sv2_numreqbuf;
  95. WORD sv2_sizreqbuf;
  96. WORD sv2_numbigbuf;
  97. WORD sv2_numfiletasks;
  98. WORD sv2_alertsched;
  99. WORD sv2_erroralert;
  100. WORD sv2_logonalert;
  101. WORD sv2_accessalert;
  102. WORD sv2_diskalert;
  103. WORD sv2_netioalert;
  104. WORD sv2_maxauditsz;
  105. LPSTR_16_REMOTE sv2_srvheuristics;
  106. } SERVER_16_INFO_2, *PSERVER_16_INFO_2;
  107. typedef struct _SERVER_16_INFO_3 {
  108. BYTE sv3_name[LM20_CNLEN + 1];
  109. BYTE sv3_version_major;
  110. BYTE sv3_version_minor;
  111. DWORD sv3_type;
  112. LPSTR_16_REMOTE sv3_comment;
  113. DWORD sv3_ulist_mtime;
  114. DWORD sv3_glist_mtime;
  115. DWORD sv3_alist_mtime;
  116. WORD sv3_users;
  117. WORD sv3_disc;
  118. LPSTR_16_REMOTE sv3_alerts;
  119. WORD sv3_security;
  120. WORD sv3_auditing;
  121. WORD sv3_numadmin;
  122. WORD sv3_lanmask;
  123. WORD sv3_hidden;
  124. WORD sv3_announce;
  125. WORD sv3_anndelta;
  126. BYTE sv3_guestacct[LM20_UNLEN + 1];
  127. BYTE sv3_pad1;
  128. LPSTR_16_REMOTE sv3_userpath;
  129. WORD sv3_chdevs;
  130. WORD sv3_chdevq;
  131. WORD sv3_chdevjobs;
  132. WORD sv3_connections;
  133. WORD sv3_shares;
  134. WORD sv3_openfiles;
  135. WORD sv3_sessopens;
  136. WORD sv3_sessvcs;
  137. WORD sv3_sessreqs;
  138. WORD sv3_opensearch;
  139. WORD sv3_activelocks;
  140. WORD sv3_numreqbuf;
  141. WORD sv3_sizreqbuf;
  142. WORD sv3_numbigbuf;
  143. WORD sv3_numfiletasks;
  144. WORD sv3_alertsched;
  145. WORD sv3_erroralert;
  146. WORD sv3_logonalert;
  147. WORD sv3_accessalert;
  148. WORD sv3_diskalert;
  149. WORD sv3_netioalert;
  150. WORD sv3_maxauditsz;
  151. LPSTR_16_REMOTE sv3_srvheuristics;
  152. DWORD sv3_auditedevents;
  153. WORD sv3_autoprofile;
  154. LPSTR_16_REMOTE sv3_autopath;
  155. } SERVER_16_INFO_3, *PSERVER_16_INFO_3;
  156. #define DEF16_sv_ulist_mtime 0
  157. #define DEF16_sv_glist_mtime 0
  158. #define DEF16_sv_alist_mtime 0
  159. #define DEF16_sv_alerts TEXT("")
  160. #define DEF16_sv_security SV_USERSECURITY
  161. #define DEF16_sv_auditing 0
  162. #define DEF16_sv_numadmin -1
  163. #define DEF16_sv_lanmask 0x0F
  164. #define DEF16_sv_guestacct TEXT("")
  165. #define DEF16_sv_chdevs 65535
  166. #define DEF16_sv_chdevq 65535
  167. #define DEF16_sv_chdevjobs 65535
  168. #define DEF16_sv_connections 2000
  169. #define DEF16_sv_shares 65535
  170. #define DEF16_sv_openfiles 8000
  171. #define DEF16_sv_sessreqs 65535
  172. #define DEF16_sv_activelocks 64
  173. #define DEF16_sv_numreqbuf 300
  174. #define DEF16_sv_numbigbuf 80
  175. #define DEF16_sv_numfiletasks 8
  176. #define DEF16_sv_alertsched 5
  177. #define DEF16_sv_erroralert 5
  178. #define DEF16_sv_logonalert 5
  179. #define DEF16_sv_accessalert 5
  180. #define DEF16_sv_diskalert 300
  181. #define DEF16_sv_netioalert 5
  182. #define DEF16_sv_maxauditsz 100
  183. #define DEF16_sv_srvheuristics TEXT("0110151110111001331")
  184. #define DEF16_sv_auditedevents 0xFFFFFFFF
  185. #define DEF16_sv_autoprofile 0
  186. #define DEF16_sv_autopath TEXT("")
  187. typedef struct _SESSION_16_INFO_1 {
  188. LPSTR_16_REMOTE sesi1_cname;
  189. LPSTR_16_REMOTE sesi1_username;
  190. WORD sesi1_num_conns;
  191. WORD sesi1_num_opens;
  192. WORD sesi1_num_users;
  193. DWORD sesi1_time;
  194. DWORD sesi1_idle_time;
  195. DWORD sesi1_user_flags;
  196. } SESSION_16_INFO_1, *PSESSION_16_INFO_1;
  197. typedef struct _SESSION_16_INFO_2 {
  198. LPSTR_16_REMOTE sesi2_cname;
  199. LPSTR_16_REMOTE sesi2_username;
  200. WORD sesi2_num_conns;
  201. WORD sesi2_num_opens;
  202. WORD sesi2_num_users;
  203. DWORD sesi2_time;
  204. DWORD sesi2_idle_time;
  205. DWORD sesi2_user_flags;
  206. LPSTR_16_REMOTE sesi2_cltype_name;
  207. } SESSION_16_INFO_2, *PSESSION_16_INFO_2;
  208. typedef struct _SESSION_16_INFO_10 {
  209. LPSTR_16_REMOTE sesi10_cname;
  210. LPSTR_16_REMOTE sesi10_username;
  211. DWORD sesi10_time;
  212. DWORD sesi10_idle_time;
  213. } SESSION_16_INFO_10, *PSESSION_16_INFO_10;
  214. #define DEF16_ses_num_conns 1
  215. #define DEF16_ses_num_users 1
  216. typedef struct _USE_16_INFO_0 {
  217. BYTE ui0_local[LM20_DEVLEN + 1];
  218. BYTE ui0_pad1;
  219. LPSTR_16_REMOTE ui0_remote;
  220. } USE_16_INFO_0, *PUSE_16_INFO_0;
  221. typedef struct _USER_16_INFO_1 {
  222. BYTE usri1_name[LM20_UNLEN+1];
  223. BYTE usri1_pad_1;
  224. BYTE usri1_password[ENCRYPTED_PWLEN];
  225. DWORD usri1_password_age;
  226. WORD usri1_priv;
  227. LPSTR_16_REMOTE usri1_home_dir;
  228. LPSTR_16_REMOTE usri1_comment;
  229. WORD usri1_flags;
  230. LPSTR_16_REMOTE usri1_script_path;
  231. } USER_16_INFO_1, *PUSER_16_INFO_1;
  232. typedef struct _USER_16_LOGOFF_INFO_1 {
  233. WORD usrlogf1_code;
  234. DWORD usrlogf1_duration;
  235. WORD usrlogf1_num_logons;
  236. } USER_16_LOGOFF_INFO_1, *PUSER_16_LOGOFF_INFO_1;
  237. typedef struct _USER_16_LOGON_INFO_1 {
  238. WORD usrlog1_code;
  239. BYTE usrlog1_eff_name[UNLEN+1];
  240. BYTE usrlog1_pad_1;
  241. WORD usrlog1_priv;
  242. DWORD usrlog1_auth_flags;
  243. WORD usrlog1_num_logons;
  244. WORD usrlog1_bad_pw_count;
  245. DWORD usrlog1_last_logon;
  246. DWORD usrlog1_last_logoff;
  247. DWORD usrlog1_logoff_time;
  248. DWORD usrlog1_kickoff_time;
  249. DWORD usrlog1_password_age;
  250. DWORD usrlog1_pw_can_change;
  251. DWORD usrlog1_pw_must_change;
  252. LPSTR_16_REMOTE usrlog1_computer;
  253. LPSTR_16_REMOTE usrlog1_domain;
  254. LPSTR_16_REMOTE usrlog1_script_path;
  255. DWORD usrlog1_reserved1;
  256. } USER_16_LOGON_INFO_1, *PUSER_16_LOGON_INFO_1;
  257. typedef struct _WKSTA_16_INFO_0 {
  258. WORD wki0_reserved_1;
  259. DWORD wki0_reserved_2;
  260. LPSTR_16_REMOTE wki0_root;
  261. LPSTR_16_REMOTE wki0_computername;
  262. LPSTR_16_REMOTE wki0_username;
  263. LPSTR_16_REMOTE wki0_langroup;
  264. BYTE wki0_ver_major;
  265. BYTE wki0_ver_minor;
  266. DWORD wki0_reserved_3;
  267. WORD wki0_charwait;
  268. DWORD wki0_chartime;
  269. WORD wki0_charcount;
  270. WORD wki0_reserved_4;
  271. WORD wki0_reserved_5;
  272. WORD wki0_keepconn;
  273. WORD wki0_keepsearch;
  274. WORD wki0_maxthreads;
  275. WORD wki0_maxcmds;
  276. WORD wki0_reserved_6;
  277. WORD wki0_numworkbuf;
  278. WORD wki0_sizworkbuf;
  279. WORD wki0_maxwrkcache;
  280. WORD wki0_sesstimeout;
  281. WORD wki0_sizerror;
  282. WORD wki0_numalerts;
  283. WORD wki0_numservices;
  284. WORD wki0_errlogsz;
  285. WORD wki0_printbuftime;
  286. WORD wki0_numcharbuf;
  287. WORD wki0_sizcharbuf;
  288. LPSTR_16_REMOTE wki0_logon_server;
  289. LPSTR_16_REMOTE wki0_wrkheuristics;
  290. WORD wki0_mailslots;
  291. } WKSTA_16_INFO_0, *PWKSTA_16_INFO_0, *LPWKSTA_16_INFO_0;
  292. typedef struct _WKSTA_16_INFO_1 {
  293. WORD wki1_reserved_1;
  294. DWORD wki1_reserved_2;
  295. LPSTR_16_REMOTE wki1_root;
  296. LPSTR_16_REMOTE wki1_computername;
  297. LPSTR_16_REMOTE wki1_username;
  298. LPSTR_16_REMOTE wki1_langroup;
  299. BYTE wki1_ver_major;
  300. BYTE wki1_ver_minor;
  301. DWORD wki1_reserved_3;
  302. WORD wki1_charwait;
  303. DWORD wki1_chartime;
  304. WORD wki1_charcount;
  305. WORD wki1_reserved_4;
  306. WORD wki1_reserved_5;
  307. WORD wki1_keepconn;
  308. WORD wki1_keepsearch;
  309. WORD wki1_maxthreads;
  310. WORD wki1_maxcmds;
  311. WORD wki1_reserved_6;
  312. WORD wki1_numworkbuf;
  313. WORD wki1_sizworkbuf;
  314. WORD wki1_maxwrkcache;
  315. WORD wki1_sesstimeout;
  316. WORD wki1_sizerror;
  317. WORD wki1_numalerts;
  318. WORD wki1_numservices;
  319. WORD wki1_errlogsz;
  320. WORD wki1_printbuftime;
  321. WORD wki1_numcharbuf;
  322. WORD wki1_sizcharbuf;
  323. LPSTR_16_REMOTE wki1_logon_server;
  324. LPSTR_16_REMOTE wki1_wrkheuristics;
  325. WORD wki1_mailslots;
  326. LPSTR_16_REMOTE wki1_logon_domain;
  327. LPSTR_16_REMOTE wki1_oth_domains;
  328. WORD wki1_numdgrambuf;
  329. } WKSTA_16_INFO_1, *PWKSTA_16_INFO_1, *LPWKSTA_16_INFO_1;
  330. typedef struct _WKSTA_16_INFO_10 {
  331. LPSTR_16_REMOTE wki10_computername;
  332. LPSTR_16_REMOTE wki10_username;
  333. LPSTR_16_REMOTE wki10_langroup;
  334. BYTE wki10_ver_major;
  335. BYTE wki10_ver_minor;
  336. LPSTR_16_REMOTE wki10_logon_domain;
  337. LPSTR_16_REMOTE wki10_oth_domains;
  338. } WKSTA_16_INFO_10, *PWKSTA_16_INFO_10, *LPWKSTA_16_INFO_10;
  339. typedef struct _WKSTA_16_USER_LOGON_REQUEST_1 {
  340. BYTE wlreq1_name[LM20_UNLEN + 1];
  341. BYTE wlreq1_pad1;
  342. BYTE wlreq1_password[LM20_PWLEN + 1];
  343. BYTE wlreq1_pad2;
  344. BYTE wlreq1_workstation[LM20_CNLEN + 1];
  345. } WKSTA_16_USER_LOGON_REQUEST_1, *PWKSTA_16_USER_LOGON_REQUEST_1,
  346. *LPWKSTA_16_USER_LOGON_REQUEST_1;
  347. typedef struct _WKSTA_16_USER_LOGOFF_REQUEST_1 {
  348. BYTE wlreq1_name[LM20_UNLEN + 1];
  349. BYTE wlreq1_pad_1;
  350. BYTE wlreq1_workstation[LM20_CNLEN + 1];
  351. } WKSTA_16_USER_LOGOFF_REQUEST_1, *PWKSTA_16_USER_LOGOFF_REQUEST_1,
  352. *LPWKSTA_16_USER_LOGOFF_REQUEST_1;
  353. #define DEF16_ses_num_conns 1
  354. #define DEF16_ses_num_users 1
  355. #define DEF16_wk_username TEXT("")
  356. #define DEF16_wk_keepsearch 600
  357. #define DEF16_wk_numworkbuf 15
  358. #define DEF16_wk_sizeworkbuf 4096
  359. #define DEF16_wk_maxwrkcache 64
  360. #define DEF16_wk_sizerror 512
  361. #define DEF16_wk_numalerts 12
  362. #define DEF16_wk_numservices 8
  363. #define DEF16_wk_errlogsz 100
  364. #define DEF16_wk_printbuftime 60
  365. #define DEF16_wk_numcharbuf 5
  366. #define DEF16_wk_sizcharbuf 512
  367. #define DEF16_wk_logon_server TEXT("")
  368. #define DEF16_wk_wrk_heuristics TEXT("")
  369. #define DEF16_wk_mailslots 1
  370. #define DEF16_wk_logon_domain TEXT("")
  371. #define DEF16_wk_oth_domains TEXT("")
  372. #define DEF16_wk_numdgrambuf 14
  373. #include <packoff.h>
  374. #endif // ndef _XSDEF16_