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.

242 lines
5.9 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. dlstruct.h
  5. Abstract:
  6. Down-level structures, taken from OS files (which themselves are unusable
  7. without modification because they incorporate function prototypes which
  8. clash with NT functions of the same name)
  9. Author:
  10. Richard L Firth (rfirth) 09-Jun-1992
  11. Revision History:
  12. --*/
  13. //
  14. // misc. manifests
  15. //
  16. #define LANMAN_EMULATION_MAJOR_VERSION 2 // we pretend to be DOS LANMAN v2.1
  17. #define LANMAN_EMULATION_MINOR_VERSION 1
  18. #define NETPOPUP_SERVICE "NETPOPUP"
  19. #include <packon.h>
  20. //
  21. // Service
  22. //
  23. //
  24. // definition of service_info_2 structure - only this level of info handled
  25. // by NetServiceControl
  26. //
  27. struct service_info_2 {
  28. char svci2_name[LM20_SNLEN+1];
  29. WORD svci2_status;
  30. DWORD svci2_code;
  31. WORD svci2_pid;
  32. char svci2_text[LM20_STXTLEN+1];
  33. };
  34. //
  35. // Use
  36. //
  37. struct use_info_0 {
  38. char ui0_local[LM20_DEVLEN+1];
  39. char ui0_pad_1;
  40. LPSTR ui0_remote;
  41. };
  42. struct use_info_1 {
  43. char ui1_local[LM20_DEVLEN+1]; // B9 0,1
  44. char ui1_pad_1; // B 2
  45. LPSTR ui1_remote; // z 3
  46. LPSTR ui1_password; // z 4
  47. WORD ui1_status; // W 5
  48. WORD ui1_asg_type; // W 6
  49. WORD ui1_refcount; // W 7
  50. WORD ui1_usecount; // W 8
  51. };
  52. //
  53. // User
  54. //
  55. struct user_info_0 {
  56. char usri0_name[LM20_UNLEN+1];
  57. };
  58. struct user_info_1 {
  59. char usri1_name[LM20_UNLEN+1];
  60. char usri1_pad_1;
  61. char usri1_password[ENCRYPTED_PWLEN];
  62. DWORD usri1_password_age;
  63. WORD usri1_priv;
  64. LPSTR usri1_home_dir;
  65. LPSTR usri1_comment;
  66. WORD usri1_flags;
  67. LPSTR usri1_script_path;
  68. };
  69. struct user_info_2 {
  70. char usri2_name[LM20_UNLEN+1];
  71. char usri2_pad_1;
  72. char usri2_password[ENCRYPTED_PWLEN];
  73. DWORD usri2_password_age;
  74. WORD usri2_priv;
  75. LPSTR usri2_home_dir;
  76. LPSTR usri2_comment;
  77. WORD usri2_flags;
  78. LPSTR usri2_script_path;
  79. DWORD usri2_auth_flags;
  80. LPSTR usri2_full_name;
  81. LPSTR usri2_usr_comment;
  82. LPSTR usri2_parms;
  83. LPSTR usri2_workstations;
  84. DWORD usri2_last_logon;
  85. DWORD usri2_last_logoff;
  86. DWORD usri2_acct_expires;
  87. DWORD usri2_max_storage;
  88. WORD usri2_units_per_week;
  89. LPSTR usri2_logon_hours;
  90. WORD usri2_bad_pw_count;
  91. WORD usri2_num_logons;
  92. LPSTR usri2_logon_server;
  93. WORD usri2_country_code;
  94. WORD usri2_code_page;
  95. };
  96. struct user_info_10 {
  97. char usri10_name[LM20_UNLEN+1];
  98. char usri10_pad_1;
  99. LPSTR usri10_comment;
  100. LPSTR usri10_usr_comment;
  101. LPSTR usri10_full_name;
  102. };
  103. struct user_info_11 {
  104. char usri11_name[LM20_UNLEN+1];
  105. char usri11_pad_1;
  106. LPSTR usri11_comment;
  107. LPSTR usri11_usr_comment;
  108. LPSTR usri11_full_name;
  109. WORD usri11_priv;
  110. DWORD usri11_auth_flags;
  111. DWORD usri11_password_age;
  112. LPSTR usri11_home_dir;
  113. LPSTR usri11_parms;
  114. DWORD usri11_last_logon;
  115. DWORD usri11_last_logoff;
  116. WORD usri11_bad_pw_count;
  117. WORD usri11_num_logons;
  118. LPSTR usri11_logon_server;
  119. WORD usri11_country_code;
  120. LPSTR usri11_workstations;
  121. DWORD usri11_max_storage;
  122. WORD usri11_units_per_week;
  123. LPSTR usri11_logon_hours;
  124. WORD usri11_code_page;
  125. };
  126. //
  127. // Workstation
  128. //
  129. struct wksta_info_0 {
  130. WORD wki0_reserved_1;
  131. DWORD wki0_reserved_2;
  132. LPSTR wki0_root;
  133. LPSTR wki0_computername;
  134. LPSTR wki0_username;
  135. LPSTR wki0_langroup;
  136. BYTE wki0_ver_major;
  137. BYTE wki0_ver_minor;
  138. DWORD wki0_reserved_3;
  139. WORD wki0_charwait;
  140. DWORD wki0_chartime;
  141. WORD wki0_charcount;
  142. WORD wki0_reserved_4;
  143. WORD wki0_reserved_5;
  144. WORD wki0_keepconn;
  145. WORD wki0_keepsearch;
  146. WORD wki0_maxthreads;
  147. WORD wki0_maxcmds;
  148. WORD wki0_reserved_6;
  149. WORD wki0_numworkbuf;
  150. WORD wki0_sizworkbuf;
  151. WORD wki0_maxwrkcache;
  152. WORD wki0_sesstimeout;
  153. WORD wki0_sizerror;
  154. WORD wki0_numalerts;
  155. WORD wki0_numservices;
  156. WORD wki0_errlogsz;
  157. WORD wki0_printbuftime;
  158. WORD wki0_numcharbuf;
  159. WORD wki0_sizcharbuf;
  160. LPSTR wki0_logon_server;
  161. LPSTR wki0_wrkheuristics;
  162. WORD wki0_mailslots;
  163. };
  164. struct wksta_info_1 {
  165. WORD wki1_reserved_1;
  166. DWORD wki1_reserved_2;
  167. LPSTR wki1_root;
  168. LPSTR wki1_computername;
  169. LPSTR wki1_username;
  170. LPSTR wki1_langroup;
  171. BYTE wki1_ver_major;
  172. BYTE wki1_ver_minor;
  173. DWORD wki1_reserved_3;
  174. WORD wki1_charwait;
  175. DWORD wki1_chartime;
  176. WORD wki1_charcount;
  177. WORD wki1_reserved_4;
  178. WORD wki1_reserved_5;
  179. WORD wki1_keepconn;
  180. WORD wki1_keepsearch;
  181. WORD wki1_maxthreads;
  182. WORD wki1_maxcmds;
  183. WORD wki1_reserved_6;
  184. WORD wki1_numworkbuf;
  185. WORD wki1_sizworkbuf;
  186. WORD wki1_maxwrkcache;
  187. WORD wki1_sesstimeout;
  188. WORD wki1_sizerror;
  189. WORD wki1_numalerts;
  190. WORD wki1_numservices;
  191. WORD wki1_errlogsz;
  192. WORD wki1_printbuftime;
  193. WORD wki1_numcharbuf;
  194. WORD wki1_sizcharbuf;
  195. LPSTR wki1_logon_server;
  196. LPSTR wki1_wrkheuristics;
  197. WORD wki1_mailslots;
  198. LPSTR wki1_logon_domain;
  199. LPSTR wki1_oth_domains;
  200. WORD wki1_numdgrambuf;
  201. };
  202. struct wksta_info_10 {
  203. LPSTR wki10_computername;
  204. LPSTR wki10_username;
  205. LPSTR wki10_langroup;
  206. BYTE wki10_ver_major;
  207. BYTE wki10_ver_minor;
  208. LPSTR wki10_logon_domain;
  209. LPSTR wki10_oth_domains;
  210. };
  211. #include <packoff.h>