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.

151 lines
4.5 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. mnet32.h
  7. <Single line synopsis>
  8. <Multi-Line, more detailed synopsis>
  9. FILE HISTORY:
  10. KeithMo 13-Oct-1991 Created from DanHi's private port1632.h.
  11. terryk 21-Oct-1991 change SERVER_INFO and USER_LOGON
  12. terryk 31-Oct-1991 add use_info_2
  13. Yi-HsinS 5-Feb-1992 add the missing ae_resaccess
  14. */
  15. #ifndef _MNET32_H_
  16. #define _MNET32_H_
  17. //
  18. // The following items are necessary under Windows NT. These
  19. // were ripped off from DanHi's PORT1632.H.
  20. //
  21. #ifdef WIN32
  22. // #define LPWSTR LPSTR // Until proven otherwise...
  23. #define MAXPATHLEN MAX_PATH
  24. #define WORKBUFSIZE 4096
  25. #define MAXWORKSTATIONS 8
  26. //
  27. // Temporary hacks.
  28. //
  29. #define AE_GENERIC AE_GENERIC_TYPE
  30. #define GRP1_PARMNUM_COMMENT GROUP_COMMENT_PARMNUM
  31. //
  32. // End of temporary hacks.
  33. //
  34. // (Wishful thinking, eh?)
  35. //
  36. #define MAXPREFERREDLENGTH MAX_PREFERRED_LENGTH
  37. //
  38. // The naming convention for structures is different in NT than in LM 2.x.
  39. //
  40. #define audit_entry _AUDIT_ENTRY
  41. #define ae_srvstatus _AE_SRVSTATUS
  42. #define ae_sesslogon _AE_SESSLOGON
  43. #define ae_sesslogoff _AE_SESSLOGOFF
  44. #define ae_sesspwerr _AE_SESSPWERR
  45. #define ae_connstart _AE_CONNSTART
  46. #define ae_connstop _AE_CONNSTOP
  47. #define ae_connrej _AE_CONNREJ
  48. #define ae_resaccess _AE_RESACCESS
  49. #define ae_resaccess2 _AE_RESACCESS
  50. #define ae_ra2_compname ae_ra_compname
  51. #define ae_ra2_username ae_ra_username
  52. #define ae_ra2_resname ae_ra_resname
  53. #define ae_ra2_operation ae_ra_operation
  54. #define ae_ra2_returncode ae_ra_returncode
  55. #define ae_ra2_restype ae_ra_restype
  56. #define ae_ra2_fileid ae_ra_fileid
  57. #define ae_resaccessrej _AE_RESACCESSREJ
  58. #define ae_closefile _AE_CLOSEFILE
  59. #define ae_servicestat _AE_SERVICESTAT
  60. #define ae_aclmod _AE_ACLMOD
  61. #define ae_uasmod _AE_UASMOD
  62. #define ae_netlogon _AE_NETLOGON
  63. #define ae_netlogoff _AE_NETLOGOFF
  64. #define ae_acclim _AE_ACCLIM
  65. #define ae_lockout _AE_LOCKOUT
  66. #define ae_generic _AE_GENERIC
  67. #define error_log _ERROR_LOG
  68. #define user_info_0 _USER_INFO_0
  69. #define user_info_1 _USER_INFO_1
  70. #define user_info_2 _USER_INFO_2
  71. #define user_info_10 _USER_INFO_10
  72. #define user_info_11 _USER_INFO_11
  73. #define user_modals_info_0 _USER_MODALS_INFO_0
  74. #define user_modals_info_1 _USER_MODALS_INFO_1
  75. #define user_logon_req_1 _USER_LOGON_REQ_1
  76. #define user_logon_info_0 _USER_LOGON_INFO_0
  77. // WIN32BUGBUG
  78. // should be INFO_1
  79. #define user_logon_info_1 _USER_LOGON_INFO_2
  80. #define user_logon_info_2 _USER_LOGON_INFO_2
  81. #define user_logoff_req_1 _USER_LOGOFF_REQ_1
  82. #define user_logoff_info_1 _USER_LOGOFF_INFO_1
  83. #define group_info_0 _GROUP_INFO_0
  84. #define group_info_1 _GROUP_INFO_1
  85. #define group_users_info_0 _GROUP_USERS_INFO_0
  86. #define access_list _ACCESS_LIST
  87. #define access_info_0 _ACCESS_INFO_0
  88. #define access_info_1 _ACCESS_INFO_1
  89. #define chardev_info_0 _CHARDEV_INFO_0
  90. #define chardev_info_1 _CHARDEV_INFO_1
  91. #define chardevQ_info_0 _CHARDEVQ_INFO_0
  92. #define chardevQ_info_1 _CHARDEVQ_INFO_1
  93. #define msg_info_0 _MSG_INFO_0
  94. #define msg_info_1 _MSG_INFO_1
  95. #define statistics_info_0 _STATISTICS_INFO_0
  96. #define stat_workstation_0 _STAT_WORKSTATION_0
  97. #define stat_server_0 _STAT_SERVER_0
  98. #define service_info_0 _SERVICE_INFO_0
  99. #define service_info_1 _SERVICE_INFO_1
  100. #define service_info_2 _SERVICE_INFO_2
  101. #define share_info_0 _SHARE_INFO_0
  102. #define share_info_1 _SHARE_INFO_1
  103. #define share_info_2 _SHARE_INFO_2
  104. #define session_info_0 _SESSION_INFO_0
  105. #define session_info_1 _SESSION_INFO_1
  106. #define session_info_2 _SESSION_INFO_2
  107. #define session_info_10 _SESSION_INFO_10
  108. #define connection_info_0 _CONNECTION_INFO_0
  109. #define connection_info_1 _CONNECTION_INFO_1
  110. #define file_info_0 _FILE_INFO_0
  111. #define file_info_1 _FILE_INFO_1
  112. #define file_info_2 _FILE_INFO_2
  113. #define file_info_3 _FILE_INFO_3
  114. #define res_file_enum_2 _RES_FILE_ENUM_2
  115. #define res_file_enum_2 _RES_FILE_ENUM_2
  116. #define use_info_0 _USE_INFO_0
  117. #define use_info_1 _USE_INFO_1
  118. #define use_info_2 _USE_INFO_2
  119. #define time_of_day_info _TIME_OF_DAY_INFO
  120. //
  121. // Macros to support old style resume keys.
  122. //
  123. typedef DWORD FRK;
  124. #define FRK_INIT(x) (x) = 0
  125. #endif // WIN32
  126. #endif // _MNET32_H_