win32netcon.py 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. # Generated by h2py from lmaccess.h
  2. # Included from lmcons.h
  3. CNLEN = 15
  4. LM20_CNLEN = 15
  5. DNLEN = CNLEN
  6. LM20_DNLEN = LM20_CNLEN
  7. UNCLEN = (CNLEN+2)
  8. LM20_UNCLEN = (LM20_CNLEN+2)
  9. NNLEN = 80
  10. LM20_NNLEN = 12
  11. RMLEN = (UNCLEN+1+NNLEN)
  12. LM20_RMLEN = (LM20_UNCLEN+1+LM20_NNLEN)
  13. SNLEN = 80
  14. LM20_SNLEN = 15
  15. STXTLEN = 256
  16. LM20_STXTLEN = 63
  17. PATHLEN = 256
  18. LM20_PATHLEN = 256
  19. DEVLEN = 80
  20. LM20_DEVLEN = 8
  21. EVLEN = 16
  22. UNLEN = 256
  23. LM20_UNLEN = 20
  24. GNLEN = UNLEN
  25. LM20_GNLEN = LM20_UNLEN
  26. PWLEN = 256
  27. LM20_PWLEN = 14
  28. SHPWLEN = 8
  29. CLTYPE_LEN = 12
  30. MAXCOMMENTSZ = 256
  31. LM20_MAXCOMMENTSZ = 48
  32. QNLEN = NNLEN
  33. LM20_QNLEN = LM20_NNLEN
  34. ALERTSZ = 128
  35. NETBIOS_NAME_LEN = 16
  36. CRYPT_KEY_LEN = 7
  37. CRYPT_TXT_LEN = 8
  38. ENCRYPTED_PWLEN = 16
  39. SESSION_PWLEN = 24
  40. SESSION_CRYPT_KLEN = 21
  41. PARMNUM_ALL = 0
  42. PARM_ERROR_NONE = 0
  43. PARMNUM_BASE_INFOLEVEL = 1000
  44. NULL = 0
  45. PLATFORM_ID_DOS = 300
  46. PLATFORM_ID_OS2 = 400
  47. PLATFORM_ID_NT = 500
  48. PLATFORM_ID_OSF = 600
  49. PLATFORM_ID_VMS = 700
  50. MAX_LANMAN_MESSAGE_ID = 5799
  51. UF_SCRIPT = 1
  52. UF_ACCOUNTDISABLE = 2
  53. UF_HOMEDIR_REQUIRED = 8
  54. UF_LOCKOUT = 16
  55. UF_PASSWD_NOTREQD = 32
  56. UF_PASSWD_CANT_CHANGE = 64
  57. UF_TEMP_DUPLICATE_ACCOUNT = 256
  58. UF_NORMAL_ACCOUNT = 512
  59. UF_INTERDOMAIN_TRUST_ACCOUNT = 2048
  60. UF_WORKSTATION_TRUST_ACCOUNT = 4096
  61. UF_SERVER_TRUST_ACCOUNT = 8192
  62. UF_MACHINE_ACCOUNT_MASK = ( UF_INTERDOMAIN_TRUST_ACCOUNT | \
  63. UF_WORKSTATION_TRUST_ACCOUNT | \
  64. UF_SERVER_TRUST_ACCOUNT )
  65. UF_ACCOUNT_TYPE_MASK = ( \
  66. UF_TEMP_DUPLICATE_ACCOUNT | \
  67. UF_NORMAL_ACCOUNT | \
  68. UF_INTERDOMAIN_TRUST_ACCOUNT | \
  69. UF_WORKSTATION_TRUST_ACCOUNT | \
  70. UF_SERVER_TRUST_ACCOUNT \
  71. )
  72. UF_DONT_EXPIRE_PASSWD = 65536
  73. UF_MNS_LOGON_ACCOUNT = 131072
  74. UF_SETTABLE_BITS = ( \
  75. UF_SCRIPT | \
  76. UF_ACCOUNTDISABLE | \
  77. UF_LOCKOUT | \
  78. UF_HOMEDIR_REQUIRED | \
  79. UF_PASSWD_NOTREQD | \
  80. UF_PASSWD_CANT_CHANGE | \
  81. UF_ACCOUNT_TYPE_MASK | \
  82. UF_DONT_EXPIRE_PASSWD | \
  83. UF_MNS_LOGON_ACCOUNT \
  84. )
  85. FILTER_TEMP_DUPLICATE_ACCOUNT = (1)
  86. FILTER_NORMAL_ACCOUNT = (2)
  87. FILTER_INTERDOMAIN_TRUST_ACCOUNT = (8)
  88. FILTER_WORKSTATION_TRUST_ACCOUNT = (16)
  89. FILTER_SERVER_TRUST_ACCOUNT = (32)
  90. LG_INCLUDE_INDIRECT = (1)
  91. AF_OP_PRINT = 1
  92. AF_OP_COMM = 2
  93. AF_OP_SERVER = 4
  94. AF_OP_ACCOUNTS = 8
  95. AF_SETTABLE_BITS = (AF_OP_PRINT | AF_OP_COMM | \
  96. AF_OP_SERVER | AF_OP_ACCOUNTS)
  97. UAS_ROLE_STANDALONE = 0
  98. UAS_ROLE_MEMBER = 1
  99. UAS_ROLE_BACKUP = 2
  100. UAS_ROLE_PRIMARY = 3
  101. USER_NAME_PARMNUM = 1
  102. USER_PASSWORD_PARMNUM = 3
  103. USER_PASSWORD_AGE_PARMNUM = 4
  104. USER_PRIV_PARMNUM = 5
  105. USER_HOME_DIR_PARMNUM = 6
  106. USER_COMMENT_PARMNUM = 7
  107. USER_FLAGS_PARMNUM = 8
  108. USER_SCRIPT_PATH_PARMNUM = 9
  109. USER_AUTH_FLAGS_PARMNUM = 10
  110. USER_FULL_NAME_PARMNUM = 11
  111. USER_USR_COMMENT_PARMNUM = 12
  112. USER_PARMS_PARMNUM = 13
  113. USER_WORKSTATIONS_PARMNUM = 14
  114. USER_LAST_LOGON_PARMNUM = 15
  115. USER_LAST_LOGOFF_PARMNUM = 16
  116. USER_ACCT_EXPIRES_PARMNUM = 17
  117. USER_MAX_STORAGE_PARMNUM = 18
  118. USER_UNITS_PER_WEEK_PARMNUM = 19
  119. USER_LOGON_HOURS_PARMNUM = 20
  120. USER_PAD_PW_COUNT_PARMNUM = 21
  121. USER_NUM_LOGONS_PARMNUM = 22
  122. USER_LOGON_SERVER_PARMNUM = 23
  123. USER_COUNTRY_CODE_PARMNUM = 24
  124. USER_CODE_PAGE_PARMNUM = 25
  125. USER_PRIMARY_GROUP_PARMNUM = 51
  126. USER_PROFILE = 52
  127. USER_PROFILE_PARMNUM = 52
  128. USER_HOME_DIR_DRIVE_PARMNUM = 53
  129. USER_NAME_INFOLEVEL = \
  130. (PARMNUM_BASE_INFOLEVEL + USER_NAME_PARMNUM)
  131. USER_PASSWORD_INFOLEVEL = \
  132. (PARMNUM_BASE_INFOLEVEL + USER_PASSWORD_PARMNUM)
  133. USER_PASSWORD_AGE_INFOLEVEL = \
  134. (PARMNUM_BASE_INFOLEVEL + USER_PASSWORD_AGE_PARMNUM)
  135. USER_PRIV_INFOLEVEL = \
  136. (PARMNUM_BASE_INFOLEVEL + USER_PRIV_PARMNUM)
  137. USER_HOME_DIR_INFOLEVEL = \
  138. (PARMNUM_BASE_INFOLEVEL + USER_HOME_DIR_PARMNUM)
  139. USER_COMMENT_INFOLEVEL = \
  140. (PARMNUM_BASE_INFOLEVEL + USER_COMMENT_PARMNUM)
  141. USER_FLAGS_INFOLEVEL = \
  142. (PARMNUM_BASE_INFOLEVEL + USER_FLAGS_PARMNUM)
  143. USER_SCRIPT_PATH_INFOLEVEL = \
  144. (PARMNUM_BASE_INFOLEVEL + USER_SCRIPT_PATH_PARMNUM)
  145. USER_AUTH_FLAGS_INFOLEVEL = \
  146. (PARMNUM_BASE_INFOLEVEL + USER_AUTH_FLAGS_PARMNUM)
  147. USER_FULL_NAME_INFOLEVEL = \
  148. (PARMNUM_BASE_INFOLEVEL + USER_FULL_NAME_PARMNUM)
  149. USER_USR_COMMENT_INFOLEVEL = \
  150. (PARMNUM_BASE_INFOLEVEL + USER_USR_COMMENT_PARMNUM)
  151. USER_PARMS_INFOLEVEL = \
  152. (PARMNUM_BASE_INFOLEVEL + USER_PARMS_PARMNUM)
  153. USER_WORKSTATIONS_INFOLEVEL = \
  154. (PARMNUM_BASE_INFOLEVEL + USER_WORKSTATIONS_PARMNUM)
  155. USER_LAST_LOGON_INFOLEVEL = \
  156. (PARMNUM_BASE_INFOLEVEL + USER_LAST_LOGON_PARMNUM)
  157. USER_LAST_LOGOFF_INFOLEVEL = \
  158. (PARMNUM_BASE_INFOLEVEL + USER_LAST_LOGOFF_PARMNUM)
  159. USER_ACCT_EXPIRES_INFOLEVEL = \
  160. (PARMNUM_BASE_INFOLEVEL + USER_ACCT_EXPIRES_PARMNUM)
  161. USER_MAX_STORAGE_INFOLEVEL = \
  162. (PARMNUM_BASE_INFOLEVEL + USER_MAX_STORAGE_PARMNUM)
  163. USER_UNITS_PER_WEEK_INFOLEVEL = \
  164. (PARMNUM_BASE_INFOLEVEL + USER_UNITS_PER_WEEK_PARMNUM)
  165. USER_LOGON_HOURS_INFOLEVEL = \
  166. (PARMNUM_BASE_INFOLEVEL + USER_LOGON_HOURS_PARMNUM)
  167. USER_PAD_PW_COUNT_INFOLEVEL = \
  168. (PARMNUM_BASE_INFOLEVEL + USER_PAD_PW_COUNT_PARMNUM)
  169. USER_NUM_LOGONS_INFOLEVEL = \
  170. (PARMNUM_BASE_INFOLEVEL + USER_NUM_LOGONS_PARMNUM)
  171. USER_LOGON_SERVER_INFOLEVEL = \
  172. (PARMNUM_BASE_INFOLEVEL + USER_LOGON_SERVER_PARMNUM)
  173. USER_COUNTRY_CODE_INFOLEVEL = \
  174. (PARMNUM_BASE_INFOLEVEL + USER_COUNTRY_CODE_PARMNUM)
  175. USER_CODE_PAGE_INFOLEVEL = \
  176. (PARMNUM_BASE_INFOLEVEL + USER_CODE_PAGE_PARMNUM)
  177. USER_PRIMARY_GROUP_INFOLEVEL = \
  178. (PARMNUM_BASE_INFOLEVEL + USER_PRIMARY_GROUP_PARMNUM)
  179. USER_HOME_DIR_DRIVE_INFOLEVEL = \
  180. (PARMNUM_BASE_INFOLEVEL + USER_HOME_DIR_DRIVE_PARMNUM)
  181. NULL_USERSETINFO_PASSWD = " "
  182. UNITS_PER_DAY = 24
  183. UNITS_PER_WEEK = UNITS_PER_DAY * 7
  184. USER_PRIV_MASK = 3
  185. USER_PRIV_GUEST = 0
  186. USER_PRIV_USER = 1
  187. USER_PRIV_ADMIN = 2
  188. MAX_PASSWD_LEN = PWLEN
  189. DEF_MIN_PWLEN = 6
  190. DEF_PWUNIQUENESS = 5
  191. DEF_MAX_PWHIST = 8
  192. DEF_MAX_BADPW = 0
  193. VALIDATED_LOGON = 0
  194. PASSWORD_EXPIRED = 2
  195. NON_VALIDATED_LOGON = 3
  196. VALID_LOGOFF = 1
  197. MODALS_MIN_PASSWD_LEN_PARMNUM = 1
  198. MODALS_MAX_PASSWD_AGE_PARMNUM = 2
  199. MODALS_MIN_PASSWD_AGE_PARMNUM = 3
  200. MODALS_FORCE_LOGOFF_PARMNUM = 4
  201. MODALS_PASSWD_HIST_LEN_PARMNUM = 5
  202. MODALS_ROLE_PARMNUM = 6
  203. MODALS_PRIMARY_PARMNUM = 7
  204. MODALS_DOMAIN_NAME_PARMNUM = 8
  205. MODALS_DOMAIN_ID_PARMNUM = 9
  206. MODALS_LOCKOUT_DURATION_PARMNUM = 10
  207. MODALS_LOCKOUT_OBSERVATION_WINDOW_PARMNUM = 11
  208. MODALS_LOCKOUT_THRESHOLD_PARMNUM = 12
  209. MODALS_MIN_PASSWD_LEN_INFOLEVEL = \
  210. (PARMNUM_BASE_INFOLEVEL + MODALS_MIN_PASSWD_LEN_PARMNUM)
  211. MODALS_MAX_PASSWD_AGE_INFOLEVEL = \
  212. (PARMNUM_BASE_INFOLEVEL + MODALS_MAX_PASSWD_AGE_PARMNUM)
  213. MODALS_MIN_PASSWD_AGE_INFOLEVEL = \
  214. (PARMNUM_BASE_INFOLEVEL + MODALS_MIN_PASSWD_AGE_PARMNUM)
  215. MODALS_FORCE_LOGOFF_INFOLEVEL = \
  216. (PARMNUM_BASE_INFOLEVEL + MODALS_FORCE_LOGOFF_PARMNUM)
  217. MODALS_PASSWD_HIST_LEN_INFOLEVEL = \
  218. (PARMNUM_BASE_INFOLEVEL + MODALS_PASSWD_HIST_LEN_PARMNUM)
  219. MODALS_ROLE_INFOLEVEL = \
  220. (PARMNUM_BASE_INFOLEVEL + MODALS_ROLE_PARMNUM)
  221. MODALS_PRIMARY_INFOLEVEL = \
  222. (PARMNUM_BASE_INFOLEVEL + MODALS_PRIMARY_PARMNUM)
  223. MODALS_DOMAIN_NAME_INFOLEVEL = \
  224. (PARMNUM_BASE_INFOLEVEL + MODALS_DOMAIN_NAME_PARMNUM)
  225. MODALS_DOMAIN_ID_INFOLEVEL = \
  226. (PARMNUM_BASE_INFOLEVEL + MODALS_DOMAIN_ID_PARMNUM)
  227. GROUPIDMASK = 32768
  228. GROUP_ALL_PARMNUM = 0
  229. GROUP_NAME_PARMNUM = 1
  230. GROUP_COMMENT_PARMNUM = 2
  231. GROUP_ATTRIBUTES_PARMNUM = 3
  232. GROUP_ALL_INFOLEVEL = \
  233. (PARMNUM_BASE_INFOLEVEL + GROUP_ALL_PARMNUM)
  234. GROUP_NAME_INFOLEVEL = \
  235. (PARMNUM_BASE_INFOLEVEL + GROUP_NAME_PARMNUM)
  236. GROUP_COMMENT_INFOLEVEL = \
  237. (PARMNUM_BASE_INFOLEVEL + GROUP_COMMENT_PARMNUM)
  238. GROUP_ATTRIBUTES_INFOLEVEL = \
  239. (PARMNUM_BASE_INFOLEVEL + GROUP_ATTRIBUTES_PARMNUM)
  240. LOCALGROUP_NAME_PARMNUM = 1
  241. LOCALGROUP_COMMENT_PARMNUM = 2
  242. MAXPERMENTRIES = 64
  243. ACCESS_NONE = 0
  244. ACCESS_READ = 1
  245. ACCESS_WRITE = 2
  246. ACCESS_CREATE = 4
  247. ACCESS_EXEC = 8
  248. ACCESS_DELETE = 16
  249. ACCESS_ATRIB = 32
  250. ACCESS_PERM = 64
  251. ACCESS_GROUP = 32768
  252. ACCESS_AUDIT = 1
  253. ACCESS_SUCCESS_OPEN = 16
  254. ACCESS_SUCCESS_WRITE = 32
  255. ACCESS_SUCCESS_DELETE = 64
  256. ACCESS_SUCCESS_ACL = 128
  257. ACCESS_SUCCESS_MASK = 240
  258. ACCESS_FAIL_OPEN = 256
  259. ACCESS_FAIL_WRITE = 512
  260. ACCESS_FAIL_DELETE = 1024
  261. ACCESS_FAIL_ACL = 2048
  262. ACCESS_FAIL_MASK = 3840
  263. ACCESS_FAIL_SHIFT = 4
  264. ACCESS_RESOURCE_NAME_PARMNUM = 1
  265. ACCESS_ATTR_PARMNUM = 2
  266. ACCESS_COUNT_PARMNUM = 3
  267. ACCESS_ACCESS_LIST_PARMNUM = 4
  268. ACCESS_RESOURCE_NAME_INFOLEVEL = \
  269. (PARMNUM_BASE_INFOLEVEL + ACCESS_RESOURCE_NAME_PARMNUM)
  270. ACCESS_ATTR_INFOLEVEL = \
  271. (PARMNUM_BASE_INFOLEVEL + ACCESS_ATTR_PARMNUM)
  272. ACCESS_COUNT_INFOLEVEL = \
  273. (PARMNUM_BASE_INFOLEVEL + ACCESS_COUNT_PARMNUM)
  274. ACCESS_ACCESS_LIST_INFOLEVEL = \
  275. (PARMNUM_BASE_INFOLEVEL + ACCESS_ACCESS_LIST_PARMNUM)
  276. ACCESS_LETTERS = "RWCXDAP "
  277. NETLOGON_CONTROL_QUERY = 1
  278. NETLOGON_CONTROL_REPLICATE = 2
  279. NETLOGON_CONTROL_SYNCHRONIZE = 3
  280. NETLOGON_CONTROL_PDC_REPLICATE = 4
  281. NETLOGON_CONTROL_REDISCOVER = 5
  282. NETLOGON_CONTROL_TC_QUERY = 6
  283. NETLOGON_CONTROL_TRANSPORT_NOTIFY = 7
  284. NETLOGON_CONTROL_FIND_USER = 8
  285. NETLOGON_CONTROL_UNLOAD_NETLOGON_DLL = 65531
  286. NETLOGON_CONTROL_BACKUP_CHANGE_LOG = 65532
  287. NETLOGON_CONTROL_TRUNCATE_LOG = 65533
  288. NETLOGON_CONTROL_SET_DBFLAG = 65534
  289. NETLOGON_CONTROL_BREAKPOINT = 65535
  290. NETLOGON_REPLICATION_NEEDED = 1
  291. NETLOGON_REPLICATION_IN_PROGRESS = 2
  292. NETLOGON_FULL_SYNC_REPLICATION = 4
  293. NETLOGON_REDO_NEEDED = 8
  294. ######################
  295. # Manual stuff
  296. TEXT=lambda x:x
  297. MAX_PREFERRED_LENGTH = -1
  298. PARM_ERROR_UNKNOWN = -1
  299. MESSAGE_FILENAME = TEXT("NETMSG")
  300. OS2MSG_FILENAME = TEXT("BASE")
  301. HELP_MSG_FILENAME = TEXT("NETH")
  302. BACKUP_MSG_FILENAME = TEXT("BAK.MSG")
  303. TIMEQ_FOREVER = -1
  304. USER_MAXSTORAGE_UNLIMITED = -1
  305. USER_NO_LOGOFF = -1
  306. DEF_MAX_PWAGE = TIMEQ_FOREVER
  307. DEF_MIN_PWAGE = 0
  308. DEF_FORCE_LOGOFF = -1
  309. ONE_DAY = 1*24*3600
  310. GROUP_SPECIALGRP_USERS = "USERS"
  311. GROUP_SPECIALGRP_ADMINS = "ADMINS"
  312. GROUP_SPECIALGRP_GUESTS = "GUESTS"
  313. GROUP_SPECIALGRP_LOCAL = "LOCAL"
  314. ACCESS_ALL = ( ACCESS_READ | ACCESS_WRITE | ACCESS_CREATE | ACCESS_EXEC | ACCESS_DELETE | ACCESS_ATRIB | ACCESS_PERM )
  315. # From lmserver.h
  316. SV_PLATFORM_ID_OS2 = 400
  317. SV_PLATFORM_ID_NT = 500
  318. MAJOR_VERSION_MASK = 15
  319. SV_TYPE_WORKSTATION = 1
  320. SV_TYPE_SERVER = 2
  321. SV_TYPE_SQLSERVER = 4
  322. SV_TYPE_DOMAIN_CTRL = 8
  323. SV_TYPE_DOMAIN_BAKCTRL = 16
  324. SV_TYPE_TIME_SOURCE = 32
  325. SV_TYPE_AFP = 64
  326. SV_TYPE_NOVELL = 128
  327. SV_TYPE_DOMAIN_MEMBER = 256
  328. SV_TYPE_PRINTQ_SERVER = 512
  329. SV_TYPE_DIALIN_SERVER = 1024
  330. SV_TYPE_XENIX_SERVER = 2048
  331. SV_TYPE_SERVER_UNIX = SV_TYPE_XENIX_SERVER
  332. SV_TYPE_NT = 4096
  333. SV_TYPE_WFW = 8192
  334. SV_TYPE_SERVER_MFPN = 16384
  335. SV_TYPE_SERVER_NT = 32768
  336. SV_TYPE_POTENTIAL_BROWSER = 65536
  337. SV_TYPE_BACKUP_BROWSER = 131072
  338. SV_TYPE_MASTER_BROWSER = 262144
  339. SV_TYPE_DOMAIN_MASTER = 524288
  340. SV_TYPE_SERVER_OSF = 1048576
  341. SV_TYPE_SERVER_VMS = 2097152
  342. SV_TYPE_WINDOWS = 4194304
  343. SV_TYPE_DFS = 8388608
  344. SV_TYPE_CLUSTER_NT = 16777216
  345. SV_TYPE_DCE = 268435456
  346. SV_TYPE_ALTERNATE_XPORT = 536870912
  347. SV_TYPE_LOCAL_LIST_ONLY = 1073741824
  348. SV_TYPE_DOMAIN_ENUM = -2147483648
  349. SV_TYPE_ALL = -1
  350. SV_NODISC = -1
  351. SV_USERSECURITY = 1
  352. SV_SHARESECURITY = 0
  353. SV_HIDDEN = 1
  354. SV_VISIBLE = 0
  355. SV_PLATFORM_ID_PARMNUM = 101
  356. SV_NAME_PARMNUM = 102
  357. SV_VERSION_MAJOR_PARMNUM = 103
  358. SV_VERSION_MINOR_PARMNUM = 104
  359. SV_TYPE_PARMNUM = 105
  360. SV_COMMENT_PARMNUM = 5
  361. SV_USERS_PARMNUM = 107
  362. SV_DISC_PARMNUM = 10
  363. SV_HIDDEN_PARMNUM = 16
  364. SV_ANNOUNCE_PARMNUM = 17
  365. SV_ANNDELTA_PARMNUM = 18
  366. SV_USERPATH_PARMNUM = 112
  367. SV_ULIST_MTIME_PARMNUM = 401
  368. SV_GLIST_MTIME_PARMNUM = 402
  369. SV_ALIST_MTIME_PARMNUM = 403
  370. SV_ALERTS_PARMNUM = 11
  371. SV_SECURITY_PARMNUM = 405
  372. SV_NUMADMIN_PARMNUM = 406
  373. SV_LANMASK_PARMNUM = 407
  374. SV_GUESTACC_PARMNUM = 408
  375. SV_CHDEVQ_PARMNUM = 410
  376. SV_CHDEVJOBS_PARMNUM = 411
  377. SV_CONNECTIONS_PARMNUM = 412
  378. SV_SHARES_PARMNUM = 413
  379. SV_OPENFILES_PARMNUM = 414
  380. SV_SESSREQS_PARMNUM = 417
  381. SV_ACTIVELOCKS_PARMNUM = 419
  382. SV_NUMREQBUF_PARMNUM = 420
  383. SV_NUMBIGBUF_PARMNUM = 422
  384. SV_NUMFILETASKS_PARMNUM = 423
  385. SV_ALERTSCHED_PARMNUM = 37
  386. SV_ERRORALERT_PARMNUM = 38
  387. SV_LOGONALERT_PARMNUM = 39
  388. SV_ACCESSALERT_PARMNUM = 40
  389. SV_DISKALERT_PARMNUM = 41
  390. SV_NETIOALERT_PARMNUM = 42
  391. SV_MAXAUDITSZ_PARMNUM = 43
  392. SV_SRVHEURISTICS_PARMNUM = 431
  393. SV_SESSOPENS_PARMNUM = 501
  394. SV_SESSVCS_PARMNUM = 502
  395. SV_OPENSEARCH_PARMNUM = 503
  396. SV_SIZREQBUF_PARMNUM = 504
  397. SV_INITWORKITEMS_PARMNUM = 505
  398. SV_MAXWORKITEMS_PARMNUM = 506
  399. SV_RAWWORKITEMS_PARMNUM = 507
  400. SV_IRPSTACKSIZE_PARMNUM = 508
  401. SV_MAXRAWBUFLEN_PARMNUM = 509
  402. SV_SESSUSERS_PARMNUM = 510
  403. SV_SESSCONNS_PARMNUM = 511
  404. SV_MAXNONPAGEDMEMORYUSAGE_PARMNUM = 512
  405. SV_MAXPAGEDMEMORYUSAGE_PARMNUM = 513
  406. SV_ENABLESOFTCOMPAT_PARMNUM = 514
  407. SV_ENABLEFORCEDLOGOFF_PARMNUM = 515
  408. SV_TIMESOURCE_PARMNUM = 516
  409. SV_ACCEPTDOWNLEVELAPIS_PARMNUM = 517
  410. SV_LMANNOUNCE_PARMNUM = 518
  411. SV_DOMAIN_PARMNUM = 519
  412. SV_MAXCOPYREADLEN_PARMNUM = 520
  413. SV_MAXCOPYWRITELEN_PARMNUM = 521
  414. SV_MINKEEPSEARCH_PARMNUM = 522
  415. SV_MAXKEEPSEARCH_PARMNUM = 523
  416. SV_MINKEEPCOMPLSEARCH_PARMNUM = 524
  417. SV_MAXKEEPCOMPLSEARCH_PARMNUM = 525
  418. SV_THREADCOUNTADD_PARMNUM = 526
  419. SV_NUMBLOCKTHREADS_PARMNUM = 527
  420. SV_SCAVTIMEOUT_PARMNUM = 528
  421. SV_MINRCVQUEUE_PARMNUM = 529
  422. SV_MINFREEWORKITEMS_PARMNUM = 530
  423. SV_XACTMEMSIZE_PARMNUM = 531
  424. SV_THREADPRIORITY_PARMNUM = 532
  425. SV_MAXMPXCT_PARMNUM = 533
  426. SV_OPLOCKBREAKWAIT_PARMNUM = 534
  427. SV_OPLOCKBREAKRESPONSEWAIT_PARMNUM = 535
  428. SV_ENABLEOPLOCKS_PARMNUM = 536
  429. SV_ENABLEOPLOCKFORCECLOSE_PARMNUM = 537
  430. SV_ENABLEFCBOPENS_PARMNUM = 538
  431. SV_ENABLERAW_PARMNUM = 539
  432. SV_ENABLESHAREDNETDRIVES_PARMNUM = 540
  433. SV_MINFREECONNECTIONS_PARMNUM = 541
  434. SV_MAXFREECONNECTIONS_PARMNUM = 542
  435. SV_INITSESSTABLE_PARMNUM = 543
  436. SV_INITCONNTABLE_PARMNUM = 544
  437. SV_INITFILETABLE_PARMNUM = 545
  438. SV_INITSEARCHTABLE_PARMNUM = 546
  439. SV_ALERTSCHEDULE_PARMNUM = 547
  440. SV_ERRORTHRESHOLD_PARMNUM = 548
  441. SV_NETWORKERRORTHRESHOLD_PARMNUM = 549
  442. SV_DISKSPACETHRESHOLD_PARMNUM = 550
  443. SV_MAXLINKDELAY_PARMNUM = 552
  444. SV_MINLINKTHROUGHPUT_PARMNUM = 553
  445. SV_LINKINFOVALIDTIME_PARMNUM = 554
  446. SV_SCAVQOSINFOUPDATETIME_PARMNUM = 555
  447. SV_MAXWORKITEMIDLETIME_PARMNUM = 556
  448. SV_MAXRAWWORKITEMS_PARMNUM = 557
  449. SV_PRODUCTTYPE_PARMNUM = 560
  450. SV_SERVERSIZE_PARMNUM = 561
  451. SV_CONNECTIONLESSAUTODISC_PARMNUM = 562
  452. SV_SHARINGVIOLATIONRETRIES_PARMNUM = 563
  453. SV_SHARINGVIOLATIONDELAY_PARMNUM = 564
  454. SV_MAXGLOBALOPENSEARCH_PARMNUM = 565
  455. SV_REMOVEDUPLICATESEARCHES_PARMNUM = 566
  456. SV_LOCKVIOLATIONRETRIES_PARMNUM = 567
  457. SV_LOCKVIOLATIONOFFSET_PARMNUM = 568
  458. SV_LOCKVIOLATIONDELAY_PARMNUM = 569
  459. SV_MDLREADSWITCHOVER_PARMNUM = 570
  460. SV_CACHEDOPENLIMIT_PARMNUM = 571
  461. SV_CRITICALTHREADS_PARMNUM = 572
  462. SV_RESTRICTNULLSESSACCESS_PARMNUM = 573
  463. SV_ENABLEWFW311DIRECTIPX_PARMNUM = 574
  464. SV_OTHERQUEUEAFFINITY_PARMNUM = 575
  465. SV_QUEUESAMPLESECS_PARMNUM = 576
  466. SV_BALANCECOUNT_PARMNUM = 577
  467. SV_PREFERREDAFFINITY_PARMNUM = 578
  468. SV_MAXFREERFCBS_PARMNUM = 579
  469. SV_MAXFREEMFCBS_PARMNUM = 580
  470. SV_MAXFREELFCBS_PARMNUM = 581
  471. SV_MAXFREEPAGEDPOOLCHUNKS_PARMNUM = 582
  472. SV_MINPAGEDPOOLCHUNKSIZE_PARMNUM = 583
  473. SV_MAXPAGEDPOOLCHUNKSIZE_PARMNUM = 584
  474. SV_SENDSFROMPREFERREDPROCESSOR_PARMNUM = 585
  475. SV_MAXTHREADSPERQUEUE_PARMNUM = 586
  476. SV_CACHEDDIRECTORYLIMIT_PARMNUM = 587
  477. SV_MAXCOPYLENGTH_PARMNUM = 588
  478. SV_ENABLEBULKTRANSFER_PARMNUM = 589
  479. SV_ENABLECOMPRESSION_PARMNUM = 590
  480. SV_AUTOSHAREWKS_PARMNUM = 591
  481. SV_AUTOSHARESERVER_PARMNUM = 592
  482. SV_ENABLESECURITYSIGNATURE_PARMNUM = 593
  483. SV_REQUIRESECURITYSIGNATURE_PARMNUM = 594
  484. SV_MINCLIENTBUFFERSIZE_PARMNUM = 595
  485. SV_CONNECTIONNOSESSIONSTIMEOUT_PARMNUM = 596
  486. SVI1_NUM_ELEMENTS = 5
  487. SVI2_NUM_ELEMENTS = 40
  488. SVI3_NUM_ELEMENTS = 44
  489. SW_AUTOPROF_LOAD_MASK = 1
  490. SW_AUTOPROF_SAVE_MASK = 2
  491. SV_MAX_SRV_HEUR_LEN = 32
  492. SV_USERS_PER_LICENSE = 5
  493. SVTI2_REMAP_PIPE_NAMES = 2
  494. # Generated by h2py from lmshare.h
  495. SHARE_NETNAME_PARMNUM = 1
  496. SHARE_TYPE_PARMNUM = 3
  497. SHARE_REMARK_PARMNUM = 4
  498. SHARE_PERMISSIONS_PARMNUM = 5
  499. SHARE_MAX_USES_PARMNUM = 6
  500. SHARE_CURRENT_USES_PARMNUM = 7
  501. SHARE_PATH_PARMNUM = 8
  502. SHARE_PASSWD_PARMNUM = 9
  503. SHARE_FILE_SD_PARMNUM = 501
  504. SHI1_NUM_ELEMENTS = 4
  505. SHI2_NUM_ELEMENTS = 10
  506. STYPE_DISKTREE = 0
  507. STYPE_PRINTQ = 1
  508. STYPE_DEVICE = 2
  509. STYPE_IPC = 3
  510. STYPE_SPECIAL = -2147483648
  511. SHI1005_FLAGS_DFS = 1
  512. SHI1005_FLAGS_DFS_ROOT = 2
  513. COW_PERMACHINE = 4
  514. COW_PERUSER = 8
  515. CSC_CACHEABLE = 16
  516. CSC_NOFLOWOPS = 32
  517. CSC_AUTO_INWARD = 64
  518. CSC_AUTO_OUTWARD = 128
  519. SHI1005_VALID_FLAGS_SET = ( CSC_CACHEABLE | \
  520. CSC_NOFLOWOPS | \
  521. CSC_AUTO_INWARD | \
  522. CSC_AUTO_OUTWARD| \
  523. COW_PERMACHINE | \
  524. COW_PERUSER )
  525. SHI1007_VALID_FLAGS_SET = SHI1005_VALID_FLAGS_SET
  526. SESS_GUEST = 1
  527. SESS_NOENCRYPTION = 2
  528. SESI1_NUM_ELEMENTS = 8
  529. SESI2_NUM_ELEMENTS = 9
  530. PERM_FILE_READ = 1
  531. PERM_FILE_WRITE = 2
  532. PERM_FILE_CREATE = 4
  533. # Generated by h2py from d:\mssdk\include\winnetwk.h
  534. WNNC_NET_MSNET = 65536
  535. WNNC_NET_LANMAN = 131072
  536. WNNC_NET_NETWARE = 196608
  537. WNNC_NET_VINES = 262144
  538. WNNC_NET_10NET = 327680
  539. WNNC_NET_LOCUS = 393216
  540. WNNC_NET_SUN_PC_NFS = 458752
  541. WNNC_NET_LANSTEP = 524288
  542. WNNC_NET_9TILES = 589824
  543. WNNC_NET_LANTASTIC = 655360
  544. WNNC_NET_AS400 = 720896
  545. WNNC_NET_FTP_NFS = 786432
  546. WNNC_NET_PATHWORKS = 851968
  547. WNNC_NET_LIFENET = 917504
  548. WNNC_NET_POWERLAN = 983040
  549. WNNC_NET_BWNFS = 1048576
  550. WNNC_NET_COGENT = 1114112
  551. WNNC_NET_FARALLON = 1179648
  552. WNNC_NET_APPLETALK = 1245184
  553. WNNC_NET_INTERGRAPH = 1310720
  554. WNNC_NET_SYMFONET = 1376256
  555. WNNC_NET_CLEARCASE = 1441792
  556. WNNC_NET_FRONTIER = 1507328
  557. WNNC_NET_BMC = 1572864
  558. WNNC_NET_DCE = 1638400
  559. WNNC_NET_DECORB = 2097152
  560. WNNC_NET_PROTSTOR = 2162688
  561. WNNC_NET_FJ_REDIR = 2228224
  562. WNNC_NET_DISTINCT = 2293760
  563. WNNC_NET_TWINS = 2359296
  564. WNNC_NET_RDR2SAMPLE = 2424832
  565. RESOURCE_CONNECTED = 1
  566. RESOURCE_GLOBALNET = 2
  567. RESOURCE_REMEMBERED = 3
  568. RESOURCE_RECENT = 4
  569. RESOURCE_CONTEXT = 5
  570. RESOURCETYPE_ANY = 0
  571. RESOURCETYPE_DISK = 1
  572. RESOURCETYPE_PRINT = 2
  573. RESOURCETYPE_RESERVED = 8
  574. RESOURCETYPE_UNKNOWN = -1
  575. RESOURCEUSAGE_CONNECTABLE = 1
  576. RESOURCEUSAGE_CONTAINER = 2
  577. RESOURCEUSAGE_NOLOCALDEVICE = 4
  578. RESOURCEUSAGE_SIBLING = 8
  579. RESOURCEUSAGE_ATTACHED = 16
  580. RESOURCEUSAGE_ALL = (RESOURCEUSAGE_CONNECTABLE | RESOURCEUSAGE_CONTAINER | RESOURCEUSAGE_ATTACHED)
  581. RESOURCEUSAGE_RESERVED = -2147483648
  582. RESOURCEDISPLAYTYPE_GENERIC = 0
  583. RESOURCEDISPLAYTYPE_DOMAIN = 1
  584. RESOURCEDISPLAYTYPE_SERVER = 2
  585. RESOURCEDISPLAYTYPE_SHARE = 3
  586. RESOURCEDISPLAYTYPE_FILE = 4
  587. RESOURCEDISPLAYTYPE_GROUP = 5
  588. RESOURCEDISPLAYTYPE_NETWORK = 6
  589. RESOURCEDISPLAYTYPE_ROOT = 7
  590. RESOURCEDISPLAYTYPE_SHAREADMIN = 8
  591. RESOURCEDISPLAYTYPE_DIRECTORY = 9
  592. RESOURCEDISPLAYTYPE_TREE = 10
  593. RESOURCEDISPLAYTYPE_NDSCONTAINER = 11
  594. NETPROPERTY_PERSISTENT = 1
  595. CONNECT_UPDATE_PROFILE = 1
  596. CONNECT_UPDATE_RECENT = 2
  597. CONNECT_TEMPORARY = 4
  598. CONNECT_INTERACTIVE = 8
  599. CONNECT_PROMPT = 16
  600. CONNECT_NEED_DRIVE = 32
  601. CONNECT_REFCOUNT = 64
  602. CONNECT_REDIRECT = 128
  603. CONNECT_LOCALDRIVE = 256
  604. CONNECT_CURRENT_MEDIA = 512
  605. CONNECT_DEFERRED = 1024
  606. CONNECT_RESERVED = -16777216
  607. CONNDLG_RO_PATH = 1
  608. CONNDLG_CONN_POINT = 2
  609. CONNDLG_USE_MRU = 4
  610. CONNDLG_HIDE_BOX = 8
  611. CONNDLG_PERSIST = 16
  612. CONNDLG_NOT_PERSIST = 32
  613. DISC_UPDATE_PROFILE = 1
  614. DISC_NO_FORCE = 64
  615. UNIVERSAL_NAME_INFO_LEVEL = 1
  616. REMOTE_NAME_INFO_LEVEL = 2
  617. WNFMT_MULTILINE = 1
  618. WNFMT_ABBREVIATED = 2
  619. WNFMT_INENUM = 16
  620. WNFMT_CONNECTION = 32
  621. NETINFO_DLL16 = 1
  622. NETINFO_DISKRED = 4
  623. NETINFO_PRINTERRED = 8
  624. RP_LOGON = 1
  625. RP_INIFILE = 2
  626. PP_DISPLAYERRORS = 1
  627. WNCON_FORNETCARD = 1
  628. WNCON_NOTROUTED = 2
  629. WNCON_SLOWLINK = 4
  630. WNCON_DYNAMIC = 8
  631. ## NETSETUP_NAME_TYPE, used with NetValidateName
  632. NetSetupUnknown = 0
  633. NetSetupMachine = 1
  634. NetSetupWorkgroup = 2
  635. NetSetupDomain = 3
  636. NetSetupNonExistentDomain = 4
  637. NetSetupDnsMachine = 5
  638. ## NETSETUP_JOIN_STATUS, use with NetGetJoinInformation
  639. NetSetupUnknownStatus = 0
  640. NetSetupUnjoined = 1
  641. NetSetupWorkgroupName = 2
  642. NetSetupDomainName = 3
  643. NetValidateAuthentication = 1
  644. NetValidatePasswordChange = 2
  645. NetValidatePasswordReset = 3