Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
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.

win32netcon.py 18KB

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