home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Shareware / Comunicatii / jyte / jyte.exe / win32netcon.py < prev    next >
Text File  |  1999-12-18  |  21KB  |  638 lines

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