JwaLM.pas
资源名称:win32api.zip [点击查看]
上传用户:davidchvip
上传日期:2009-07-28
资源大小:1749k
文件大小:407k
源码类别:
Windows编程
开发平台:
Delphi
- function NetWkstaTransportDel(servername: LPWSTR; transportname: LPWSTR;
- ucond: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetWkstaTransportDel}
- function NetWkstaTransportEnum(servername: LPWSTR; level: DWORD; bufptr: Pointer;
- prefmaxlen: DWORD; var entriesread: DWORD; var totalentries: DWORD;
- resumehandle: PDWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetWkstaTransportEnum}
- // NetWkstaGetInfo and NetWkstaSetInfo
- // NetWkstaGetInfo only. System information - guest access
- type
- PWkstaInfo100 = ^TWkstaInfo100;
- _WKSTA_INFO_100 = record
- wki100_platform_id: DWORD;
- wki100_computername: LPWSTR;
- wki100_langroup: LPWSTR;
- wki100_ver_major: DWORD;
- wki100_ver_minor: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_100}
- TWkstaInfo100 = _WKSTA_INFO_100;
- WKSTA_INFO_100 = _WKSTA_INFO_100;
- {$EXTERNALSYM WKSTA_INFO_100}
- // NetWkstaGetInfo only. System information - user access
- PWkstaInfo101 = ^TWkstaInfo101;
- _WKSTA_INFO_101 = record
- wki101_platform_id: DWORD;
- wki101_computername: LPWSTR;
- wki101_langroup: LPWSTR;
- wki101_ver_major: DWORD;
- wki101_ver_minor: DWORD;
- wki101_lanroot: LPWSTR;
- end;
- {$EXTERNALSYM _WKSTA_INFO_101}
- TWkstaInfo101 = _WKSTA_INFO_101;
- WKSTA_INFO_101 = _WKSTA_INFO_101;
- {$EXTERNALSYM WKSTA_INFO_101}
- // NetWkstaGetInfo only. System information - admin or operator access
- PWkstaInfo102 = ^TWkstaInfo102;
- _WKSTA_INFO_102 = record
- wki102_platform_id: DWORD;
- wki102_computername: LPWSTR;
- wki102_langroup: LPWSTR;
- wki102_ver_major: DWORD;
- wki102_ver_minor: DWORD;
- wki102_lanroot: LPWSTR;
- wki102_logged_on_users: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_102}
- TWkstaInfo102 = _WKSTA_INFO_102;
- WKSTA_INFO_102 = _WKSTA_INFO_102;
- {$EXTERNALSYM WKSTA_INFO_102}
- // Down-level NetWkstaGetInfo and NetWkstaSetInfo.
- //
- // DOS specific workstation information -
- // admin or domain operator access
- PWkstaInfo302 = ^TWkstaInfo302;
- _WKSTA_INFO_302 = record
- wki302_char_wait: DWORD;
- wki302_collection_time: DWORD;
- wki302_maximum_collection_count: DWORD;
- wki302_keep_conn: DWORD;
- wki302_keep_search: DWORD;
- wki302_max_cmds: DWORD;
- wki302_num_work_buf: DWORD;
- wki302_siz_work_buf: DWORD;
- wki302_max_wrk_cache: DWORD;
- wki302_sess_timeout: DWORD;
- wki302_siz_error: DWORD;
- wki302_num_alerts: DWORD;
- wki302_num_services: DWORD;
- wki302_errlog_sz: DWORD;
- wki302_print_buf_time: DWORD;
- wki302_num_char_buf: DWORD;
- wki302_siz_char_buf: DWORD;
- wki302_wrk_heuristics: LPWSTR;
- wki302_mailslots: DWORD;
- wki302_num_dgram_buf: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_302}
- TWkstaInfo302 = _WKSTA_INFO_302;
- WKSTA_INFO_302 = _WKSTA_INFO_302;
- {$EXTERNALSYM WKSTA_INFO_302}
- // Down-level NetWkstaGetInfo and NetWkstaSetInfo
- //
- // OS/2 specific workstation information -
- // admin or domain operator access
- PWkstaInfo402 = ^TWkstaInfo402;
- _WKSTA_INFO_402 = record
- wki402_char_wait: DWORD;
- wki402_collection_time: DWORD;
- wki402_maximum_collection_count: DWORD;
- wki402_keep_conn: DWORD;
- wki402_keep_search: DWORD;
- wki402_max_cmds: DWORD;
- wki402_num_work_buf: DWORD;
- wki402_siz_work_buf: DWORD;
- wki402_max_wrk_cache: DWORD;
- wki402_sess_timeout: DWORD;
- wki402_siz_error: DWORD;
- wki402_num_alerts: DWORD;
- wki402_num_services: DWORD;
- wki402_errlog_sz: DWORD;
- wki402_print_buf_time: DWORD;
- wki402_num_char_buf: DWORD;
- wki402_siz_char_buf: DWORD;
- wki402_wrk_heuristics: LPWSTR;
- wki402_mailslots: DWORD;
- wki402_num_dgram_buf: DWORD;
- wki402_max_threads: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_402}
- TWkstaInfo402 = _WKSTA_INFO_402;
- WKSTA_INFO_402 = _WKSTA_INFO_402;
- {$EXTERNALSYM WKSTA_INFO_402}
- // Same-level NetWkstaGetInfo and NetWkstaSetInfo.
- //
- // NT specific workstation information -
- // admin or domain operator access
- PWkstaInfo502 = ^TWkstaInfo502;
- _WKSTA_INFO_502 = record
- wki502_char_wait: DWORD;
- wki502_collection_time: DWORD;
- wki502_maximum_collection_count: DWORD;
- wki502_keep_conn: DWORD;
- wki502_max_cmds: DWORD;
- wki502_sess_timeout: DWORD;
- wki502_siz_char_buf: DWORD;
- wki502_max_threads: DWORD;
- wki502_lock_quota: DWORD;
- wki502_lock_increment: DWORD;
- wki502_lock_maximum: DWORD;
- wki502_pipe_increment: DWORD;
- wki502_pipe_maximum: DWORD;
- wki502_cache_file_timeout: DWORD;
- wki502_dormant_file_limit: DWORD;
- wki502_read_ahead_throughput: DWORD;
- wki502_num_mailslot_buffers: DWORD;
- wki502_num_srv_announce_buffers: DWORD;
- wki502_max_illegal_datagram_events: DWORD;
- wki502_illegal_datagram_event_reset_frequency: DWORD;
- wki502_log_election_packets: BOOL;
- wki502_use_opportunistic_locking: BOOL;
- wki502_use_unlock_behind: BOOL;
- wki502_use_close_behind: BOOL;
- wki502_buf_named_pipes: BOOL;
- wki502_use_lock_read_unlock: BOOL;
- wki502_utilize_nt_caching: BOOL;
- wki502_use_raw_read: BOOL;
- wki502_use_raw_write: BOOL;
- wki502_use_write_raw_data: BOOL;
- wki502_use_encryption: BOOL;
- wki502_buf_files_deny_write: BOOL;
- wki502_buf_read_only_files: BOOL;
- wki502_force_core_create_mode: BOOL;
- wki502_use_512_byte_max_transfer: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_502}
- TWkstaInfo502 = _WKSTA_INFO_502;
- WKSTA_INFO_502 = _WKSTA_INFO_502;
- {$EXTERNALSYM WKSTA_INFO_502}
- // The following info-levels are only valid for NetWkstaSetInfo
- // The following levels are supported on down-level systems (LAN Man 2.x)
- // as well as NT systems:
- PWkstaInfo1010 = ^TWkstaInfo1010;
- _WKSTA_INFO_1010 = record
- wki1010_char_wait: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1010}
- TWkstaInfo1010 = _WKSTA_INFO_1010;
- WKSTA_INFO_1010 = _WKSTA_INFO_1010;
- {$EXTERNALSYM WKSTA_INFO_1010}
- PWkstaInfo1011 = ^TWkstaInfo1011;
- _WKSTA_INFO_1011 = record
- wki1011_collection_time: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1011}
- TWkstaInfo1011 = _WKSTA_INFO_1011;
- WKSTA_INFO_1011 = _WKSTA_INFO_1011;
- {$EXTERNALSYM WKSTA_INFO_1011}
- PWkstaInfo1012 = ^TWkstaInfo1012;
- _WKSTA_INFO_1012 = record
- wki1012_maximum_collection_count: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1012}
- TWkstaInfo1012 = _WKSTA_INFO_1012;
- WKSTA_INFO_1012 = _WKSTA_INFO_1012;
- {$EXTERNALSYM WKSTA_INFO_1012}
- // The following level are supported on down-level systems (LAN Man 2.x)
- // only:
- PWkstaInfo1027 = ^TWkstaInfo1027;
- _WKSTA_INFO_1027 = record
- wki1027_errlog_sz: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1027}
- TWkstaInfo1027 = _WKSTA_INFO_1027;
- WKSTA_INFO_1027 = _WKSTA_INFO_1027;
- {$EXTERNALSYM WKSTA_INFO_1027}
- PWkstaInfo1028 = ^TWkstaInfo1028;
- _WKSTA_INFO_1028 = record
- wki1028_print_buf_time: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1028}
- TWkstaInfo1028 = _WKSTA_INFO_1028;
- WKSTA_INFO_1028 = _WKSTA_INFO_1028;
- {$EXTERNALSYM WKSTA_INFO_1028}
- PWkstaInfo1032 = ^TWkstaInfo1032;
- _WKSTA_INFO_1032 = record
- wki1032_wrk_heuristics: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1032}
- TWkstaInfo1032 = _WKSTA_INFO_1032;
- WKSTA_INFO_1032 = _WKSTA_INFO_1032;
- {$EXTERNALSYM WKSTA_INFO_1032}
- // The following levels are settable on NT systems, and have no
- // effect on down-level systems (i.e. LANMan 2.x) since these
- // fields cannot be set on them:
- PWkstaInfo1013 = ^TWkstaInfo1013;
- _WKSTA_INFO_1013 = record
- wki1013_keep_conn: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1013}
- TWkstaInfo1013 = _WKSTA_INFO_1013;
- WKSTA_INFO_1013 = _WKSTA_INFO_1013;
- {$EXTERNALSYM WKSTA_INFO_1013}
- PWkstaInfo1018 = ^TWkstaInfo1018;
- _WKSTA_INFO_1018 = record
- wki1018_sess_timeout: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1018}
- TWkstaInfo1018 = _WKSTA_INFO_1018;
- WKSTA_INFO_1018 = _WKSTA_INFO_1018;
- {$EXTERNALSYM WKSTA_INFO_1018}
- PWkstaInfo1023 = ^TWkstaInfo1023;
- _WKSTA_INFO_1023 = record
- wki1023_siz_char_buf: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1023}
- TWkstaInfo1023 = _WKSTA_INFO_1023;
- WKSTA_INFO_1023 = _WKSTA_INFO_1023;
- {$EXTERNALSYM WKSTA_INFO_1023}
- PWkstaInfo1033 = ^TWkstaInfo1033;
- _WKSTA_INFO_1033 = record
- wki1033_max_threads: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1033}
- TWkstaInfo1033 = _WKSTA_INFO_1033;
- WKSTA_INFO_1033 = _WKSTA_INFO_1033;
- {$EXTERNALSYM WKSTA_INFO_1033}
- // The following levels are only supported on NT systems:
- PWkstaInfo1041 = ^TWkstaInfo1041;
- _WKSTA_INFO_1041 = record
- wki1041_lock_quota: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1041}
- TWkstaInfo1041 = _WKSTA_INFO_1041;
- WKSTA_INFO_1041 = _WKSTA_INFO_1041;
- {$EXTERNALSYM WKSTA_INFO_1041}
- PWkstaInfo1042 = ^TWkstaInfo1042;
- _WKSTA_INFO_1042 = record
- wki1042_lock_increment: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1042}
- TWkstaInfo1042 = _WKSTA_INFO_1042;
- WKSTA_INFO_1042 = _WKSTA_INFO_1042;
- {$EXTERNALSYM WKSTA_INFO_1042}
- PWkstaInfo1043 = ^TWkstaInfo1043;
- _WKSTA_INFO_1043 = record
- wki1043_lock_maximum: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1043}
- TWkstaInfo1043 = _WKSTA_INFO_1043;
- WKSTA_INFO_1043 = _WKSTA_INFO_1043;
- {$EXTERNALSYM WKSTA_INFO_1043}
- PWkstaInfo1044 = ^TWkstaInfo1044;
- _WKSTA_INFO_1044 = record
- wki1044_pipe_increment: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1044}
- TWkstaInfo1044 = _WKSTA_INFO_1044;
- WKSTA_INFO_1044 = _WKSTA_INFO_1044;
- {$EXTERNALSYM WKSTA_INFO_1044}
- PWkstaInfo1045 = ^TWkstaInfo1045;
- _WKSTA_INFO_1045 = record
- wki1045_pipe_maximum: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1045}
- TWkstaInfo1045 = _WKSTA_INFO_1045;
- WKSTA_INFO_1045 = _WKSTA_INFO_1045;
- {$EXTERNALSYM WKSTA_INFO_1045}
- PWkstaInfo1046 = ^TWkstaInfo1046;
- _WKSTA_INFO_1046 = record
- wki1046_dormant_file_limit: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1046}
- TWkstaInfo1046 = _WKSTA_INFO_1046;
- WKSTA_INFO_1046 = _WKSTA_INFO_1046;
- {$EXTERNALSYM WKSTA_INFO_1046}
- PWkstaInfo1047 = ^TWkstaInfo1047;
- _WKSTA_INFO_1047 = record
- wki1047_cache_file_timeout: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1047}
- TWkstaInfo1047 = _WKSTA_INFO_1047;
- WKSTA_INFO_1047 = _WKSTA_INFO_1047;
- {$EXTERNALSYM WKSTA_INFO_1047}
- PWkstaInfo1048 = ^TWkstaInfo1048;
- _WKSTA_INFO_1048 = record
- wki1048_use_opportunistic_locking: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1048}
- TWkstaInfo1048 = _WKSTA_INFO_1048;
- WKSTA_INFO_1048 = _WKSTA_INFO_1048;
- {$EXTERNALSYM WKSTA_INFO_1048}
- PWkstaInfo1049 = ^TWkstaInfo1049;
- _WKSTA_INFO_1049 = record
- wki1049_use_unlock_behind: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1049}
- TWkstaInfo1049 = _WKSTA_INFO_1049;
- WKSTA_INFO_1049 = _WKSTA_INFO_1049;
- {$EXTERNALSYM WKSTA_INFO_1049}
- PWkstaInfo1050 = ^TWkstaInfo1050;
- _WKSTA_INFO_1050 = record
- wki1050_use_close_behind: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1050}
- TWkstaInfo1050 = _WKSTA_INFO_1050;
- WKSTA_INFO_1050 = _WKSTA_INFO_1050;
- {$EXTERNALSYM WKSTA_INFO_1050}
- PWkstaInfo1051 = ^TWkstaInfo1051;
- _WKSTA_INFO_1051 = record
- wki1051_buf_named_pipes: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1051}
- TWkstaInfo1051 = _WKSTA_INFO_1051;
- WKSTA_INFO_1051 = _WKSTA_INFO_1051;
- {$EXTERNALSYM WKSTA_INFO_1051}
- PWkstaInfo1052 = ^TWkstaInfo1052;
- _WKSTA_INFO_1052 = record
- wki1052_use_lock_read_unlock: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1052}
- TWkstaInfo1052 = _WKSTA_INFO_1052;
- WKSTA_INFO_1052 = _WKSTA_INFO_1052;
- {$EXTERNALSYM WKSTA_INFO_1052}
- PWkstaInfo1053 = ^TWkstaInfo1053;
- _WKSTA_INFO_1053 = record
- wki1053_utilize_nt_caching: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1053}
- TWkstaInfo1053 = _WKSTA_INFO_1053;
- WKSTA_INFO_1053 = _WKSTA_INFO_1053;
- {$EXTERNALSYM WKSTA_INFO_1053}
- PWkstaInfo1054 = ^TWkstaInfo1054;
- _WKSTA_INFO_1054 = record
- wki1054_use_raw_read: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1054}
- TWkstaInfo1054 = _WKSTA_INFO_1054;
- WKSTA_INFO_1054 = _WKSTA_INFO_1054;
- {$EXTERNALSYM WKSTA_INFO_1054}
- PWkstaInfo1055 = ^TWkstaInfo1055;
- _WKSTA_INFO_1055 = record
- wki1055_use_raw_write: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1055}
- TWkstaInfo1055 = _WKSTA_INFO_1055;
- WKSTA_INFO_1055 = _WKSTA_INFO_1055;
- {$EXTERNALSYM WKSTA_INFO_1055}
- PWkstaInfo1056 = ^TWkstaInfo1056;
- _WKSTA_INFO_1056 = record
- wki1056_use_write_raw_data: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1056}
- TWkstaInfo1056 = _WKSTA_INFO_1056;
- WKSTA_INFO_1056 = _WKSTA_INFO_1056;
- {$EXTERNALSYM WKSTA_INFO_1056}
- PWkstaInfo1057 = ^TWkstaInfo1057;
- _WKSTA_INFO_1057 = record
- wki1057_use_encryption: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1057}
- TWkstaInfo1057 = _WKSTA_INFO_1057;
- WKSTA_INFO_1057 = _WKSTA_INFO_1057;
- {$EXTERNALSYM WKSTA_INFO_1057}
- PWkstaInfo1058 = ^TWkstaInfo1058;
- _WKSTA_INFO_1058 = record
- wki1058_buf_files_deny_write: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1058}
- TWkstaInfo1058 = _WKSTA_INFO_1058;
- WKSTA_INFO_1058 = _WKSTA_INFO_1058;
- {$EXTERNALSYM WKSTA_INFO_1058}
- PWkstaInfo1059 = ^TWkstaInfo1059;
- _WKSTA_INFO_1059 = record
- wki1059_buf_read_only_files: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1059}
- TWkstaInfo1059 = _WKSTA_INFO_1059;
- WKSTA_INFO_1059 = _WKSTA_INFO_1059;
- {$EXTERNALSYM WKSTA_INFO_1059}
- PWkstaInfo1060 = ^TWkstaInfo1060;
- _WKSTA_INFO_1060 = record
- wki1060_force_core_create_mode: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1060}
- TWkstaInfo1060 = _WKSTA_INFO_1060;
- WKSTA_INFO_1060 = _WKSTA_INFO_1060;
- {$EXTERNALSYM WKSTA_INFO_1060}
- PWkstaInfo1061 = ^TWkstaInfo1061;
- _WKSTA_INFO_1061 = record
- wki1061_use_512_byte_max_transfer: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1061}
- TWkstaInfo1061 = _WKSTA_INFO_1061;
- WKSTA_INFO_1061 = _WKSTA_INFO_1061;
- {$EXTERNALSYM WKSTA_INFO_1061}
- PWkstaInfo1062 = ^TWkstaInfo1062;
- _WKSTA_INFO_1062 = record
- wki1062_read_ahead_throughput: DWORD;
- end;
- {$EXTERNALSYM _WKSTA_INFO_1062}
- TWkstaInfo1062 = _WKSTA_INFO_1062;
- WKSTA_INFO_1062 = _WKSTA_INFO_1062;
- {$EXTERNALSYM WKSTA_INFO_1062}
- // NetWkstaUserGetInfo (local only) and NetWkstaUserEnum -
- // no access restrictions.
- PWkstaUserInfo0 = ^TWkstaUserInfo0;
- _WKSTA_USER_INFO_0 = record
- wkui0_username: LPWSTR;
- end;
- {$EXTERNALSYM _WKSTA_USER_INFO_0}
- TWkstaUserInfo0 = _WKSTA_USER_INFO_0;
- WKSTA_USER_INFO_0 = _WKSTA_USER_INFO_0;
- {$EXTERNALSYM WKSTA_USER_INFO_0}
- // NetWkstaUserGetInfo (local only) and NetWkstaUserEnum -
- // no access restrictions.
- PWkstaUserInfo1 = ^TWkstaUserInfo1;
- _WKSTA_USER_INFO_1 = record
- wkui1_username: LPWSTR;
- wkui1_logon_domain: LPWSTR;
- wkui1_oth_domains: LPWSTR;
- wkui1_logon_server: LPWSTR;
- end;
- {$EXTERNALSYM _WKSTA_USER_INFO_1}
- TWkstaUserInfo1 = _WKSTA_USER_INFO_1;
- WKSTA_USER_INFO_1 = _WKSTA_USER_INFO_1;
- {$EXTERNALSYM WKSTA_USER_INFO_1}
- // NetWkstaUserSetInfo - local access.
- PWkstaUserInfo1101 = ^TWkstaUserInfo1101;
- _WKSTA_USER_INFO_1101 = record
- wkui1101_oth_domains: LPWSTR;
- end;
- {$EXTERNALSYM _WKSTA_USER_INFO_1101}
- TWkstaUserInfo1101 = _WKSTA_USER_INFO_1101;
- WKSTA_USER_INFO_1101 = _WKSTA_USER_INFO_1101;
- {$EXTERNALSYM WKSTA_USER_INFO_1101}
- // NetWkstaTransportAdd - admin access
- PWkstaTransportInfo0 = ^TWkstaTransportInfo0;
- _WKSTA_TRANSPORT_INFO_0 = record
- wkti0_quality_of_service: DWORD;
- wkti0_number_of_vcs: DWORD;
- wkti0_transport_name: LPWSTR;
- wkti0_transport_address: LPWSTR;
- wkti0_wan_ish: BOOL;
- end;
- {$EXTERNALSYM _WKSTA_TRANSPORT_INFO_0}
- TWkstaTransportInfo0 = _WKSTA_TRANSPORT_INFO_0;
- WKSTA_TRANSPORT_INFO_0 = _WKSTA_TRANSPORT_INFO_0;
- {$EXTERNALSYM WKSTA_TRANSPORT_INFO_0}
- // Special Values and Constants
- // Identifiers for use as NetWkstaSetInfo parmnum parameter
- // One of these values indicates the parameter within an information
- // structure that is invalid when ERROR_INVALID_PARAMETER is returned by
- // NetWkstaSetInfo.
- const
- WKSTA_PLATFORM_ID_PARMNUM = 100;
- {$EXTERNALSYM WKSTA_PLATFORM_ID_PARMNUM}
- WKSTA_COMPUTERNAME_PARMNUM = 1;
- {$EXTERNALSYM WKSTA_COMPUTERNAME_PARMNUM}
- WKSTA_LANGROUP_PARMNUM = 2;
- {$EXTERNALSYM WKSTA_LANGROUP_PARMNUM}
- WKSTA_VER_MAJOR_PARMNUM = 4;
- {$EXTERNALSYM WKSTA_VER_MAJOR_PARMNUM}
- WKSTA_VER_MINOR_PARMNUM = 5;
- {$EXTERNALSYM WKSTA_VER_MINOR_PARMNUM}
- WKSTA_LOGGED_ON_USERS_PARMNUM = 6;
- {$EXTERNALSYM WKSTA_LOGGED_ON_USERS_PARMNUM}
- WKSTA_LANROOT_PARMNUM = 7;
- {$EXTERNALSYM WKSTA_LANROOT_PARMNUM}
- WKSTA_LOGON_DOMAIN_PARMNUM = 8;
- {$EXTERNALSYM WKSTA_LOGON_DOMAIN_PARMNUM}
- WKSTA_LOGON_SERVER_PARMNUM = 9;
- {$EXTERNALSYM WKSTA_LOGON_SERVER_PARMNUM}
- WKSTA_CHARWAIT_PARMNUM = 10; // Supported by down-level.
- {$EXTERNALSYM WKSTA_CHARWAIT_PARMNUM}
- WKSTA_CHARTIME_PARMNUM = 11; // Supported by down-level.
- {$EXTERNALSYM WKSTA_CHARTIME_PARMNUM}
- WKSTA_CHARCOUNT_PARMNUM = 12; // Supported by down-level.
- {$EXTERNALSYM WKSTA_CHARCOUNT_PARMNUM}
- WKSTA_KEEPCONN_PARMNUM = 13;
- {$EXTERNALSYM WKSTA_KEEPCONN_PARMNUM}
- WKSTA_KEEPSEARCH_PARMNUM = 14;
- {$EXTERNALSYM WKSTA_KEEPSEARCH_PARMNUM}
- WKSTA_MAXCMDS_PARMNUM = 15;
- {$EXTERNALSYM WKSTA_MAXCMDS_PARMNUM}
- WKSTA_NUMWORKBUF_PARMNUM = 16;
- {$EXTERNALSYM WKSTA_NUMWORKBUF_PARMNUM}
- WKSTA_MAXWRKCACHE_PARMNUM = 17;
- {$EXTERNALSYM WKSTA_MAXWRKCACHE_PARMNUM}
- WKSTA_SESSTIMEOUT_PARMNUM = 18;
- {$EXTERNALSYM WKSTA_SESSTIMEOUT_PARMNUM}
- WKSTA_SIZERROR_PARMNUM = 19;
- {$EXTERNALSYM WKSTA_SIZERROR_PARMNUM}
- WKSTA_NUMALERTS_PARMNUM = 20;
- {$EXTERNALSYM WKSTA_NUMALERTS_PARMNUM}
- WKSTA_NUMSERVICES_PARMNUM = 21;
- {$EXTERNALSYM WKSTA_NUMSERVICES_PARMNUM}
- WKSTA_NUMCHARBUF_PARMNUM = 22;
- {$EXTERNALSYM WKSTA_NUMCHARBUF_PARMNUM}
- WKSTA_SIZCHARBUF_PARMNUM = 23;
- {$EXTERNALSYM WKSTA_SIZCHARBUF_PARMNUM}
- WKSTA_ERRLOGSZ_PARMNUM = 27; // Supported by down-level.
- {$EXTERNALSYM WKSTA_ERRLOGSZ_PARMNUM}
- WKSTA_PRINTBUFTIME_PARMNUM = 28; // Supported by down-level.
- {$EXTERNALSYM WKSTA_PRINTBUFTIME_PARMNUM}
- WKSTA_SIZWORKBUF_PARMNUM = 29;
- {$EXTERNALSYM WKSTA_SIZWORKBUF_PARMNUM}
- WKSTA_MAILSLOTS_PARMNUM = 30;
- {$EXTERNALSYM WKSTA_MAILSLOTS_PARMNUM}
- WKSTA_NUMDGRAMBUF_PARMNUM = 31;
- {$EXTERNALSYM WKSTA_NUMDGRAMBUF_PARMNUM}
- WKSTA_WRKHEURISTICS_PARMNUM = 32; // Supported by down-level.
- {$EXTERNALSYM WKSTA_WRKHEURISTICS_PARMNUM}
- WKSTA_MAXTHREADS_PARMNUM = 33;
- {$EXTERNALSYM WKSTA_MAXTHREADS_PARMNUM}
- WKSTA_LOCKQUOTA_PARMNUM = 41;
- {$EXTERNALSYM WKSTA_LOCKQUOTA_PARMNUM}
- WKSTA_LOCKINCREMENT_PARMNUM = 42;
- {$EXTERNALSYM WKSTA_LOCKINCREMENT_PARMNUM}
- WKSTA_LOCKMAXIMUM_PARMNUM = 43;
- {$EXTERNALSYM WKSTA_LOCKMAXIMUM_PARMNUM}
- WKSTA_PIPEINCREMENT_PARMNUM = 44;
- {$EXTERNALSYM WKSTA_PIPEINCREMENT_PARMNUM}
- WKSTA_PIPEMAXIMUM_PARMNUM = 45;
- {$EXTERNALSYM WKSTA_PIPEMAXIMUM_PARMNUM}
- WKSTA_DORMANTFILELIMIT_PARMNUM = 46;
- {$EXTERNALSYM WKSTA_DORMANTFILELIMIT_PARMNUM}
- WKSTA_CACHEFILETIMEOUT_PARMNUM = 47;
- {$EXTERNALSYM WKSTA_CACHEFILETIMEOUT_PARMNUM}
- WKSTA_USEOPPORTUNISTICLOCKING_PARMNUM = 48;
- {$EXTERNALSYM WKSTA_USEOPPORTUNISTICLOCKING_PARMNUM}
- WKSTA_USEUNLOCKBEHIND_PARMNUM = 49;
- {$EXTERNALSYM WKSTA_USEUNLOCKBEHIND_PARMNUM}
- WKSTA_USECLOSEBEHIND_PARMNUM = 50;
- {$EXTERNALSYM WKSTA_USECLOSEBEHIND_PARMNUM}
- WKSTA_BUFFERNAMEDPIPES_PARMNUM = 51;
- {$EXTERNALSYM WKSTA_BUFFERNAMEDPIPES_PARMNUM}
- WKSTA_USELOCKANDREADANDUNLOCK_PARMNUM = 52;
- {$EXTERNALSYM WKSTA_USELOCKANDREADANDUNLOCK_PARMNUM}
- WKSTA_UTILIZENTCACHING_PARMNUM = 53;
- {$EXTERNALSYM WKSTA_UTILIZENTCACHING_PARMNUM}
- WKSTA_USERAWREAD_PARMNUM = 54;
- {$EXTERNALSYM WKSTA_USERAWREAD_PARMNUM}
- WKSTA_USERAWWRITE_PARMNUM = 55;
- {$EXTERNALSYM WKSTA_USERAWWRITE_PARMNUM}
- WKSTA_USEWRITERAWWITHDATA_PARMNUM = 56;
- {$EXTERNALSYM WKSTA_USEWRITERAWWITHDATA_PARMNUM}
- WKSTA_USEENCRYPTION_PARMNUM = 57;
- {$EXTERNALSYM WKSTA_USEENCRYPTION_PARMNUM}
- WKSTA_BUFFILESWITHDENYWRITE_PARMNUM = 58;
- {$EXTERNALSYM WKSTA_BUFFILESWITHDENYWRITE_PARMNUM}
- WKSTA_BUFFERREADONLYFILES_PARMNUM = 59;
- {$EXTERNALSYM WKSTA_BUFFERREADONLYFILES_PARMNUM}
- WKSTA_FORCECORECREATEMODE_PARMNUM = 60;
- {$EXTERNALSYM WKSTA_FORCECORECREATEMODE_PARMNUM}
- WKSTA_USE512BYTESMAXTRANSFER_PARMNUM = 61;
- {$EXTERNALSYM WKSTA_USE512BYTESMAXTRANSFER_PARMNUM}
- WKSTA_READAHEADTHRUPUT_PARMNUM = 62;
- {$EXTERNALSYM WKSTA_READAHEADTHRUPUT_PARMNUM}
- // One of these values indicates the parameter within an information
- // structure that is invalid when ERROR_INVALID_PARAMETER is returned by
- // NetWkstaUserSetInfo.
- WKSTA_OTH_DOMAINS_PARMNUM = 101;
- {$EXTERNALSYM WKSTA_OTH_DOMAINS_PARMNUM}
- // One of these values indicates the parameter within an information
- // structure that is invalid when ERROR_INVALID_PARAMETER is returned by
- // NetWkstaTransportAdd.
- TRANSPORT_QUALITYOFSERVICE_PARMNUM = 201;
- {$EXTERNALSYM TRANSPORT_QUALITYOFSERVICE_PARMNUM}
- TRANSPORT_NAME_PARMNUM = 202;
- {$EXTERNALSYM TRANSPORT_NAME_PARMNUM}
- // Translated from LMAPIBUF.H
- function NetApiBufferAllocate(ByteCount: DWORD; var Buffer: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetApiBufferAllocate}
- function NetApiBufferFree(Buffer: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetApiBufferFree}
- function NetApiBufferReallocate(OldBuffer: Pointer; NewByteCount: DWORD;
- var NewBuffer: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetApiBufferReallocate}
- function NetApiBufferSize(Buffer: Pointer; var ByteCount: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetApiBufferSize}
- // The following private function will go away eventually.
- // Call NetApiBufferAllocate instead.
- // Internal Function
- function NetapipBufferAllocate(ByteCount: DWORD; var Buffer: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetapipBufferAllocate}
- // Translated from LMCONFIG.H
- function NetConfigGet(server: LPCWSTR; component: LPCWSTR; parameter: LPCWSTR;
- bufptr: Pointer; var totalavailable: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetConfigGet}
- function NetConfigGetAll(server: LPCWSTR; component: LPCWSTR; bufptr: Pointer;
- var totalavailable: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetConfigGetAll}
- function NetConfigSet(server: LPCWSTR; reserved1: LPCWSTR; component: LPCWSTR;
- level: DWORD; reserved2: DWORD; buf: Pointer; reserved3: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetConfigSet}
- function NetRegisterDomainNameChangeNotification(NotificationEventHandle: PHandle): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetRegisterDomainNameChangeNotification}
- function NetUnregisterDomainNameChangeNotification(NotificationEventHandle: THandle): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetUnregisterDomainNameChangeNotification}
- // Data Structures - Config
- type
- PConfigInfo0 = ^TConfigInfo0;
- _CONFIG_INFO_0 = record
- cfgi0_key: LPWSTR;
- cfgi0_data: LPWSTR;
- end;
- {$EXTERNALSYM _CONFIG_INFO_0}
- TConfigInfo0 = _CONFIG_INFO_0;
- CONFIG_INFO_0 = _CONFIG_INFO_0;
- {$EXTERNALSYM CONFIG_INFO_0}
- // Translated from LMSTATS.H
- // Function Prototypes - Statistics
- function NetStatisticsGet(server: LPWSTR; service: LPWSTR; level: DWORD;
- options: DWORD; bufptr: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetStatisticsGet}
- // Data Structures - Statistics
- type
- PStatWorkstation0 = ^TStatWorkstation0;
- _STAT_WORKSTATION_0 = record
- stw0_start: DWORD;
- stw0_numNCB_r: DWORD;
- stw0_numNCB_s: DWORD;
- stw0_numNCB_a: DWORD;
- stw0_fiNCB_r: DWORD;
- stw0_fiNCB_s: DWORD;
- stw0_fiNCB_a: DWORD;
- stw0_fcNCB_r: DWORD;
- stw0_fcNCB_s: DWORD;
- stw0_fcNCB_a: DWORD;
- stw0_sesstart: DWORD;
- stw0_sessfailcon: DWORD;
- stw0_sessbroke: DWORD;
- stw0_uses: DWORD;
- stw0_usefail: DWORD;
- stw0_autorec: DWORD;
- stw0_bytessent_r_lo: DWORD;
- stw0_bytessent_r_hi: DWORD;
- stw0_bytesrcvd_r_lo: DWORD;
- stw0_bytesrcvd_r_hi: DWORD;
- stw0_bytessent_s_lo: DWORD;
- stw0_bytessent_s_hi: DWORD;
- stw0_bytesrcvd_s_lo: DWORD;
- stw0_bytesrcvd_s_hi: DWORD;
- stw0_bytessent_a_lo: DWORD;
- stw0_bytessent_a_hi: DWORD;
- stw0_bytesrcvd_a_lo: DWORD;
- stw0_bytesrcvd_a_hi: DWORD;
- stw0_reqbufneed: DWORD;
- stw0_bigbufneed: DWORD;
- end;
- {$EXTERNALSYM _STAT_WORKSTATION_0}
- TStatWorkstation0 = _STAT_WORKSTATION_0;
- STAT_WORKSTATION_0 = _STAT_WORKSTATION_0;
- {$EXTERNALSYM STAT_WORKSTATION_0}
- PStatServer0 = ^TStatServer0;
- _STAT_SERVER_0 = record
- sts0_start: DWORD;
- sts0_fopens: DWORD;
- sts0_devopens: DWORD;
- sts0_jobsqueued: DWORD;
- sts0_sopens: DWORD;
- sts0_stimedout: DWORD;
- sts0_serrorout: DWORD;
- sts0_pwerrors: DWORD;
- sts0_permerrors: DWORD;
- sts0_syserrors: DWORD;
- sts0_bytessent_low: DWORD;
- sts0_bytessent_high: DWORD;
- sts0_bytesrcvd_low: DWORD;
- sts0_bytesrcvd_high: DWORD;
- sts0_avresponse: DWORD;
- sts0_reqbufneed: DWORD;
- sts0_bigbufneed: DWORD;
- end;
- {$EXTERNALSYM _STAT_SERVER_0}
- TStatServer0 = _STAT_SERVER_0;
- STAT_SERVER_0 = _STAT_SERVER_0;
- {$EXTERNALSYM STAT_SERVER_0}
- // Special Values and Constants
- const
- STATSOPT_CLR = 1;
- {$EXTERNALSYM STATSOPT_CLR}
- STATS_NO_VALUE = DWORD(-1);
- {$EXTERNALSYM STATS_NO_VALUE}
- STATS_OVERFLOW = DWORD(-2);
- {$EXTERNALSYM STATS_OVERFLOW}
- // Translated from LMAUDIT.H
- type
- PHLog = ^THLog;
- _HLOG = record
- time: DWORD;
- last_flags: DWORD;
- offset: DWORD;
- rec_offset: DWORD;
- end;
- {$EXTERNALSYM _HLOG}
- THLog = _HLOG;
- HLOG = _HLOG;
- {$EXTERNALSYM HLOG}
- const
- LOGFLAGS_FORWARD = 0;
- {$EXTERNALSYM LOGFLAGS_FORWARD}
- LOGFLAGS_BACKWARD = $1;
- {$EXTERNALSYM LOGFLAGS_BACKWARD}
- LOGFLAGS_SEEK = $2;
- {$EXTERNALSYM LOGFLAGS_SEEK}
- // Function Prototypes - Audit
- function NetAuditClear(server, backupfile, service: LPCWSTR): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetAuditClear}
- function NetAuditRead(server: LPCWSTR; service: LPCWSTR; auditloghandle: PHLog;
- offset: DWORD; reserved1: PDWORD; reserved2: DWORD; offsetflag: DWORD;
- bufptr: Pointer; prefmaxlen: DWORD; var bytesread: DWORD;
- var totalavailable: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetAuditRead}
- function NetAuditWrite(type_: DWORD; buf: Pointer; numbytes: DWORD;
- service: LPCWSTR; reserved: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetAuditWrite}
- // Data Structures - Audit
- type
- PAuditEntry = ^TAuditEntry;
- _AUDIT_ENTRY = record
- ae_len: DWORD;
- ae_reserved: DWORD;
- ae_time: DWORD;
- ae_type: DWORD;
- ae_data_offset: DWORD; //* Offset from beginning address of audit_entry */
- ae_data_size: DWORD; // byte count of ae_data area (not incl pad).
- end;
- {$EXTERNALSYM _AUDIT_ENTRY}
- TAuditEntry = _AUDIT_ENTRY;
- AUDIT_ENTRY = _AUDIT_ENTRY;
- {$EXTERNALSYM AUDIT_ENTRY}
- PAeSrvstatus = ^TAeSrvstatus;
- _AE_SRVSTATUS = record
- ae_sv_status: DWORD;
- end;
- {$EXTERNALSYM _AE_SRVSTATUS}
- TAeSrvstatus = _AE_SRVSTATUS;
- // AE_SRVSTATUS = _AE_SRVSTATUS;
- // {$EXTERNALSYM AE_SRVSTATUS}
- PAeSesslogOn = ^TAwSesslogOn;
- _AE_SESSLOGON = record
- ae_so_compname: DWORD;
- ae_so_username: DWORD;
- ae_so_privilege: DWORD;
- end;
- {$EXTERNALSYM _AE_SESSLOGON}
- TAwSesslogOn = _AE_SESSLOGON;
- // AE_SESSLOGON = _AE_SESSLOGON;
- // {$EXTERNALSYM AE_SESSLOGON}
- PAeSesslogOff = ^TAeSesslogOff;
- _AE_SESSLOGOFF = record
- ae_sf_compname: DWORD;
- ae_sf_username: DWORD;
- ae_sf_reason: DWORD;
- end;
- {$EXTERNALSYM _AE_SESSLOGOFF}
- TAeSesslogOff = _AE_SESSLOGOFF;
- // AE_SESSLOGOFF = _AE_SESSLOGOFF;
- // {$EXTERNALSYM AE_SESSLOGOFF}
- PAeSessPwErr = ^TAeSessPwErr;
- _AE_SESSPWERR = record
- ae_sp_compname: DWORD;
- ae_sp_username: DWORD;
- end;
- {$EXTERNALSYM _AE_SESSPWERR}
- TAeSessPwErr = _AE_SESSPWERR;
- // AE_SESSPWERR = _AE_SESSPWERR;
- // {$EXTERNALSYM AE_SESSPWERR}
- PAeConnStart = ^TAeConnStart;
- _AE_CONNSTART = record
- ae_ct_compname: DWORD;
- ae_ct_username: DWORD;
- ae_ct_netname: DWORD;
- ae_ct_connid: DWORD;
- end;
- {$EXTERNALSYM _AE_CONNSTART}
- TAeConnStart = _AE_CONNSTART;
- // AE_CONNSTART = _AE_CONNSTART;
- // {$EXTERNALSYM AE_CONNSTART}
- PAeConnStop = ^TAeConnStop;
- _AE_CONNSTOP = record
- ae_cp_compname: DWORD;
- ae_cp_username: DWORD;
- ae_cp_netname: DWORD;
- ae_cp_connid: DWORD;
- ae_cp_reason: DWORD;
- end;
- {$EXTERNALSYM _AE_CONNSTOP}
- TAeConnStop = _AE_CONNSTOP;
- // AE_CONNSTOP = _AE_CONNSTOP;
- // {$EXTERNALSYM AE_CONNSTOP}
- PAeConnRej = ^TAeConnRej;
- _AE_CONNREJ = record
- ae_cr_compname: DWORD;
- ae_cr_username: DWORD;
- ae_cr_netname: DWORD;
- ae_cr_reason: DWORD;
- end;
- {$EXTERNALSYM _AE_CONNREJ}
- TAeConnRej = _AE_CONNREJ;
- // AE_CONNREJ = _AE_CONNREJ;
- // {$EXTERNALSYM AE_CONNREJ}
- PAeResAccess = ^TAeResAccess;
- _AE_RESACCESS = record
- ae_ra_compname: DWORD;
- ae_ra_username: DWORD;
- ae_ra_resname: DWORD;
- ae_ra_operation: DWORD;
- ae_ra_returncode: DWORD;
- ae_ra_restype: DWORD;
- ae_ra_fileid: DWORD;
- end;
- {$EXTERNALSYM _AE_RESACCESS}
- TAeResAccess = _AE_RESACCESS;
- // AE_RESACCESS = _AE_RESACCESS;
- // {$EXTERNALSYM AE_RESACCESS}
- PAeResAccessRej = ^TAeResAccessRej;
- _AE_RESACCESSREJ = record
- ae_rr_compname: DWORD;
- ae_rr_username: DWORD;
- ae_rr_resname: DWORD;
- ae_rr_operation: DWORD;
- end;
- {$EXTERNALSYM _AE_RESACCESSREJ}
- TAeResAccessRej = _AE_RESACCESSREJ;
- // AE_RESACCESSREJ = _AE_RESACCESSREJ;
- // {$EXTERNALSYM AE_RESACCESSREJ}
- PAeCloseFile = ^TAeCloseFile;
- _AE_CLOSEFILE = record
- ae_cf_compname: DWORD;
- ae_cf_username: DWORD;
- ae_cf_resname: DWORD;
- ae_cf_fileid: DWORD;
- ae_cf_duration: DWORD;
- ae_cf_reason: DWORD;
- end;
- {$EXTERNALSYM _AE_CLOSEFILE}
- TAeCloseFile = _AE_CLOSEFILE;
- // AE_CLOSEFILE = _AE_CLOSEFILE;
- // {$EXTERNALSYM AE_CLOSEFILE}
- PAeServiceStat = ^TAeServiceStat;
- _AE_SERVICESTAT = record
- ae_ss_compname: DWORD;
- ae_ss_username: DWORD;
- ae_ss_svcname: DWORD;
- ae_ss_status: DWORD;
- ae_ss_code: DWORD;
- ae_ss_text: DWORD;
- ae_ss_returnval: DWORD;
- end;
- {$EXTERNALSYM _AE_SERVICESTAT}
- TAeServiceStat = _AE_SERVICESTAT;
- // AE_SERVICESTAT = _AE_SERVICESTAT;
- // {$EXTERNALSYM AE_SERVICESTAT}
- PAeAclMod = ^TAeAclMod;
- _AE_ACLMOD = record
- ae_am_compname: DWORD;
- ae_am_username: DWORD;
- ae_am_resname: DWORD;
- ae_am_action: DWORD;
- ae_am_datalen: DWORD;
- end;
- {$EXTERNALSYM _AE_ACLMOD}
- TAeAclMod = _AE_ACLMOD;
- // AE_ACLMOD = _AE_ACLMOD;
- // {$EXTERNALSYM AE_ACLMOD}
- PAeUasMod = ^TAeUasMod;
- _AE_UASMOD = record
- ae_um_compname: DWORD;
- ae_um_username: DWORD;
- ae_um_resname: DWORD;
- ae_um_rectype: DWORD;
- ae_um_action: DWORD;
- ae_um_datalen: DWORD;
- end;
- {$EXTERNALSYM _AE_UASMOD}
- TAeUasMod = _AE_UASMOD;
- // AE_UASMOD = _AE_UASMOD;
- // {$EXTERNALSYM AE_UASMOD}
- PAeNetLogon = ^TAeNetLogon;
- _AE_NETLOGON = record
- ae_no_compname: DWORD;
- ae_no_username: DWORD;
- ae_no_privilege: DWORD;
- ae_no_authflags: DWORD;
- end;
- {$EXTERNALSYM _AE_NETLOGON}
- TAeNetLogon = _AE_NETLOGON;
- // AE_NETLOGON = _AE_NETLOGON;
- // {$EXTERNALSYM AE_NETLOGON}
- PAeNetLogoff = ^TAeNetLogoff;
- _AE_NETLOGOFF = record
- ae_nf_compname: DWORD;
- ae_nf_username: DWORD;
- ae_nf_reserved1: DWORD;
- ae_nf_reserved2: DWORD;
- end;
- {$EXTERNALSYM _AE_NETLOGOFF}
- TAeNetLogoff = _AE_NETLOGOFF;
- // AE_NETLOGOFF = _AE_NETLOGOFF;
- // {$EXTERNALSYM AE_NETLOGOFF}
- PAeAccLim = ^TAeAccLim;
- _AE_ACCLIM = record
- ae_al_compname: DWORD;
- ae_al_username: DWORD;
- ae_al_resname: DWORD;
- ae_al_limit: DWORD;
- end;
- {$EXTERNALSYM _AE_ACCLIM}
- TAeAccLim = _AE_ACCLIM;
- // AE_ACCLIM = _AE_ACCLIM;
- // {$EXTERNALSYM AE_ACCLIM}
- const
- ACTION_LOCKOUT = 00;
- {$EXTERNALSYM ACTION_LOCKOUT}
- ACTION_ADMINUNLOCK = 01;
- {$EXTERNALSYM ACTION_ADMINUNLOCK}
- type
- PAeLockout = ^TAeLockout;
- _AE_LOCKOUT = record
- ae_lk_compname: DWORD; // Ptr to computername of client.
- ae_lk_username: DWORD; // Ptr to username of client (NULL
- // if same as computername).
- ae_lk_action: DWORD; // Action taken on account:
- // 0 means locked out, 1 means not.
- ae_lk_bad_pw_count: DWORD; // Bad password count at the time
- // of lockout.
- end;
- {$EXTERNALSYM _AE_LOCKOUT}
- TAeLockout = _AE_LOCKOUT;
- // AE_LOCKOUT = _AE_LOCKOUT;
- // {$EXTERNALSYM AE_LOCKOUT}
- PAeGeneric = ^TAeGeneric;
- _AE_GENERIC = record
- ae_ge_msgfile: DWORD;
- ae_ge_msgnum: DWORD;
- ae_ge_params: DWORD;
- ae_ge_param1: DWORD;
- ae_ge_param2: DWORD;
- ae_ge_param3: DWORD;
- ae_ge_param4: DWORD;
- ae_ge_param5: DWORD;
- ae_ge_param6: DWORD;
- ae_ge_param7: DWORD;
- ae_ge_param8: DWORD;
- ae_ge_param9: DWORD;
- end;
- {$EXTERNALSYM _AE_GENERIC}
- TAeGeneric = _AE_GENERIC;
- // AE_GENERIC = _AE_GENERIC;
- // {$EXTERNALSYM AE_GENERIC}
- // Special Values and Constants - Audit
- // Audit entry types (field ae_type in audit_entry).
- const
- AE_SRVSTATUS = 0;
- {$EXTERNALSYM AE_SRVSTATUS}
- AE_SESSLOGON = 1;
- {$EXTERNALSYM AE_SESSLOGON}
- AE_SESSLOGOFF = 2;
- {$EXTERNALSYM AE_SESSLOGOFF}
- AE_SESSPWERR = 3;
- {$EXTERNALSYM AE_SESSPWERR}
- AE_CONNSTART = 4;
- {$EXTERNALSYM AE_CONNSTART}
- AE_CONNSTOP = 5;
- {$EXTERNALSYM AE_CONNSTOP}
- AE_CONNREJ = 6;
- {$EXTERNALSYM AE_CONNREJ}
- AE_RESACCESS = 7;
- {$EXTERNALSYM AE_RESACCESS}
- AE_RESACCESSREJ = 8;
- {$EXTERNALSYM AE_RESACCESSREJ}
- AE_CLOSEFILE = 9;
- {$EXTERNALSYM AE_CLOSEFILE}
- AE_SERVICESTAT = 11;
- {$EXTERNALSYM AE_SERVICESTAT}
- AE_ACLMOD = 12;
- {$EXTERNALSYM AE_ACLMOD}
- AE_UASMOD = 13;
- {$EXTERNALSYM AE_UASMOD}
- AE_NETLOGON = 14;
- {$EXTERNALSYM AE_NETLOGON}
- AE_NETLOGOFF = 15;
- {$EXTERNALSYM AE_NETLOGOFF}
- AE_NETLOGDENIED = 16;
- {$EXTERNALSYM AE_NETLOGDENIED}
- AE_ACCLIMITEXCD = 17;
- {$EXTERNALSYM AE_ACCLIMITEXCD}
- AE_RESACCESS2 = 18;
- {$EXTERNALSYM AE_RESACCESS2}
- AE_ACLMODFAIL = 19;
- {$EXTERNALSYM AE_ACLMODFAIL}
- AE_LOCKOUT = 20;
- {$EXTERNALSYM AE_LOCKOUT}
- AE_GENERIC_TYPE = 21;
- {$EXTERNALSYM AE_GENERIC_TYPE}
- // Values for ae_ss_status field of ae_srvstatus.
- AE_SRVSTART = 0;
- {$EXTERNALSYM AE_SRVSTART}
- AE_SRVPAUSED = 1;
- {$EXTERNALSYM AE_SRVPAUSED}
- AE_SRVCONT = 2;
- {$EXTERNALSYM AE_SRVCONT}
- AE_SRVSTOP = 3;
- {$EXTERNALSYM AE_SRVSTOP}
- // Values for ae_so_privilege field of ae_sesslogon.
- AE_GUEST = 0;
- {$EXTERNALSYM AE_GUEST}
- AE_USER = 1;
- {$EXTERNALSYM AE_USER}
- AE_ADMIN = 2;
- {$EXTERNALSYM AE_ADMIN}
- // Values for various ae_XX_reason fields.
- AE_NORMAL = 0;
- {$EXTERNALSYM AE_NORMAL}
- AE_USERLIMIT = 0;
- {$EXTERNALSYM AE_USERLIMIT}
- AE_GENERAL = 0;
- {$EXTERNALSYM AE_GENERAL}
- AE_ERROR = 1;
- {$EXTERNALSYM AE_ERROR}
- AE_SESSDIS = 1;
- {$EXTERNALSYM AE_SESSDIS}
- AE_BADPW = 1;
- {$EXTERNALSYM AE_BADPW}
- AE_AUTODIS = 2;
- {$EXTERNALSYM AE_AUTODIS}
- AE_UNSHARE = 2;
- {$EXTERNALSYM AE_UNSHARE}
- AE_ADMINPRIVREQD = 2;
- {$EXTERNALSYM AE_ADMINPRIVREQD}
- AE_ADMINDIS = 3;
- {$EXTERNALSYM AE_ADMINDIS}
- AE_NOACCESSPERM = 3;
- {$EXTERNALSYM AE_NOACCESSPERM}
- AE_ACCRESTRICT = 4;
- {$EXTERNALSYM AE_ACCRESTRICT}
- AE_NORMAL_CLOSE = 0;
- {$EXTERNALSYM AE_NORMAL_CLOSE}
- AE_SES_CLOSE = 1;
- {$EXTERNALSYM AE_SES_CLOSE}
- AE_ADMIN_CLOSE = 2;
- {$EXTERNALSYM AE_ADMIN_CLOSE}
- // Values for xx_subreason fields.
- AE_LIM_UNKNOWN = 0;
- {$EXTERNALSYM AE_LIM_UNKNOWN}
- AE_LIM_LOGONHOURS = 1;
- {$EXTERNALSYM AE_LIM_LOGONHOURS}
- AE_LIM_EXPIRED = 2;
- {$EXTERNALSYM AE_LIM_EXPIRED}
- AE_LIM_INVAL_WKSTA = 3;
- {$EXTERNALSYM AE_LIM_INVAL_WKSTA}
- AE_LIM_DISABLED = 4;
- {$EXTERNALSYM AE_LIM_DISABLED}
- AE_LIM_DELETED = 5;
- {$EXTERNALSYM AE_LIM_DELETED}
- // Values for xx_action fields
- AE_MOD = 0;
- {$EXTERNALSYM AE_MOD}
- AE_DELETE = 1;
- {$EXTERNALSYM AE_DELETE}
- AE_ADD = 2;
- {$EXTERNALSYM AE_ADD}
- // Types of UAS record for um_rectype field
- AE_UAS_USER = 0;
- {$EXTERNALSYM AE_UAS_USER}
- AE_UAS_GROUP = 1;
- {$EXTERNALSYM AE_UAS_GROUP}
- AE_UAS_MODALS = 2;
- {$EXTERNALSYM AE_UAS_MODALS}
- // Bitmasks for auditing events
- //
- // The parentheses around the hex constants broke h_to_inc
- // and have been purged from the face of the earth.
- SVAUD_SERVICE = $1;
- {$EXTERNALSYM SVAUD_SERVICE}
- SVAUD_GOODSESSLOGON = $6;
- {$EXTERNALSYM SVAUD_GOODSESSLOGON}
- SVAUD_BADSESSLOGON = $18;
- {$EXTERNALSYM SVAUD_BADSESSLOGON}
- SVAUD_SESSLOGON = (SVAUD_GOODSESSLOGON or SVAUD_BADSESSLOGON);
- {$EXTERNALSYM SVAUD_SESSLOGON}
- SVAUD_GOODNETLOGON = $60;
- {$EXTERNALSYM SVAUD_GOODNETLOGON}
- SVAUD_BADNETLOGON = $180;
- {$EXTERNALSYM SVAUD_BADNETLOGON}
- SVAUD_NETLOGON = (SVAUD_GOODNETLOGON or SVAUD_BADNETLOGON);
- {$EXTERNALSYM SVAUD_NETLOGON}
- SVAUD_LOGON = (SVAUD_NETLOGON or SVAUD_SESSLOGON);
- {$EXTERNALSYM SVAUD_LOGON}
- SVAUD_GOODUSE = $600;
- {$EXTERNALSYM SVAUD_GOODUSE}
- SVAUD_BADUSE = $1800;
- {$EXTERNALSYM SVAUD_BADUSE}
- SVAUD_USE = (SVAUD_GOODUSE or SVAUD_BADUSE);
- {$EXTERNALSYM SVAUD_USE}
- SVAUD_USERLIST = $2000;
- {$EXTERNALSYM SVAUD_USERLIST}
- SVAUD_PERMISSIONS = $4000;
- {$EXTERNALSYM SVAUD_PERMISSIONS}
- SVAUD_RESOURCE = $8000;
- {$EXTERNALSYM SVAUD_RESOURCE}
- SVAUD_LOGONLIM = $00010000;
- {$EXTERNALSYM SVAUD_LOGONLIM}
- // Resource access audit bitmasks.
- AA_AUDIT_ALL = $0001;
- {$EXTERNALSYM AA_AUDIT_ALL}
- AA_A_OWNER = $0004;
- {$EXTERNALSYM AA_A_OWNER}
- AA_CLOSE = $0008;
- {$EXTERNALSYM AA_CLOSE}
- AA_S_OPEN = $0010;
- {$EXTERNALSYM AA_S_OPEN}
- AA_S_WRITE = $0020;
- {$EXTERNALSYM AA_S_WRITE}
- AA_S_CREATE = $0020;
- {$EXTERNALSYM AA_S_CREATE}
- AA_S_DELETE = $0040;
- {$EXTERNALSYM AA_S_DELETE}
- AA_S_ACL = $0080;
- {$EXTERNALSYM AA_S_ACL}
- AA_S_ALL = (AA_S_OPEN or AA_S_WRITE or AA_S_DELETE or AA_S_ACL);
- {$EXTERNALSYM AA_S_ALL}
- AA_F_OPEN = $0100;
- {$EXTERNALSYM AA_F_OPEN}
- AA_F_WRITE = $0200;
- {$EXTERNALSYM AA_F_WRITE}
- AA_F_CREATE = $0200;
- {$EXTERNALSYM AA_F_CREATE}
- AA_F_DELETE = $0400;
- {$EXTERNALSYM AA_F_DELETE}
- AA_F_ACL = $0800;
- {$EXTERNALSYM AA_F_ACL}
- AA_F_ALL = (AA_F_OPEN or AA_F_WRITE or AA_F_DELETE or AA_F_ACL);
- {$EXTERNALSYM AA_F_ALL}
- // Pinball-specific
- AA_A_OPEN = $1000;
- {$EXTERNALSYM AA_A_OPEN}
- AA_A_WRITE = $2000;
- {$EXTERNALSYM AA_A_WRITE}
- AA_A_CREATE = $2000;
- {$EXTERNALSYM AA_A_CREATE}
- AA_A_DELETE = $4000;
- {$EXTERNALSYM AA_A_DELETE}
- AA_A_ACL = $8000;
- {$EXTERNALSYM AA_A_ACL}
- AA_A_ALL = (AA_F_OPEN or AA_F_WRITE or AA_F_DELETE or AA_F_ACL);
- {$EXTERNALSYM AA_A_ALL}
- // Translated from LMJOIN.H
- // Types of name that can be validated
- type
- PNetSetupNameType = ^TNetSetupNameType;
- _NETSETUP_NAME_TYPE = DWORD;
- {$EXTERNALSYM _NETSETUP_NAME_TYPE}
- TNetSetupNameType = _NETSETUP_NAME_TYPE;
- NETSETUP_NAME_TYPE = _NETSETUP_NAME_TYPE;
- {$EXTERNALSYM NETSETUP_NAME_TYPE}
- const
- NetSetupUnknown = 0;
- NetSetupMachine = 1;
- NetSetupWorkgroup = 2;
- NetSetupDomain = 3;
- NetSetupNonExistentDomain = 4;
- NetSetupDnsMachine = 5;
- // Status of a workstation
- type
- PNetSetupJoinStatus = ^TNetSetupJoinStatus;
- _NETSETUP_JOIN_STATUS = DWORD;
- {$EXTERNALSYM _NETSETUP_JOIN_STATUS}
- TNetSetupJoinStatus = _NETSETUP_JOIN_STATUS;
- NETSETUP_JOIN_STATUS = _NETSETUP_JOIN_STATUS;
- {$EXTERNALSYM NETSETUP_JOIN_STATUS}
- const
- NetSetupUnknownStatus = 0;
- NetSetupUnjoined = 1;
- NetSetupWorkgroupName = 2;
- NetSetupDomainName = 3;
- // Flags to determine the behavior of the join/unjoin APIs
- NETSETUP_JOIN_DOMAIN = $00000001; // If not present, workgroup is joined
- {$EXTERNALSYM NETSETUP_JOIN_DOMAIN}
- NETSETUP_ACCT_CREATE = $00000002; // Do the server side account creation/rename
- {$EXTERNALSYM NETSETUP_ACCT_CREATE}
- NETSETUP_ACCT_DELETE = $00000004; // Delete the account when a domain is left
- {$EXTERNALSYM NETSETUP_ACCT_DELETE}
- NETSETUP_WIN9X_UPGRADE = $00000010; // Invoked during upgrade of Windows 9x to
- // Windows NT
- {$EXTERNALSYM NETSETUP_WIN9X_UPGRADE}
- NETSETUP_DOMAIN_JOIN_IF_JOINED = $00000020; // Allow the client to join a new domain
- // even if it is already joined to a domain
- {$EXTERNALSYM NETSETUP_DOMAIN_JOIN_IF_JOINED}
- NETSETUP_JOIN_UNSECURE = $00000040; // Performs an unsecure join
- {$EXTERNALSYM NETSETUP_JOIN_UNSECURE}
- NETSETUP_INSTALL_INVOCATION = $00040000; // The APIs were invoked during install
- {$EXTERNALSYM NETSETUP_INSTALL_INVOCATION}
- // 0x80000000 is reserved for internal use only
- // Joins a machine to the domain.
- function NetJoinDomain(lpServer, lpDomain, lpAccountOU, lpAccount,
- lpPassword: LPCWSTR; fJoinOptions: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetJoinDomain}
- function NetUnjoinDomain(lpServer, lpAccount, lpPassword: LPCWSTR;
- fUnjoinOptions: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetUnjoinDomain}
- function NetRenameMachineInDomain(lpServer, lpNewMachineName, lpAccount,
- lpPassword: LPCWSTR; fRenameOptions: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetRenameMachineInDomain}
- // Determine the validity of a name
- function NetValidateName(lpServer, lpName, lpAccount, lpPassword: LPCWSTR;
- NameType: TNetSetupNameType): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetValidateName}
- // Determines whether a workstation is joined to a domain or not
- function NetGetJoinInformation(lpServer: LPCWSTR; lpNameBuffer: LPWSTR;
- var BufferType: TNetSetupNameType): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetGetJoinInformation}
- // Determines the list of OUs that the client can create a machine account in
- function NetGetJoinableOUs(lpServer, lpDomain, lpAccount, lpPassword: LPCWSTR;
- var OUCount: DWORD; OUs: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetGetJoinableOUs}
- // Translated from LMERRLOG.H
- // Data Structures - Config
- type
- PErrorLog = ^TErrorLog;
- _ERROR_LOG = record
- el_len: DWORD;
- el_reserved: DWORD;
- el_time: DWORD;
- el_error: DWORD;
- el_name: LPWSTR; // pointer to service name
- el_text: LPWSTR; // pointer to string array
- el_data: Pointer; // pointer to BYTE array
- el_data_size: DWORD; // byte count of el_data area
- el_nstrings: DWORD; // number of strings in el_text.
- end;
- {$EXTERNALSYM _ERROR_LOG}
- TErrorLog = _ERROR_LOG;
- ERROR_LOG = _ERROR_LOG;
- {$EXTERNALSYM ERROR_LOG}
- // Function Prototypes - ErrorLog
- function NetErrorLogClear(server: LPCWSTR; backupfile: LPCWSTR;
- reserved: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetErrorLogClear}
- function NetErrorLogRead(server: LPCWSTR; reserved1: LPWSTR; errloghandle: PHLog;
- offset: DWORD; reserved2: PDWORD; reserved3: DWORD; offsetflag: DWORD;
- bufptr: Pointer; prefmaxlen: DWORD; var bytesread: DWORD;
- var totalbytes: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetErrorLogRead}
- function NetErrorLogWrite(reserved1: Pointer; code: DWORD; component: LPCWSTR;
- buffer: Pointer; numbytes: DWORD; msgbuf: Pointer; strcount: DWORD;
- reserved2: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetErrorLogWrite}
- // Special Values and Constants
- // Generic (could be used by more than one service)
- // error log messages from 0 to 25
- //
- // Do not change the comments following the manifest constants without
- // understanding how mapmsg works.
- const
- ERRLOG_BASE = 3100; //* NELOG errors start here */
- {$EXTERNALSYM ERRLOG_BASE}
- NELOG_Internal_Error = (ERRLOG_BASE + 0);
- {$EXTERNALSYM NELOG_Internal_Error}
- // The operation failed because a network software error occurred.
- NELOG_Resource_Shortage = (ERRLOG_BASE + 1);
- {$EXTERNALSYM NELOG_Resource_Shortage}
- // The system ran out of a resource controlled by the %1 option.
- NELOG_Unable_To_Lock_Segment = (ERRLOG_BASE + 2);
- {$EXTERNALSYM NELOG_Unable_To_Lock_Segment}
- // The service failed to obtain a long-term lock on the
- // segment for network control blocks (NCBs). The error code is the data.
- NELOG_Unable_To_Unlock_Segment = (ERRLOG_BASE + 3);
- {$EXTERNALSYM NELOG_Unable_To_Unlock_Segment}
- // The service failed to release the long-term lock on the
- // segment for network control blocks (NCBs). The error code is the data.
- NELOG_Uninstall_Service = (ERRLOG_BASE + 4);
- {$EXTERNALSYM NELOG_Uninstall_Service}
- // There was an error stopping service %1.
- // The error code from NetServiceControl is the data.
- NELOG_Init_Exec_Fail = (ERRLOG_BASE + 5);
- {$EXTERNALSYM NELOG_Init_Exec_Fail}
- // Initialization failed because of a system execution failure on
- // path %1. The system error code is the data.
- NELOG_Ncb_Error = (ERRLOG_BASE + 6);
- {$EXTERNALSYM NELOG_Ncb_Error}
- // An unexpected network control block (NCB) was received. The NCB is the data.
- NELOG_Net_Not_Started = (ERRLOG_BASE + 7);
- {$EXTERNALSYM NELOG_Net_Not_Started}
- // The network is not started.
- NELOG_Ioctl_Error = (ERRLOG_BASE + 8);
- {$EXTERNALSYM NELOG_Ioctl_Error}
- // A DosDevIoctl or DosFsCtl to NETWKSTA.SYS failed.
- // The data shown is in this format:
- // DWORD approx CS:IP of call to ioctl or fsctl
- // WORD error code
- // WORD ioctl or fsctl number
- NELOG_System_Semaphore = (ERRLOG_BASE + 9);
- {$EXTERNALSYM NELOG_System_Semaphore}
- // Unable to create or open system semaphore %1.
- // The error code is the data.
- NELOG_Init_OpenCreate_Err = (ERRLOG_BASE + 10);
- {$EXTERNALSYM NELOG_Init_OpenCreate_Err}
- // Initialization failed because of an open/create error on the
- // file %1. The system error code is the data.
- NELOG_NetBios = (ERRLOG_BASE + 11);
- {$EXTERNALSYM NELOG_NetBios}
- // An unexpected NetBIOS error occurred.
- // The error code is the data.
- NELOG_SMB_Illegal = (ERRLOG_BASE + 12);
- {$EXTERNALSYM NELOG_SMB_Illegal}
- // An illegal server message block (SMB) was received.
- // The SMB is the data.
- NELOG_Service_Fail = (ERRLOG_BASE + 13);
- {$EXTERNALSYM NELOG_Service_Fail}
- // Initialization failed because the requested service %1
- // could not be started.
- NELOG_Entries_Lost = (ERRLOG_BASE + 14);
- {$EXTERNALSYM NELOG_Entries_Lost}
- // Some entries in the error log were lost because of a buffer
- // overflow.
- // Server specific error log messages from 20 to 40
- NELOG_Init_Seg_Overflow = (ERRLOG_BASE + 20);
- {$EXTERNALSYM NELOG_Init_Seg_Overflow}
- // Initialization parameters controlling resource usage other
- // than net buffers are sized so that too much memory is needed.
- NELOG_Srv_No_Mem_Grow = (ERRLOG_BASE + 21);
- {$EXTERNALSYM NELOG_Srv_No_Mem_Grow}
- // The server cannot increase the size of a memory segment.
- NELOG_Access_File_Bad = (ERRLOG_BASE + 22);
- {$EXTERNALSYM NELOG_Access_File_Bad}
- // Initialization failed because account file %1 is either incorrect
- // or not present.
- NELOG_Srvnet_Not_Started = (ERRLOG_BASE + 23);
- {$EXTERNALSYM NELOG_Srvnet_Not_Started}
- // Initialization failed because network %1 was not started.
- NELOG_Init_Chardev_Err = (ERRLOG_BASE + 24);
- {$EXTERNALSYM NELOG_Init_Chardev_Err}
- // The server failed to start. Either all three chdev
- // parameters must be zero or all three must be nonzero.
- NELOG_Remote_API = (ERRLOG_BASE + 25);
- {$EXTERNALSYM NELOG_Remote_API}
- // A remote API request was halted due to the following
- // invalid description string: %1.
- NELOG_Ncb_TooManyErr = (ERRLOG_BASE + 26);
- {$EXTERNALSYM NELOG_Ncb_TooManyErr}
- // The network %1 ran out of network control blocks (NCBs). You may need to increase NCBs
- // for this network. The following information includes the
- // number of NCBs submitted by the server when this error occurred:
- NELOG_Mailslot_err = (ERRLOG_BASE + 27);
- {$EXTERNALSYM NELOG_Mailslot_err}
- // The server cannot create the %1 mailslot needed to send
- // the ReleaseMemory alert message. The error received is:
- NELOG_ReleaseMem_Alert = (ERRLOG_BASE + 28);
- {$EXTERNALSYM NELOG_ReleaseMem_Alert}
- // The server failed to register for the ReleaseMemory alert,
- // with recipient %1. The error code from
- // NetAlertStart is the data.
- NELOG_AT_cannot_write = (ERRLOG_BASE + 29);
- {$EXTERNALSYM NELOG_AT_cannot_write}
- // The server cannot update the AT schedule file. The file
- // is corrupted.
- NELOG_Cant_Make_Msg_File = (ERRLOG_BASE + 30);
- {$EXTERNALSYM NELOG_Cant_Make_Msg_File}
- // The server encountered an error when calling
- // NetIMakeLMFileName. The error code is the data.
- NELOG_Exec_Netservr_NoMem = (ERRLOG_BASE + 31);
- {$EXTERNALSYM NELOG_Exec_Netservr_NoMem}
- // Initialization failed because of a system execution failure on
- // path %1. There is not enough memory to start the process.
- // The system error code is the data.
- NELOG_Server_Lock_Failure = (ERRLOG_BASE + 32);
- {$EXTERNALSYM NELOG_Server_Lock_Failure}
- // Longterm lock of the server buffers failed.
- // Check swap disk's free space and restart the system to start the server.
- // Message service and POPUP specific error log messages from 40 to 55
- NELOG_Msg_Shutdown = (ERRLOG_BASE + 40);
- {$EXTERNALSYM NELOG_Msg_Shutdown}
- // The service has stopped due to repeated consecutive
- // occurrences of a network control block (NCB) error. The last bad NCB follows
- // in raw data.
- NELOG_Msg_Sem_Shutdown = (ERRLOG_BASE + 41);
- {$EXTERNALSYM NELOG_Msg_Sem_Shutdown}
- // The Message server has stopped due to a lock on the
- // Message server shared data segment.
- NELOG_Msg_Log_Err = (ERRLOG_BASE + 50);
- {$EXTERNALSYM NELOG_Msg_Log_Err}
- // A file system error occurred while opening or writing to the
- // system message log file %1. Message logging has been
- // switched off due to the error. The error code is the data.
- NELOG_VIO_POPUP_ERR = (ERRLOG_BASE + 51);
- {$EXTERNALSYM NELOG_VIO_POPUP_ERR}
- // Unable to display message POPUP due to system VIO call error.
- // The error code is the data.
- NELOG_Msg_Unexpected_SMB_Type = (ERRLOG_BASE + 52);
- {$EXTERNALSYM NELOG_Msg_Unexpected_SMB_Type}
- // An illegal server message block (SMB) was received. The SMB is the data.
- // Workstation specific error log messages from 60 to 75
- NELOG_Wksta_Infoseg = (ERRLOG_BASE + 60);
- {$EXTERNALSYM NELOG_Wksta_Infoseg}
- // The workstation information segment is bigger than 64K.
- // The size follows, in DWORD format:
- NELOG_Wksta_Compname = (ERRLOG_BASE + 61);
- {$EXTERNALSYM NELOG_Wksta_Compname}
- // The workstation was unable to get the name-number of the computer.
- NELOG_Wksta_BiosThreadFailure = (ERRLOG_BASE + 62);
- {$EXTERNALSYM NELOG_Wksta_BiosThreadFailure}
- // The workstation could not initialize the Async NetBIOS Thread.
- // The error code is the data.
- NELOG_Wksta_IniSeg = (ERRLOG_BASE + 63);
- {$EXTERNALSYM NELOG_Wksta_IniSeg}
- // The workstation could not open the initial shared segment.
- // The error code is the data.
- NELOG_Wksta_HostTab_Full = (ERRLOG_BASE + 64);
- {$EXTERNALSYM NELOG_Wksta_HostTab_Full}
- // The workstation host table is full.
- NELOG_Wksta_Bad_Mailslot_SMB = (ERRLOG_BASE + 65);
- {$EXTERNALSYM NELOG_Wksta_Bad_Mailslot_SMB}
- // A bad mailslot server message block (SMB) was received. The SMB is the data.
- NELOG_Wksta_UASInit = (ERRLOG_BASE + 66);
- {$EXTERNALSYM NELOG_Wksta_UASInit}
- // The workstation encountered an error while trying to start the user accounts database.
- // The error code is the data.
- NELOG_Wksta_SSIRelogon = (ERRLOG_BASE + 67);
- {$EXTERNALSYM NELOG_Wksta_SSIRelogon}
- // The workstation encountered an error while responding to an SSI revalidation request.
- // The function code and the error codes are the data.
- // Alerter service specific error log messages from 70 to 79
- NELOG_Build_Name = (ERRLOG_BASE + 70);
- {$EXTERNALSYM NELOG_Build_Name}
- // The Alerter service had a problem creating the list of
- // alert recipients. The error code is %1.
- NELOG_Name_Expansion = (ERRLOG_BASE + 71);
- {$EXTERNALSYM NELOG_Name_Expansion}
- // There was an error expanding %1 as a group name. Try
- // splitting the group into two or more smaller groups.
- NELOG_Message_Send = (ERRLOG_BASE + 72);
- {$EXTERNALSYM NELOG_Message_Send}
- // There was an error sending %2 the alert message -
- // (
- // %3 )
- // The error code is %1.
- NELOG_Mail_Slt_Err = (ERRLOG_BASE + 73);
- {$EXTERNALSYM NELOG_Mail_Slt_Err}
- // There was an error in creating or reading the alerter mailslot.
- // The error code is %1.
- NELOG_AT_cannot_read = (ERRLOG_BASE + 74);
- {$EXTERNALSYM NELOG_AT_cannot_read}
- // The server could not read the AT schedule file.
- NELOG_AT_sched_err = (ERRLOG_BASE + 75);
- {$EXTERNALSYM NELOG_AT_sched_err}
- // The server found an invalid AT schedule record.
- NELOG_AT_schedule_file_created = (ERRLOG_BASE + 76);
- {$EXTERNALSYM NELOG_AT_schedule_file_created}
- // The server could not find an AT schedule file so it created one.
- NELOG_Srvnet_NB_Open = (ERRLOG_BASE + 77);
- {$EXTERNALSYM NELOG_Srvnet_NB_Open}
- // The server could not access the %1 network with NetBiosOpen.
- NELOG_AT_Exec_Err = (ERRLOG_BASE + 78);
- {$EXTERNALSYM NELOG_AT_Exec_Err}
- // The AT command processor could not run %1.
- // Cache Lazy Write and HPFS386 specific error log messages from 80 to 89
- NELOG_Lazy_Write_Err = (ERRLOG_BASE + 80);
- {$EXTERNALSYM NELOG_Lazy_Write_Err}
- // * WARNING: Because of a lazy-write error, drive %1 now
- // * contains some corrupted data. The cache is stopped.
- NELOG_HotFix = (ERRLOG_BASE + 81);
- {$EXTERNALSYM NELOG_HotFix}
- // A defective sector on drive %1 has been replaced (hotfixed).
- // No data was lost. You should run CHKDSK soon to restore full
- // performance and replenish the volume's spare sector pool.
- //
- // The hotfix occurred while processing a remote request.
- NELOG_HardErr_From_Server = (ERRLOG_BASE + 82);
- {$EXTERNALSYM NELOG_HardErr_From_Server}
- // A disk error occurred on the HPFS volume in drive %1.
- // The error occurred while processing a remote request.
- NELOG_LocalSecFail1 = (ERRLOG_BASE + 83);
- {$EXTERNALSYM NELOG_LocalSecFail1}
- // The user accounts database (NET.ACC) is corrupted. The local security
- // system is replacing the corrupted NET.ACC with the backup
- // made at %1.
- // Any updates made to the database after this time are lost.
- NELOG_LocalSecFail2 = (ERRLOG_BASE + 84);
- {$EXTERNALSYM NELOG_LocalSecFail2}
- // The user accounts database (NET.ACC) is missing. The local
- // security system is restoring the backup database
- // made at %1.
- // Any updates made to the database made after this time are lost.
- NELOG_LocalSecFail3 = (ERRLOG_BASE + 85);
- {$EXTERNALSYM NELOG_LocalSecFail3}
- // Local security could not be started because the user accounts database
- // (NET.ACC) was missing or corrupted, and no usable backup
- // database was present.
- //
- // THE SYSTEM IS NOT SECURE.
- NELOG_LocalSecGeneralFail = (ERRLOG_BASE + 86);
- {$EXTERNALSYM NELOG_LocalSecGeneralFail}
- // Local security could not be started because an error
- // occurred during initialization. The error code returned is %1.
- //
- // THE SYSTEM IS NOT SECURE.
- // NETWKSTA.SYS specific error log messages from 90 to 99
- NELOG_NetWkSta_Internal_Error = (ERRLOG_BASE + 90);
- {$EXTERNALSYM NELOG_NetWkSta_Internal_Error}
- // A NetWksta internal error has occurred: %1
- NELOG_NetWkSta_No_Resource = (ERRLOG_BASE + 91);
- {$EXTERNALSYM NELOG_NetWkSta_No_Resource}
- // The redirector is out of a resource: %1.
- NELOG_NetWkSta_SMB_Err = (ERRLOG_BASE + 92);
- {$EXTERNALSYM NELOG_NetWkSta_SMB_Err}
- // A server message block (SMB) error occurred on the connection to %1.
- // The SMB header is the data.
- NELOG_NetWkSta_VC_Err = (ERRLOG_BASE + 93);
- {$EXTERNALSYM NELOG_NetWkSta_VC_Err}
- // A virtual circuit error occurred on the session to %1.
- // The network control block (NCB) command and return code is the data.
- NELOG_NetWkSta_Stuck_VC_Err = (ERRLOG_BASE + 94);
- {$EXTERNALSYM NELOG_NetWkSta_Stuck_VC_Err}
- // Hanging up a stuck session to %1.
- NELOG_NetWkSta_NCB_Err = (ERRLOG_BASE + 95);
- {$EXTERNALSYM NELOG_NetWkSta_NCB_Err}
- // A network control block (NCB) error occurred (%1).
- // The NCB is the data.
- NELOG_NetWkSta_Write_Behind_Err = (ERRLOG_BASE + 96);
- {$EXTERNALSYM NELOG_NetWkSta_Write_Behind_Err}
- // A write operation to %1 failed.
- // Data may have been lost.
- NELOG_NetWkSta_Reset_Err = (ERRLOG_BASE + 97);
- {$EXTERNALSYM NELOG_NetWkSta_Reset_Err}
- // Reset of driver %1 failed to complete the network control block (NCB).
- // The NCB is the data.
- NELOG_NetWkSta_Too_Many = (ERRLOG_BASE + 98);
- {$EXTERNALSYM NELOG_NetWkSta_Too_Many}
- // The amount of resource %1 requested was more
- // than the maximum. The maximum amount was allocated.
- // Spooler specific error log messages from 100 to 103
- NELOG_Srv_Thread_Failure = (ERRLOG_BASE + 104);
- {$EXTERNALSYM NELOG_Srv_Thread_Failure}
- // The server could not create a thread.
- // The THREADS parameter in the CONFIG.SYS file should be increased.
- NELOG_Srv_Close_Failure = (ERRLOG_BASE + 105);
- {$EXTERNALSYM NELOG_Srv_Close_Failure}
- // The server could not close %1.
- // The file is probably corrupted.
- NELOG_ReplUserCurDir = (ERRLOG_BASE + 106);
- {$EXTERNALSYM NELOG_ReplUserCurDir}
- // The replicator cannot update directory %1. It has tree integrity
- // and is the current directory for some process.
- NELOG_ReplCannotMasterDir = (ERRLOG_BASE + 107);
- {$EXTERNALSYM NELOG_ReplCannotMasterDir}
- // The server cannot export directory %1 to client %2.
- // It is exported from another server.
- NELOG_ReplUpdateError = (ERRLOG_BASE + 108);
- {$EXTERNALSYM NELOG_ReplUpdateError}
- // The replication server could not update directory %2 from the source
- // on %3 due to error %1.
- NELOG_ReplLostMaster = (ERRLOG_BASE + 109);
- {$EXTERNALSYM NELOG_ReplLostMaster}
- // Master %1 did not send an update notice for directory %2 at the expected
- // time.
- NELOG_NetlogonAuthDCFail = (ERRLOG_BASE + 110);
- {$EXTERNALSYM NELOG_NetlogonAuthDCFail}
- // Failed to authenticate with %2, a Windows NT domain controller for domain %1.
- NELOG_ReplLogonFailed = (ERRLOG_BASE + 111);
- {$EXTERNALSYM NELOG_ReplLogonFailed}
- // The replicator attempted to log on at %2 as %1 and failed.
- NELOG_ReplNetErr = (ERRLOG_BASE + 112);
- {$EXTERNALSYM NELOG_ReplNetErr}
- // Network error %1 occurred.
- NELOG_ReplMaxFiles = (ERRLOG_BASE + 113);
- {$EXTERNALSYM NELOG_ReplMaxFiles}
- // Replicator limit for files in a directory has been exceeded.
- NELOG_ReplMaxTreeDepth = (ERRLOG_BASE + 114);
- {$EXTERNALSYM NELOG_ReplMaxTreeDepth}
- // Replicator limit for tree depth has been exceeded.
- NELOG_ReplBadMsg = (ERRLOG_BASE + 115);
- {$EXTERNALSYM NELOG_ReplBadMsg}
- // Unrecognized message received in mailslot.
- NELOG_ReplSysErr = (ERRLOG_BASE + 116);
- {$EXTERNALSYM NELOG_ReplSysErr}
- // System error %1 occurred.
- NELOG_ReplUserLoged = (ERRLOG_BASE + 117);
- {$EXTERNALSYM NELOG_ReplUserLoged}
- // Cannot log on. User is currently logged on and argument TRYUSER
- // is set to NO.
- NELOG_ReplBadImport = (ERRLOG_BASE + 118);
- {$EXTERNALSYM NELOG_ReplBadImport}
- // IMPORT path %1 cannot be found.
- NELOG_ReplBadExport = (ERRLOG_BASE + 119);
- {$EXTERNALSYM NELOG_ReplBadExport}
- // EXPORT path %1 cannot be found.
- NELOG_ReplSignalFileErr = (ERRLOG_BASE + 120);
- {$EXTERNALSYM NELOG_ReplSignalFileErr}
- // Replicator failed to update signal file in directory %2 due to
- // %1 system error.
- NELOG_DiskFT = (ERRLOG_BASE+121);
- {$EXTERNALSYM NELOG_DiskFT}
- // Disk Fault Tolerance Error
- //
- // %1
- NELOG_ReplAccessDenied = (ERRLOG_BASE + 122);
- {$EXTERNALSYM NELOG_ReplAccessDenied}
- // Replicator could not access %2
- // on %3 due to system error %1.
- NELOG_NetlogonFailedPrimary = (ERRLOG_BASE + 123);
- {$EXTERNALSYM NELOG_NetlogonFailedPrimary}
- {*
- *The primary domain controller for domain %1 has apparently failed.
- *}
- NELOG_NetlogonPasswdSetFailed = (ERRLOG_BASE + 124);
- {$EXTERNALSYM NELOG_NetlogonPasswdSetFailed}
- // Changing machine account password for account %1 failed with
- // the following error: %n%2
- NELOG_NetlogonTrackingError = (ERRLOG_BASE + 125);
- {$EXTERNALSYM NELOG_NetlogonTrackingError}
- // An error occurred while updating the logon or logoff information for %1.
- NELOG_NetlogonSyncError = (ERRLOG_BASE + 126);
- {$EXTERNALSYM NELOG_NetlogonSyncError}
- // An error occurred while synchronizing with primary domain controller %1
- NELOG_NetlogonRequireSignOrSealError = (ERRLOG_BASE + 127);
- {$EXTERNALSYM NELOG_NetlogonRequireSignOrSealError}
- // The session setup to the Windows NT Domain Controller %1 for the domain %2
- // failed because %1 does not support signing or sealing the Netlogon
- // session.
- //
- // Either upgrade the Domain controller or set the RequireSignOrSeal
- // registry entry on this machine to 0.
- // UPS service specific error log messages from 130 to 135
- NELOG_UPS_PowerOut = (ERRLOG_BASE + 130);
- {$EXTERNALSYM NELOG_UPS_PowerOut}
- // A power failure was detected at the server.
- NELOG_UPS_Shutdown = (ERRLOG_BASE + 131);
- {$EXTERNALSYM NELOG_UPS_Shutdown}
- // The UPS service performed server shut down.
- NELOG_UPS_CmdFileError = (ERRLOG_BASE + 132);
- {$EXTERNALSYM NELOG_UPS_CmdFileError}
- // The UPS service did not complete execution of the
- // user specified shut down command file.
- NELOG_UPS_CannotOpenDriver = (ERRLOG_BASE+133);
- {$EXTERNALSYM NELOG_UPS_CannotOpenDriver}
- // The UPS driver could not be opened. The error code is
- // the data.
- NELOG_UPS_PowerBack = (ERRLOG_BASE + 134);
- {$EXTERNALSYM NELOG_UPS_PowerBack}
- // Power has been restored.
- NELOG_UPS_CmdFileConfig = (ERRLOG_BASE + 135);
- {$EXTERNALSYM NELOG_UPS_CmdFileConfig}
- // There is a problem with a configuration of user specified
- // shut down command file.
- NELOG_UPS_CmdFileExec = (ERRLOG_BASE + 136);
- {$EXTERNALSYM NELOG_UPS_CmdFileExec}
- // The UPS service failed to execute a user specified shutdown
- // command file %1. The error code is the data.
- // Remoteboot server specific error log messages are from 150 to 157
- NELOG_Missing_Parameter = (ERRLOG_BASE + 150);
- {$EXTERNALSYM NELOG_Missing_Parameter}
- // Initialization failed because of an invalid or missing
- // parameter in the configuration file %1.
- NELOG_Invalid_Config_Line = (ERRLOG_BASE + 151);
- {$EXTERNALSYM NELOG_Invalid_Config_Line}
- // Initialization failed because of an invalid line in the
- // configuration file %1. The invalid line is the data.
- NELOG_Invalid_Config_File = (ERRLOG_BASE + 152);
- {$EXTERNALSYM NELOG_Invalid_Config_File}
- // Initialization failed because of an error in the configuration
- // file %1.
- NELOG_File_Changed = (ERRLOG_BASE + 153);
- {$EXTERNALSYM NELOG_File_Changed}
- // The file %1 has been changed after initialization.
- // The boot-block loading was temporarily terminated.
- NELOG_Files_Dont_Fit = (ERRLOG_BASE + 154);
- {$EXTERNALSYM NELOG_Files_Dont_Fit}
- // The files do not fit to the boot-block configuration
- // file %1. Change the BASE and ORG definitions or the order
- // of the files.
- NELOG_Wrong_DLL_Version = (ERRLOG_BASE + 155);
- {$EXTERNALSYM NELOG_Wrong_DLL_Version}
- // Initialization failed because the dynamic-link
- // library %1 returned an incorrect version number.
- NELOG_Error_in_DLL = (ERRLOG_BASE + 156);
- {$EXTERNALSYM NELOG_Error_in_DLL}
- // There was an unrecoverable error in the dynamic- link library of the
- // service.
- NELOG_System_Error = (ERRLOG_BASE + 157);
- {$EXTERNALSYM NELOG_System_Error}
- // The system returned an unexpected error code.
- // The error code is the data.
- NELOG_FT_ErrLog_Too_Large = (ERRLOG_BASE + 158);
- {$EXTERNALSYM NELOG_FT_ErrLog_Too_Large}
- // The fault-tolerance error log file, LANROOTLOGSFT.LOG, is more than 64K.
- NELOG_FT_Update_In_Progress = (ERRLOG_BASE + 159);
- {$EXTERNALSYM NELOG_FT_Update_In_Progress}
- // The fault-tolerance error-log file, LANROOTLOGSFT.LOG, had the
- // update in progress bit set upon opening, which means that the
- // system crashed while working on the error log.
- // Microsoft has created a generic error log entry for OEMs to use to
- // log errors from OEM value added services. The code, which is the
- // 2nd arg to NetErrorLogWrite, is 3299. This value is manifest in
- // NET/H/ERRLOG.H as NELOG_OEM_Code. The text for error log entry
- // NELOG_OEM_Code is: "%1 %2 %3 %4 %5 %6 %7 %8 %9.".
- //
- // Microsoft suggests that OEMs use the insertion strings as follows:
- // %1: OEM System Name (e.g. 3+Open)
- // %2: OEM Service Name (e.g. 3+Mail)
- // %3: Severity level (e.g. error, warning, etc.)
- // %4: OEM error log entry sub-identifier (e.g. error code #)
- // %5 - % 9: Text.
- //
- // The call to NetErrorWrite must set nstrings = 9, and provide 9
- // ASCIIZ strings. If the caller does not have 9 insertion strings,
- // provide null strings for the empty insertion strings.
- NELOG_OEM_Code = (ERRLOG_BASE + 199);
- {$EXTERNALSYM NELOG_OEM_Code}
- // %1 %2 %3 %4 %5 %6 %7 %8 %9.
- // another error log range defined for NT Lanman.
- ERRLOG2_BASE= 5700; // New NT NELOG errors start here
- {$EXTERNALSYM ERRLOG2_BASE}
- NELOG_NetlogonSSIInitError = (ERRLOG2_BASE + 0);
- {$EXTERNALSYM NELOG_NetlogonSSIInitError}
- // The Netlogon service could not initialize the replication data
- // structures successfully. The service was terminated. The following
- // error occurred: %n%1
- NELOG_NetlogonFailedToUpdateTrustList = (ERRLOG2_BASE + 1);
- {$EXTERNALSYM NELOG_NetlogonFailedToUpdateTrustList}
- // The Netlogon service failed to update the domain trust list. The
- // following error occurred: %n%1
- NELOG_NetlogonFailedToAddRpcInterface = (ERRLOG2_BASE + 2);
- {$EXTERNALSYM NELOG_NetlogonFailedToAddRpcInterface}
- // The Netlogon service could not add the RPC interface. The
- // service was terminated. The following error occurred: %n%1
- NELOG_NetlogonFailedToReadMailslot = (ERRLOG2_BASE + 3);
- {$EXTERNALSYM NELOG_NetlogonFailedToReadMailslot}
- // The Netlogon service could not read a mailslot message from %1 due
- // to the following error: %n%2
- NELOG_NetlogonFailedToRegisterSC = (ERRLOG2_BASE + 4);
- {$EXTERNALSYM NELOG_NetlogonFailedToRegisterSC}
- // The Netlogon service failed to register the service with the
- // service controller. The service was terminated. The following
- // error occurred: %n%1
- NELOG_NetlogonChangeLogCorrupt = (ERRLOG2_BASE + 5);
- {$EXTERNALSYM NELOG_NetlogonChangeLogCorrupt}
- // The change log cache maintained by the Netlogon service for
- // database changes is corrupted. The Netlogon service is resetting
- // the change log.
- NELOG_NetlogonFailedToCreateShare = (ERRLOG2_BASE + 6);
- {$EXTERNALSYM NELOG_NetlogonFailedToCreateShare}
- // The Netlogon service could not create server share %1. The following
- // error occurred: %n%2
- NELOG_NetlogonDownLevelLogonFailed = (ERRLOG2_BASE + 7);
- {$EXTERNALSYM NELOG_NetlogonDownLevelLogonFailed}
- // The down-level logon request for the user %1 from %2 failed.
- NELOG_NetlogonDownLevelLogoffFailed = (ERRLOG2_BASE + 8);
- {$EXTERNALSYM NELOG_NetlogonDownLevelLogoffFailed}
- // The down-level logoff request for the user %1 from %2 failed.
- NELOG_NetlogonNTLogonFailed = (ERRLOG2_BASE + 9);
- {$EXTERNALSYM NELOG_NetlogonNTLogonFailed}
- // The Windows NT %1 logon request for the user %2%3 from %4 (via %5)
- // failed.
- NELOG_NetlogonNTLogoffFailed = (ERRLOG2_BASE + 10);
- {$EXTERNALSYM NELOG_NetlogonNTLogoffFailed}
- // The Windows NT %1 logoff request for the user %2%3 from %4
- // failed.
- NELOG_NetlogonPartialSyncCallSuccess = (ERRLOG2_BASE + 11);
- {$EXTERNALSYM NELOG_NetlogonPartialSyncCallSuccess}
- // The partial synchronization request from the server %1 completed
- // successfully. %2 changes(s) has(have) been returned to the caller.
- NELOG_NetlogonPartialSyncCallFailed = (ERRLOG2_BASE + 12);
- {$EXTERNALSYM NELOG_NetlogonPartialSyncCallFailed}
- // The partial synchronization request from the server %1 failed with
- // the following error: %n%2
- NELOG_NetlogonFullSyncCallSuccess = (ERRLOG2_BASE + 13);
- {$EXTERNALSYM NELOG_NetlogonFullSyncCallSuccess}
- // The full synchronization request from the server %1 completed
- // successfully. %2 object(s) has(have) been returned to the caller.
- NELOG_NetlogonFullSyncCallFailed = (ERRLOG2_BASE + 14);
- {$EXTERNALSYM NELOG_NetlogonFullSyncCallFailed}
- // The full synchronization request from the server %1 failed with
- // the following error: %n%2
- NELOG_NetlogonPartialSyncSuccess = (ERRLOG2_BASE + 15);
- {$EXTERNALSYM NELOG_NetlogonPartialSyncSuccess}
- // The partial synchronization replication of the %1 database from the
- // primary domain controller %2 completed successfully. %3 change(s) is(are)
- // applied to the database.
- NELOG_NetlogonPartialSyncFailed = (ERRLOG2_BASE + 16);
- {$EXTERNALSYM NELOG_NetlogonPartialSyncFailed}
- // The partial synchronization replication of the %1 database from the
- // primary domain controller %2 failed with the following error: %n%3
- NELOG_NetlogonFullSyncSuccess = (ERRLOG2_BASE + 17);
- {$EXTERNALSYM NELOG_NetlogonFullSyncSuccess}
- // The full synchronization replication of the %1 database from the
- // primary domain controller %2 completed successfully.
- NELOG_NetlogonFullSyncFailed = (ERRLOG2_BASE + 18);
- {$EXTERNALSYM NELOG_NetlogonFullSyncFailed}
- // The full synchronization replication of the %1 database from the
- // primary domain controller %2 failed with the following error: %n%3
- NELOG_NetlogonAuthNoDomainController = (ERRLOG2_BASE + 19);
- {$EXTERNALSYM NELOG_NetlogonAuthNoDomainController}
- // No Windows NT Domain Controller is available for domain %1.
- // (This event is expected and can be ignored when booting with
- // the 'No Net' Hardware Profile.) The following error occurred:%n%2
- NELOG_NetlogonAuthNoTrustLsaSecret = (ERRLOG2_BASE + 20);
- {$EXTERNALSYM NELOG_NetlogonAuthNoTrustLsaSecret}
- // The session setup to the Windows NT Domain Controller %1 for the domain %2
- // failed because the computer %3 does not have a local security database account.
- NELOG_NetlogonAuthNoTrustSamAccount = (ERRLOG2_BASE + 21);
- {$EXTERNALSYM NELOG_NetlogonAuthNoTrustSamAccount}
- // The session setup to the Windows NT Domain Controller %1 for the domain %2
- // failed because the Windows NT Domain Controller does not have an account
- // for the computer %3.
- NELOG_NetlogonServerAuthFailed = (ERRLOG2_BASE + 22);
- {$EXTERNALSYM NELOG_NetlogonServerAuthFailed}
- // The session setup from the computer %1 failed to authenticate.
- // The name of the account referenced in the security database is
- // %2. The following error occurred: %n%3
- NELOG_NetlogonServerAuthNoTrustSamAccount = (ERRLOG2_BASE + 23);
- {$EXTERNALSYM NELOG_NetlogonServerAuthNoTrustSamAccount}
- // The session setup from the computer %1 failed because there is
- // no trust account in the security database for this computer. The name of
- // the account referenced in the security database is %2.
- // General log messages for NT services.
- NELOG_FailedToRegisterSC = (ERRLOG2_BASE + 24);
- {$EXTERNALSYM NELOG_FailedToRegisterSC}
- // Could not register control handler with service controller %1.
- NELOG_FailedToSetServiceStatus = (ERRLOG2_BASE + 25);
- {$EXTERNALSYM NELOG_FailedToSetServiceStatus}
- // Could not set service status with service controller %1.
- NELOG_FailedToGetComputerName = (ERRLOG2_BASE + 26);
- {$EXTERNALSYM NELOG_FailedToGetComputerName}
- // Could not find the computer name %1.
- NELOG_DriverNotLoaded = (ERRLOG2_BASE + 27);
- {$EXTERNALSYM NELOG_DriverNotLoaded}
- // Could not load %1 device driver.
- NELOG_NoTranportLoaded = (ERRLOG2_BASE + 28);
- {$EXTERNALSYM NELOG_NoTranportLoaded}
- // Could not load any transport.
- // More Netlogon service events
- NELOG_NetlogonFailedDomainDelta = (ERRLOG2_BASE + 29);
- {$EXTERNALSYM NELOG_NetlogonFailedDomainDelta}
- // Replication of the %1 Domain Object "%2" from primary domain controller
- // %3 failed with the following error: %n%4
- NELOG_NetlogonFailedGlobalGroupDelta = (ERRLOG2_BASE + 30);
- {$EXTERNALSYM NELOG_NetlogonFailedGlobalGroupDelta}
- // Replication of the %1 Global Group "%2" from primary domain controller
- // %3 failed with the following error: %n%4
- NELOG_NetlogonFailedLocalGroupDelta = (ERRLOG2_BASE + 31);
- {$EXTERNALSYM NELOG_NetlogonFailedLocalGroupDelta}
- // Replication of the %1 Local Group "%2" from primary domain controller
- // %3 failed with the following error: %n%4
- NELOG_NetlogonFailedUserDelta = (ERRLOG2_BASE + 32);
- {$EXTERNALSYM NELOG_NetlogonFailedUserDelta}
- // Replication of the %1 User "%2" from primary domain controller
- // %3 failed with the following error: %n%4
- NELOG_NetlogonFailedPolicyDelta = (ERRLOG2_BASE + 33);
- {$EXTERNALSYM NELOG_NetlogonFailedPolicyDelta}
- // Replication of the %1 Policy Object "%2" from primary domain controller
- // %3 failed with the following error: %n%4
- NELOG_NetlogonFailedTrustedDomainDelta = (ERRLOG2_BASE + 34);
- {$EXTERNALSYM NELOG_NetlogonFailedTrustedDomainDelta}
- // Replication of the %1 Trusted Domain Object "%2" from primary domain controller
- // %3 failed with the following error: %n%4
- NELOG_NetlogonFailedAccountDelta = (ERRLOG2_BASE + 35);
- {$EXTERNALSYM NELOG_NetlogonFailedAccountDelta}
- // Replication of the %1 Account Object "%2" from primary domain controller
- // %3 failed with the following error: %n%4
- NELOG_NetlogonFailedSecretDelta = (ERRLOG2_BASE + 36);
- {$EXTERNALSYM NELOG_NetlogonFailedSecretDelta}
- // Replication of the %1 Secret "%2" from primary domain controller
- // %3 failed with the following error: %n%4
- NELOG_NetlogonSystemError = (ERRLOG2_BASE + 37);
- {$EXTERNALSYM NELOG_NetlogonSystemError}
- // The system returned the following unexpected error code: %n%1
- NELOG_NetlogonDuplicateMachineAccounts = (ERRLOG2_BASE + 38);
- {$EXTERNALSYM NELOG_NetlogonDuplicateMachineAccounts}
- // Netlogon has detected two machine accounts for server "%1".
- // The server can be either a Windows NT Server that is a member of the
- // domain or the server can be a LAN Manager server with an account in the
- // SERVERS global group. It cannot be both.
- NELOG_NetlogonTooManyGlobalGroups = (ERRLOG2_BASE + 39);
- {$EXTERNALSYM NELOG_NetlogonTooManyGlobalGroups}
- // This domain has more global groups than can be replicated to a LanMan
- // BDC. Either delete some of your global groups or remove the LanMan
- // BDCs from the domain.
- NELOG_NetlogonBrowserDriver = (ERRLOG2_BASE + 40);
- {$EXTERNALSYM NELOG_NetlogonBrowserDriver}
- // The Browser driver returned the following error to Netlogon: %n%1
- NELOG_NetlogonAddNameFailure = (ERRLOG2_BASE + 41);
- {$EXTERNALSYM NELOG_NetlogonAddNameFailure}
- // Netlogon could not register the %1<1B> name for the following reason: %n%2
- // More Remoteboot service events.
- NELOG_RplMessages = (ERRLOG2_BASE + 42);
- {$EXTERNALSYM NELOG_RplMessages}
- // Service failed to retrieve messages needed to boot remote boot clients.
- NELOG_RplXnsBoot = (ERRLOG2_BASE + 43);
- {$EXTERNALSYM NELOG_RplXnsBoot}
- // Service experienced a severe error and can no longer provide remote boot
- // for 3Com 3Start remote boot clients.
- NELOG_RplSystem = (ERRLOG2_BASE + 44);
- {$EXTERNALSYM NELOG_RplSystem}
- // Service experienced a severe system error and will shut itself down.
- NELOG_RplWkstaTimeout = (ERRLOG2_BASE + 45);
- {$EXTERNALSYM NELOG_RplWkstaTimeout}
- // Client with computer name %1 failed to acknowledge receipt of the
- // boot data. Remote boot of this client was not completed.
- NELOG_RplWkstaFileOpen = (ERRLOG2_BASE + 46);
- {$EXTERNALSYM NELOG_RplWkstaFileOpen}
- // Client with computer name %1 was not booted due to an error in opening
- // file %2.
- NELOG_RplWkstaFileRead = (ERRLOG2_BASE + 47);
- {$EXTERNALSYM NELOG_RplWkstaFileRead}
- // Client with computer name %1 was not booted due to an error in reading
- // file %2.
- NELOG_RplWkstaMemory = (ERRLOG2_BASE + 48);
- {$EXTERNALSYM NELOG_RplWkstaMemory}
- // Client with computer name %1 was not booted due to insufficent memory
- // at the remote boot server.
- NELOG_RplWkstaFileChecksum = (ERRLOG2_BASE + 49);
- {$EXTERNALSYM NELOG_RplWkstaFileChecksum}
- // Client with computer name %1 will be booted without using checksums
- // because checksum for file %2 could not be calculated.
- NELOG_RplWkstaFileLineCount = (ERRLOG2_BASE + 50);
- {$EXTERNALSYM NELOG_RplWkstaFileLineCount}
- // Client with computer name %1 was not booted due to too many lines in
- // file %2.
- NELOG_RplWkstaBbcFile = (ERRLOG2_BASE + 51);
- {$EXTERNALSYM NELOG_RplWkstaBbcFile}
- // Client with computer name %1 was not booted because the boot block
- // configuration file %2 for this client does not contain boot block
- // line and/or loader line.
- NELOG_RplWkstaFileSize = (ERRLOG2_BASE + 52);
- {$EXTERNALSYM NELOG_RplWkstaFileSize}
- // Client with computer name %1 was not booted due to a bad size of
- // file %2.
- NELOG_RplWkstaInternal = (ERRLOG2_BASE + 53);
- {$EXTERNALSYM NELOG_RplWkstaInternal}
- // Client with computer name %1 was not booted due to remote boot
- // service internal error.
- NELOG_RplWkstaWrongVersion = (ERRLOG2_BASE + 54);
- {$EXTERNALSYM NELOG_RplWkstaWrongVersion}
- // Client with computer name %1 was not booted because file %2 has an
- // invalid boot header.
- NELOG_RplWkstaNetwork = (ERRLOG2_BASE + 55);
- {$EXTERNALSYM NELOG_RplWkstaNetwork}
- // Client with computer name %1 was not booted due to network error.
- NELOG_RplAdapterResource = (ERRLOG2_BASE + 56);
- {$EXTERNALSYM NELOG_RplAdapterResource}
- // Client with adapter id %1 was not booted due to lack of resources.
- NELOG_RplFileCopy = (ERRLOG2_BASE + 57);
- {$EXTERNALSYM NELOG_RplFileCopy}
- // Service experienced error copying file or directory %1.
- NELOG_RplFileDelete = (ERRLOG2_BASE + 58);
- {$EXTERNALSYM NELOG_RplFileDelete}
- // Service experienced error deleting file or directory %1.
- NELOG_RplFilePerms = (ERRLOG2_BASE + 59);
- {$EXTERNALSYM NELOG_RplFilePerms}
- // Service experienced error setting permissions on file or directory %1.
- NELOG_RplCheckConfigs = (ERRLOG2_BASE + 60);
- {$EXTERNALSYM NELOG_RplCheckConfigs}
- // Service experienced error evaluating RPL configurations.
- NELOG_RplCreateProfiles = (ERRLOG2_BASE + 61);
- {$EXTERNALSYM NELOG_RplCreateProfiles}
- // Service experienced error creating RPL profiles for all configurations.
- NELOG_RplRegistry = (ERRLOG2_BASE + 62);
- {$EXTERNALSYM NELOG_RplRegistry}
- // Service experienced error accessing registry.
- NELOG_RplReplaceRPLDISK = (ERRLOG2_BASE + 63);
- {$EXTERNALSYM NELOG_RplReplaceRPLDISK}
- // Service experienced error replacing possibly outdated RPLDISK.SYS.
- NELOG_RplCheckSecurity = (ERRLOG2_BASE + 64);
- {$EXTERNALSYM NELOG_RplCheckSecurity}
- // Service experienced error adding security accounts or setting
- // file permissions. These accounts are the RPLUSER local group
- // and the user accounts for the individual RPL workstations.
- NELOG_RplBackupDatabase = (ERRLOG2_BASE + 65);
- {$EXTERNALSYM NELOG_RplBackupDatabase}
- // Service failed to back up its database.
- NELOG_RplInitDatabase = (ERRLOG2_BASE + 66);
- {$EXTERNALSYM NELOG_RplInitDatabase}
- // Service failed to initialize from its database. The database may be
- // missing or corrupted. Service will attempt restoring the database
- // from the backup.
- NELOG_RplRestoreDatabaseFailure = (ERRLOG2_BASE + 67);
- {$EXTERNALSYM NELOG_RplRestoreDatabaseFailure}
- // Service failed to restore its database from the backup. Service
- // will not start.
- NELOG_RplRestoreDatabaseSuccess = (ERRLOG2_BASE + 68);
- {$EXTERNALSYM NELOG_RplRestoreDatabaseSuccess}
- // Service sucessfully restored its database from the backup.
- NELOG_RplInitRestoredDatabase = (ERRLOG2_BASE + 69);
- {$EXTERNALSYM NELOG_RplInitRestoredDatabase}
- // Service failed to initialize from its restored database. Service
- // will not start.
- // More Netlogon and RPL service events
- NELOG_NetlogonSessionTypeWrong = (ERRLOG2_BASE + 70);
- {$EXTERNALSYM NELOG_NetlogonSessionTypeWrong}
- // The session setup to the Windows NT Domain Controller %1 from computer
- // %2 using account %4 failed. %2 is declared to be a BDC in domain %3.
- // However, %2 tried to connect as either a DC in a trusted domain,
- // a member workstation in domain %3, or as a server in domain %3.
- // Use the Server Manager to remove the BDC account for %2.
- NELOG_RplUpgradeDBTo40 = (ERRLOG2_BASE + 71);
- {$EXTERNALSYM NELOG_RplUpgradeDBTo40}
- // The Remoteboot database was in NT 3.5 / NT 3.51 format and NT is
- // attempting to convert it to NT 4.0 format. The JETCONV converter
- // will write to the Application event log when it is finished.
- NELOG_NetlogonLanmanBdcsNotAllowed = (ERRLOG2_BASE + 72);
- {$EXTERNALSYM NELOG_NetlogonLanmanBdcsNotAllowed}
- // Global group SERVERS exists in domain %1 and has members.
- // This group defines Lan Manager BDCs in the domain.
- // Lan Manager BDCs are not permitted in NT domains.
- NELOG_NetlogonNoDynamicDns = (ERRLOG2_BASE + 73);
- {$EXTERNALSYM NELOG_NetlogonNoDynamicDns}
- // The DNS server for this DC does not support dynamic DNS.
- // Add the DNS records from the file '%SystemRoot%System32Confignetlogon.dns'
- // to the DNS server serving the domain referenced in that file.
- NELOG_NetlogonDynamicDnsRegisterFailure = (ERRLOG2_BASE + 74);
- {$EXTERNALSYM NELOG_NetlogonDynamicDnsRegisterFailure}
- // Registration of the DNS record '%1' failed with the following error: %n%2
- NELOG_NetlogonDynamicDnsDeregisterFailure = (ERRLOG2_BASE + 75);
- {$EXTERNALSYM NELOG_NetlogonDynamicDnsDeregisterFailure}
- // Deregistration of the DNS record '%1' failed with the following error: %n%2
- NELOG_NetlogonFailedFileCreate = (ERRLOG2_BASE + 76);
- {$EXTERNALSYM NELOG_NetlogonFailedFileCreate}
- // Failed to create/open file %1 with the following error: %n%2
- NELOG_NetlogonGetSubnetToSite = (ERRLOG2_BASE + 77);
- {$EXTERNALSYM NELOG_NetlogonGetSubnetToSite}
- // Netlogon got the following error while trying to get the subnet to site
- // mapping information from the DS: %n%1
- NELOG_NetlogonNoSiteForClient = (ERRLOG2_BASE + 78);
- {$EXTERNALSYM NELOG_NetlogonNoSiteForClient}
- // '%1' tried to determine its site by looking up its IP address ('%2')
- // in the ConfigurationSitesSubnets container in the DS. No subnet matched
- // the IP address. Consider adding a subnet object for this IP address.
- NELOG_NetlogonBadSiteName = (ERRLOG2_BASE + 79);
- {$EXTERNALSYM NELOG_NetlogonBadSiteName}
- // The site name for this computer is '%1'. That site name is not a valid
- // site name. A site name must be a valid DNS label.
- // Rename the site to be a valid name.
- NELOG_NetlogonBadSubnetName = (ERRLOG2_BASE + 80);
- {$EXTERNALSYM NELOG_NetlogonBadSubnetName}
- // The subnet object '%1' appears in the ConfigurationSitesSubnets
- // container in the DS. The name is not syntactically valid. The valid
- // syntax is xx.xx.xx.xx/yy where xx.xx.xx.xx is a valid IP subnet number
- // and yy is the number of bits in the subnet mask.
- //
- // Correct the name of the subnet object.
- NELOG_NetlogonDynamicDnsServerFailure = (ERRLOG2_BASE + 81);
- {$EXTERNALSYM NELOG_NetlogonDynamicDnsServerFailure}
- // Dynamic registration or deregistration of one or more DNS records failed because no DNS servers are available.
- NELOG_NetlogonDynamicDnsFailure = (ERRLOG2_BASE + 82);
- {$EXTERNALSYM NELOG_NetlogonDynamicDnsFailure}
- // Dynamic registration or deregistration of one or more DNS records failed with the following error: %n%1
- NELOG_NetlogonRpcCallCancelled = (ERRLOG2_BASE + 83);
- {$EXTERNALSYM NELOG_NetlogonRpcCallCancelled}
- // The session setup to the Windows NT Domain Controller %1 for the domain %2
- // is not responsive. The current RPC call from Netlogon on \%3 to %1 has been cancelled.
- NELOG_NetlogonDcSiteCovered = (ERRLOG2_BASE + 84);
- {$EXTERNALSYM NELOG_NetlogonDcSiteCovered}
- // Site '%2' does not have any Domain Controllers for domain '%3'.
- // Domain Controllers in site '%1' have been automatically
- // selected to cover site '%2' based on configured Directory Server
- // replication costs.
- NELOG_NetlogonDcSiteNotCovered = (ERRLOG2_BASE + 85);
- {$EXTERNALSYM NELOG_NetlogonDcSiteNotCovered}
- // This Domain Controller no longer automatically covers site '%1'.
- NELOG_NetlogonGcSiteCovered = (ERRLOG2_BASE + 86);
- {$EXTERNALSYM NELOG_NetlogonGcSiteCovered}
- // Site '%2' does not have any Global Catalog servers.
- // Global Catalog servers in site '%1' have been automatically
- // selected to cover site '%2' based on configured Directory Server
- // replication costs.
- NELOG_NetlogonGcSiteNotCovered = (ERRLOG2_BASE + 87);
- {$EXTERNALSYM NELOG_NetlogonGcSiteNotCovered}
- // This Global Catalog server no longer automatically covers site '%1'.
- NELOG_NetlogonFailedSpnUpdate = (ERRLOG2_BASE + 88);
- {$EXTERNALSYM NELOG_NetlogonFailedSpnUpdate}
- // Attemp to update Service Principal Name (SPN) of the computer object
- // in Active Directory failed. The following error occurred: %n%1
- NELOG_NetlogonFailedDnsHostNameUpdate = (ERRLOG2_BASE + 89);
- {$EXTERNALSYM NELOG_NetlogonFailedDnsHostNameUpdate}
- // Attemp to update DNS Host Name of the computer object
- // in Active Directory failed. The following error occurred: %n%1
- // Translated from LMAT.H
- // The following bits are used with Flags field in structures below.
- // Do we exec programs for this job periodically (/EVERY switch)
- // or one time (/NEXT switch).
- const
- {$EXTERNALSYM JOB_RUN_PERIODICALLY}
- JOB_RUN_PERIODICALLY = $01; // set if EVERY
- // Was there an error last time we tried to exec a program on behalf of
- // this job.
- // This flag is meaningfull on output only!
- {$EXTERNALSYM JOB_EXEC_ERROR}
- JOB_EXEC_ERROR = $02; // set if error
- // Will this job run today or tomorrow.
- // This flag is meaningfull on output only!
- {$EXTERNALSYM JOB_RUNS_TODAY}
- JOB_RUNS_TODAY = $04; // set if today
- // Add current day of the month to DaysOfMonth input.
- // This flag is meaningfull on input only!
- {$EXTERNALSYM JOB_ADD_CURRENT_DATE}
- JOB_ADD_CURRENT_DATE = $08; // set if to add current date
- // Will this job be run interactively or not. Windows NT 3.1 do not
- // know about this bit, i.e. they submit interactive jobs only.
- {$EXTERNALSYM JOB_NONINTERACTIVE}
- JOB_NONINTERACTIVE = $10; // set for noninteractive
- {$EXTERNALSYM JOB_INPUT_FLAGS}
- JOB_INPUT_FLAGS = JOB_RUN_PERIODICALLY or JOB_ADD_CURRENT_DATE or
- JOB_NONINTERACTIVE;
- {$EXTERNALSYM JOB_OUTPUT_FLAGS}
- JOB_OUTPUT_FLAGS = JOB_RUN_PERIODICALLY or JOB_EXEC_ERROR or JOB_RUNS_TODAY or
- JOB_NONINTERACTIVE;
- type
- PAtInfo = ^TAtInfo;
- {$EXTERNALSYM _AT_INFO}
- _AT_INFO = record
- JobTime: DWORD;
- DaysOfMonth: DWORD;
- DaysOfWeek: UCHAR;
- Flags: UCHAR;
- Command: LPWSTR;
- end;
- TAtInfo = _AT_INFO;
- {$EXTERNALSYM AT_INFO}
- AT_INFO = _AT_INFO;
- PAtEnum = ^TAtEnum;
- {$EXTERNALSYM _AT_ENUM}
- _AT_ENUM = record
- JobId: DWORD;
- JobTime: DWORD;
- DaysOfMonth: DWORD;
- DaysOfWeek: UCHAR;
- Flags: UCHAR;
- Command: LPWSTR;
- end;
- TAtEnum = _AT_ENUM;
- {$EXTERNALSYM AT_ENUM}
- AT_ENUM = _AT_ENUM;
- {$EXTERNALSYM NetScheduleJobAdd}
- function NetScheduleJobAdd(Servername: LPCWSTR; Buffer: Pointer;
- var JobId: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetScheduleJobDel}
- function NetScheduleJobDel(Servername: LPCWSTR; MinJobId: DWORD;
- MaxJobId: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetScheduleJobEnum}
- function NetScheduleJobEnum( Servername: LPCWSTR; PointerToBuffer: Pointer;
- PrefferedMaximumLength: DWORD; var EntriesRead: DWORD; var TotalEntries: DWORD;
- ResumeHandle: PDWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetScheduleJobGetInfo}
- function NetScheduleJobGetInfo(Servername: LPCWSTR; JobId: DWORD;
- PointerToBuffer: Pointer): NET_API_STATUS; stdcall;
- // Translated from LMBROWSR.H
- type
- PBrowserStatistics = ^TBrowserStatistics;
- _BROWSER_STATISTICS = record
- StatisticsStartTime: LARGE_INTEGER;
- NumberOfServerAnnouncements: LARGE_INTEGER;
- NumberOfDomainAnnouncements: LARGE_INTEGER;
- NumberOfElectionPackets: ULONG;
- NumberOfMailslotWrites: ULONG;
- NumberOfGetBrowserServerListRequests: ULONG;
- NumberOfServerEnumerations: ULONG;
- NumberOfDomainEnumerations: ULONG;
- NumberOfOtherEnumerations: ULONG;
- NumberOfMissedServerAnnouncements: ULONG;
- NumberOfMissedMailslotDatagrams: ULONG;
- NumberOfMissedGetBrowserServerListRequests: ULONG;
- NumberOfFailedServerAnnounceAllocations: ULONG;
- NumberOfFailedMailslotAllocations: ULONG;
- NumberOfFailedMailslotReceives: ULONG;
- NumberOfFailedMailslotWrites: ULONG;
- NumberOfFailedMailslotOpens: ULONG;
- NumberOfDuplicateMasterAnnouncements: ULONG;
- NumberOfIllegalDatagrams: LARGE_INTEGER;
- end;
- {$EXTERNALSYM _BROWSER_STATISTICS}
- TBrowserStatistics = _BROWSER_STATISTICS;
- BROWSER_STATISTICS = _BROWSER_STATISTICS;
- {$EXTERNALSYM BROWSER_STATISTICS}
- PBrowserStatistics100 = ^TBrowserStatistics100;
- _BROWSER_STATISTICS_100 = record
- StartTime: LARGE_INTEGER;
- NumberOfServerAnnouncements: LARGE_INTEGER;
- NumberOfDomainAnnouncements: LARGE_INTEGER;
- NumberOfElectionPackets: ULONG;
- NumberOfMailslotWrites: ULONG;
- NumberOfGetBrowserServerListRequests: ULONG;
- NumberOfIllegalDatagrams: LARGE_INTEGER;
- end;
- {$EXTERNALSYM _BROWSER_STATISTICS_100}
- TBrowserStatistics100 = _BROWSER_STATISTICS_100;
- BROWSER_STATISTICS_100 = _BROWSER_STATISTICS_100;
- {$EXTERNALSYM BROWSER_STATISTICS_100}
- PBrowserStatistics101 = ^TBrowserStatistics101;
- _BROWSER_STATISTICS_101 = record
- StartTime: LARGE_INTEGER;
- NumberOfServerAnnouncements: LARGE_INTEGER;
- NumberOfDomainAnnouncements: LARGE_INTEGER;
- NumberOfElectionPackets: ULONG;
- NumberOfMailslotWrites: ULONG;
- NumberOfGetBrowserServerListRequests: ULONG;
- NumberOfIllegalDatagrams: LARGE_INTEGER;
- NumberOfMissedServerAnnouncements: ULONG;
- NumberOfMissedMailslotDatagrams: ULONG;
- NumberOfMissedGetBrowserServerListRequests: ULONG;
- NumberOfFailedServerAnnounceAllocations: ULONG;
- NumberOfFailedMailslotAllocations: ULONG;
- NumberOfFailedMailslotReceives: ULONG;
- NumberOfFailedMailslotWrites: ULONG;
- NumberOfFailedMailslotOpens: ULONG;
- NumberOfDuplicateMasterAnnouncements: ULONG;
- end;
- {$EXTERNALSYM _BROWSER_STATISTICS_101}
- TBrowserStatistics101 = _BROWSER_STATISTICS_101;
- BROWSER_STATISTICS_101 = _BROWSER_STATISTICS_101;
- {$EXTERNALSYM BROWSER_STATISTICS_101}
- PBrowserEmulatedDomain = ^TBrowserEmulatedDomain;
- _BROWSER_EMULATED_DOMAIN = record
- DomainName: LPWSTR;
- EmulatedServerName: LPWSTR;
- Role: DWORD;
- end;
- {$EXTERNALSYM _BROWSER_EMULATED_DOMAIN}
- TBrowserEmulatedDomain = _BROWSER_EMULATED_DOMAIN;
- BROWSER_EMULATED_DOMAIN = _BROWSER_EMULATED_DOMAIN;
- {$EXTERNALSYM BROWSER_EMULATED_DOMAIN}
- // Function Prototypes - BROWSER
- function I_BrowserServerEnum(servername, transport, clientname: LPCWSTR;
- level: DWORD; bufptr: Pointer; prefmaxlen: DWORD; var entriesread: DWORD;
- var totalentries: DWORD; servertype: DWORD; domain: LPCWSTR;
- resume_handle: PDWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM I_BrowserServerEnum}
- function I_BrowserServerEnumEx(servername, transport, clientname: LPCWSTR;
- level: DWORD; bufptr: Pointer; prefmaxlen: DWORD; var entriesread: DWORD;
- var totalentries: DWORD; servertype: DWORD; domain: LPCWSTR;
- FirstNameToReturn: LPCWSTR): NET_API_STATUS; stdcall;
- {$EXTERNALSYM I_BrowserServerEnumEx}
- function I_BrowserQueryOtherDomains(servername: LPCWSTR; bufptr: Pointer;
- var entriesread: DWORD; var totalentries: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM I_BrowserQueryOtherDomains}
- function I_BrowserResetNetlogonState(servername: LPCWSTR): NET_API_STATUS; stdcall;
- {$EXTERNALSYM I_BrowserResetNetlogonState}
- function I_BrowserSetNetlogonState(ServerName, DomainName, EmulatedServerName: LPWSTR;
- Role: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM I_BrowserSetNetlogonState}
- const
- BROWSER_ROLE_PDC = $1;
- {$EXTERNALSYM BROWSER_ROLE_PDC}
- BROWSER_ROLE_BDC = $2;
- {$EXTERNALSYM BROWSER_ROLE_BDC}
- function I_BrowserQueryEmulatedDomains(ServerName: LPWSTR;
- var EmulatedDomains: TBrowserEmulatedDomain;
- var EntriesRead: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM I_BrowserQueryEmulatedDomains}
- function I_BrowserQueryStatistics(servername: LPCWSTR;
- var statistics: TBrowserStatistics): NET_API_STATUS; stdcall;
- {$EXTERNALSYM I_BrowserQueryStatistics}
- function I_BrowserResetStatistics(servername: LPCWSTR): NET_API_STATUS; stdcall;
- {$EXTERNALSYM I_BrowserResetStatistics}
- function I_BrowserServerEnumForXactsrv(TransportName, ClientName: LPCWSTR;
- NtLevel: ULONG; ClientLevel: Word; Buffer: Pointer; BufferLength: WORD;
- PreferedMaximumLength: DWORD; var EntriesRead: DWORD; var TotalEntries: DWORD;
- ServerType: DWORD; Domain: LPCWSTR; FirstNameToReturn: LPCWSTR;
- Converter: PWord): Word; stdcall;
- {$EXTERNALSYM I_BrowserServerEnumForXactsrv}
- function I_BrowserDebugTrace(Server: PWideChar; Buffer: PChar): NET_API_STATUS; stdcall;
- {$EXTERNALSYM I_BrowserDebugTrace}
- // Translated from LMCHDEV.H
- // CharDev Class
- // Function Prototypes - CharDev
- function NetCharDevEnum(servername: LPCWSTR; level: DWORD; bufptr: Pointer;
- prefmaxlen: DWORD; var entriesread: DWORD; var totalentries: DWORD;
- resume_handle: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetCharDevEnum}
- function NetCharDevGetInfo(servername: LPCWSTR; devname: LPCWSTR;
- level: DWORD; bufptr: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetCharDevGetInfo}
- function NetCharDevControl(servername: LPCWSTR; devname: LPCWSTR;
- opcode: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetCharDevControl}
- // Data Structures - CharDev
- type
- PChardevInfo0 = ^TChardevInfo0;
- _CHARDEV_INFO_0 = record
- ch0_dev: LPWSTR;
- end;
- {$EXTERNALSYM _CHARDEV_INFO_0}
- TChardevInfo0 = _CHARDEV_INFO_0;
- CHARDEV_INFO_0 = _CHARDEV_INFO_0;
- {$EXTERNALSYM CHARDEV_INFO_0}
- PChardevInfo1 = ^TChardevInfo1;
- _CHARDEV_INFO_1 = record
- ch1_dev: LPWSTR;
- ch1_status: DWORD;
- ch1_username: LPWSTR;
- ch1_time: DWORD;
- end;
- {$EXTERNALSYM _CHARDEV_INFO_1}
- TChardevInfo1 = _CHARDEV_INFO_1;
- CHARDEV_INFO_1 = _CHARDEV_INFO_1;
- {$EXTERNALSYM CHARDEV_INFO_1}
- // CharDevQ Class
- // Function Prototypes - CharDevQ
- function NetCharDevQEnum(servername: LPCWSTR; username: LPCWSTR; level: DWORD;
- bufptr: Pointer; prefmaxlen: DWORD; var entriesread: DWORD;
- var totalentries: DWORD; resume_handle: PDWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetCharDevQEnum}
- function NetCharDevQGetInfo(servername, queuename, username: LPCWSTR;
- level: DWORD; bufptr: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetCharDevQGetInfo}
- function NetCharDevQSetInfo(servername, queuename: LPCWSTR; level: DWORD;
- buf: Pointer; parm_err: PDWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetCharDevQSetInfo}
- function NetCharDevQPurge(servername, queuename: LPCWSTR): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetCharDevQPurge}
- function NetCharDevQPurgeSelf(servername, queuename, computername: LPCWSTR): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetCharDevQPurgeSelf}
- // Data Structures - CharDevQ
- type
- PChardevqInfo0 = ^TChardevqInfo0;
- _CHARDEVQ_INFO_0 = record
- cq0_dev: LPWSTR;
- end;
- {$EXTERNALSYM _CHARDEVQ_INFO_0}
- TChardevqInfo0 = _CHARDEVQ_INFO_0;
- CHARDEVQ_INFO_0 = _CHARDEVQ_INFO_0;
- {$EXTERNALSYM CHARDEVQ_INFO_0}
- PChardevqInfo1 = ^TChardevqInfo1;
- _CHARDEVQ_INFO_1 = record
- cq1_dev: LPWSTR;
- cq1_priority: DWORD;
- cq1_devs: LPWSTR;
- cq1_numusers: DWORD;
- cq1_numahead: DWORD;
- end;
- {$EXTERNALSYM _CHARDEVQ_INFO_1}
- TChardevqInfo1 = _CHARDEVQ_INFO_1;
- CHARDEVQ_INFO_1 = _CHARDEVQ_INFO_1;
- {$EXTERNALSYM CHARDEVQ_INFO_1}
- PChardevqInfo1002 = ^TChardevqInfo1002;
- _CHARDEVQ_INFO_1002 = record
- cq1002_priority: DWORD;
- end;
- {$EXTERNALSYM _CHARDEVQ_INFO_1002}
- TChardevqInfo1002 = _CHARDEVQ_INFO_1002;
- CHARDEVQ_INFO_1002 = _CHARDEVQ_INFO_1002;
- {$EXTERNALSYM CHARDEVQ_INFO_1002}
- PChardevqInfo1003 = ^TChardevqInfo1003;
- _CHARDEVQ_INFO_1003 = record
- cq1003_devs: LPWSTR;
- end;
- {$EXTERNALSYM _CHARDEVQ_INFO_1003}
- TChardevqInfo1003 = _CHARDEVQ_INFO_1003;
- CHARDEVQ_INFO_1003 = _CHARDEVQ_INFO_1003;
- {$EXTERNALSYM CHARDEVQ_INFO_1003}
- // Bits for chardev_info_1 field ch1_status.
- const
- CHARDEV_STAT_OPENED = $02;
- {$EXTERNALSYM CHARDEV_STAT_OPENED}
- CHARDEV_STAT_ERROR = $04;
- {$EXTERNALSYM CHARDEV_STAT_ERROR}
- // Opcodes for NetCharDevControl
- CHARDEV_CLOSE = 0;
- {$EXTERNALSYM CHARDEV_CLOSE}
- // Values for parm_err parameter.
- CHARDEVQ_DEV_PARMNUM = 1;
- {$EXTERNALSYM CHARDEVQ_DEV_PARMNUM}
- CHARDEVQ_PRIORITY_PARMNUM = 2;
- {$EXTERNALSYM CHARDEVQ_PRIORITY_PARMNUM}
- CHARDEVQ_DEVS_PARMNUM = 3;
- {$EXTERNALSYM CHARDEVQ_DEVS_PARMNUM}
- CHARDEVQ_NUMUSERS_PARMNUM = 4;
- {$EXTERNALSYM CHARDEVQ_NUMUSERS_PARMNUM}
- CHARDEVQ_NUMAHEAD_PARMNUM = 5;
- {$EXTERNALSYM CHARDEVQ_NUMAHEAD_PARMNUM}
- // Single-field infolevels for NetCharDevQSetInfo.
- CHARDEVQ_PRIORITY_INFOLEVEL = (PARMNUM_BASE_INFOLEVEL + CHARDEVQ_PRIORITY_PARMNUM);
- {$EXTERNALSYM CHARDEVQ_PRIORITY_INFOLEVEL}
- CHARDEVQ_DEVS_INFOLEVEL = (PARMNUM_BASE_INFOLEVEL + CHARDEVQ_DEVS_PARMNUM);
- {$EXTERNALSYM CHARDEVQ_DEVS_INFOLEVEL}
- // Minimum, maximum, and recommended default for priority.
- CHARDEVQ_MAX_PRIORITY = 1;
- {$EXTERNALSYM CHARDEVQ_MAX_PRIORITY}
- CHARDEVQ_MIN_PRIORITY = 9;
- {$EXTERNALSYM CHARDEVQ_MIN_PRIORITY}
- CHARDEVQ_DEF_PRIORITY = 5;
- {$EXTERNALSYM CHARDEVQ_DEF_PRIORITY}
- // Value indicating no requests in the queue.
- CHARDEVQ_NO_REQUESTS = -1;
- {$EXTERNALSYM CHARDEVQ_NO_REQUESTS}
- // Handle Class
- // Function Prototypes
- function NetHandleGetInfo(handle: THandle; level: DWORD; bufptr: Pointer): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetHandleGetInfo}
- function NetHandleSetInfo(handle: THandle; level: DWORD; buf: Pointer;
- parmnum: DWORD; parmerr: PDWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetHandleSetInfo}
- //
- // Data Structures
- //
- type
- PHandleInfo1 = ^THandleInfo1;
- _HANDLE_INFO_1 = record
- hdli1_chartime: DWORD;
- hdli1_charcount: DWORD;
- end;
- {$EXTERNALSYM _HANDLE_INFO_1}
- THandleInfo1 = _HANDLE_INFO_1;
- HANDLE_INFO_1 = _HANDLE_INFO_1;
- {$EXTERNALSYM HANDLE_INFO_1}
- // Handle Get Info Levels
- const
- HANDLE_INFO_LEVEL_1 = 1;
- {$EXTERNALSYM HANDLE_INFO_LEVEL_1}
- // Handle Set Info parm numbers
- HANDLE_CHARTIME_PARMNUM = 1;
- {$EXTERNALSYM HANDLE_CHARTIME_PARMNUM}
- HANDLE_CHARCOUNT_PARMNUM = 2;
- {$EXTERNALSYM HANDLE_CHARCOUNT_PARMNUM}
- // Translated from LMSNAME.H
- // Standard LAN Manager service names.
- const
- SERVICE_WORKSTATION = 'LanmanWorkstation';
- {$EXTERNALSYM SERVICE_WORKSTATION}
- SERVICE_LM20_WORKSTATION = 'WORKSTATION';
- {$EXTERNALSYM SERVICE_LM20_WORKSTATION}
- WORKSTATION_DISPLAY_NAME = 'Workstation';
- {$EXTERNALSYM WORKSTATION_DISPLAY_NAME}
- SERVICE_SERVER = 'LanmanServer';
- {$EXTERNALSYM SERVICE_SERVER}
- SERVICE_LM20_SERVER = 'SERVER';
- {$EXTERNALSYM SERVICE_LM20_SERVER}
- SERVER_DISPLAY_NAME = 'Server';
- {$EXTERNALSYM SERVER_DISPLAY_NAME}
- SERVICE_BROWSER = 'BROWSER';
- {$EXTERNALSYM SERVICE_BROWSER}
- SERVICE_LM20_BROWSER = SERVICE_BROWSER;
- {$EXTERNALSYM SERVICE_LM20_BROWSER}
- SERVICE_MESSENGER = 'MESSENGER';
- {$EXTERNALSYM SERVICE_MESSENGER}
- SERVICE_LM20_MESSENGER = SERVICE_MESSENGER;
- {$EXTERNALSYM SERVICE_LM20_MESSENGER}
- SERVICE_NETRUN = 'NETRUN';
- {$EXTERNALSYM SERVICE_NETRUN}
- SERVICE_LM20_NETRUN = SERVICE_NETRUN;
- {$EXTERNALSYM SERVICE_LM20_NETRUN}
- SERVICE_SPOOLER = 'SPOOLER';
- {$EXTERNALSYM SERVICE_SPOOLER}
- SERVICE_LM20_SPOOLER = SERVICE_SPOOLER;
- {$EXTERNALSYM SERVICE_LM20_SPOOLER}
- SERVICE_ALERTER = 'ALERTER';
- {$EXTERNALSYM SERVICE_ALERTER}
- SERVICE_LM20_ALERTER = SERVICE_ALERTER;
- {$EXTERNALSYM SERVICE_LM20_ALERTER}
- SERVICE_NETLOGON = 'NETLOGON';
- {$EXTERNALSYM SERVICE_NETLOGON}
- SERVICE_LM20_NETLOGON = SERVICE_NETLOGON;
- {$EXTERNALSYM SERVICE_LM20_NETLOGON}
- SERVICE_NETPOPUP = 'NETPOPUP';
- {$EXTERNALSYM SERVICE_NETPOPUP}
- SERVICE_LM20_NETPOPUP = SERVICE_NETPOPUP;
- {$EXTERNALSYM SERVICE_LM20_NETPOPUP}
- SERVICE_SQLSERVER = 'SQLSERVER';
- {$EXTERNALSYM SERVICE_SQLSERVER}
- SERVICE_LM20_SQLSERVER = SERVICE_SQLSERVER;
- {$EXTERNALSYM SERVICE_LM20_SQLSERVER}
- SERVICE_REPL = 'REPLICATOR';
- {$EXTERNALSYM SERVICE_REPL}
- SERVICE_LM20_REPL = SERVICE_REPL;
- {$EXTERNALSYM SERVICE_LM20_REPL}
- SERVICE_RIPL = 'REMOTEBOOT';
- {$EXTERNALSYM SERVICE_RIPL}
- SERVICE_LM20_RIPL = SERVICE_RIPL;
- {$EXTERNALSYM SERVICE_LM20_RIPL}
- SERVICE_TIMESOURCE = 'TIMESOURCE';
- {$EXTERNALSYM SERVICE_TIMESOURCE}
- SERVICE_LM20_TIMESOURCE = SERVICE_TIMESOURCE;
- {$EXTERNALSYM SERVICE_LM20_TIMESOURCE}
- SERVICE_AFP = 'AFP';
- {$EXTERNALSYM SERVICE_AFP}
- SERVICE_LM20_AFP = SERVICE_AFP;
- {$EXTERNALSYM SERVICE_LM20_AFP}
- SERVICE_UPS = 'UPS';
- {$EXTERNALSYM SERVICE_UPS}
- SERVICE_LM20_UPS = SERVICE_UPS;
- {$EXTERNALSYM SERVICE_LM20_UPS}
- SERVICE_XACTSRV = 'XACTSRV';
- {$EXTERNALSYM SERVICE_XACTSRV}
- SERVICE_LM20_XACTSRV = SERVICE_XACTSRV;
- {$EXTERNALSYM SERVICE_LM20_XACTSRV}
- SERVICE_TCPIP = 'TCPIP';
- {$EXTERNALSYM SERVICE_TCPIP}
- SERVICE_LM20_TCPIP = SERVICE_TCPIP;
- {$EXTERNALSYM SERVICE_LM20_TCPIP}
- SERVICE_NBT = 'NBT';
- {$EXTERNALSYM SERVICE_NBT}
- SERVICE_LM20_NBT = SERVICE_NBT;
- {$EXTERNALSYM SERVICE_LM20_NBT}
- SERVICE_LMHOSTS = 'LMHOSTS';
- {$EXTERNALSYM SERVICE_LMHOSTS}
- SERVICE_LM20_LMHOSTS = SERVICE_LMHOSTS;
- {$EXTERNALSYM SERVICE_LM20_LMHOSTS}
- SERVICE_TELNET = 'Telnet';
- {$EXTERNALSYM SERVICE_TELNET}
- SERVICE_LM20_TELNET = SERVICE_TELNET;
- {$EXTERNALSYM SERVICE_LM20_TELNET}
- SERVICE_SCHEDULE = 'Schedule';
- {$EXTERNALSYM SERVICE_SCHEDULE}
- SERVICE_LM20_SCHEDULE = SERVICE_SCHEDULE;
- {$EXTERNALSYM SERVICE_LM20_SCHEDULE}
- SERVICE_NTLMSSP = 'NtLmSsp';
- {$EXTERNALSYM SERVICE_NTLMSSP}
- SERVICE_DHCP = 'DHCP';
- {$EXTERNALSYM SERVICE_DHCP}
- SERVICE_LM20_DHCP = SERVICE_DHCP;
- {$EXTERNALSYM SERVICE_LM20_DHCP}
- SERVICE_NWSAP = 'NwSapAgent';
- {$EXTERNALSYM SERVICE_NWSAP}
- SERVICE_LM20_NWSAP = SERVICE_NWSAP;
- {$EXTERNALSYM SERVICE_LM20_NWSAP}
- NWSAP_DISPLAY_NAME = 'NW Sap Agent';
- {$EXTERNALSYM NWSAP_DISPLAY_NAME}
- SERVICE_NWCS = 'NWCWorkstation';
- {$EXTERNALSYM SERVICE_NWCS}
- SERVICE_DNS_CACHE = 'DnsCache';
- {$EXTERNALSYM SERVICE_DNS_CACHE}
- SERVICE_W32TIME = 'w32time';
- {$EXTERNALSYM SERVICE_W32TIME}
- SERVCE_LM20_W32TIME = SERVICE_W32TIME;
- {$EXTERNALSYM SERVCE_LM20_W32TIME}
- SERVICE_KDC = 'kdc';
- {$EXTERNALSYM SERVICE_KDC}
- SERVICE_LM20_KDC = SERVICE_KDC;
- {$EXTERNALSYM SERVICE_LM20_KDC}
- SERVICE_RPCLOCATOR = 'RPCLOCATOR';
- {$EXTERNALSYM SERVICE_RPCLOCATOR}
- SERVICE_LM20_RPCLOCATOR = SERVICE_RPCLOCATOR;
- {$EXTERNALSYM SERVICE_LM20_RPCLOCATOR}
- SERVICE_TRKSVR = 'TrkSvr';
- {$EXTERNALSYM SERVICE_TRKSVR}
- SERVICE_LM20_TRKSVR = SERVICE_TRKSVR;
- {$EXTERNALSYM SERVICE_LM20_TRKSVR}
- SERVICE_TRKWKS = 'TrkWks';
- {$EXTERNALSYM SERVICE_TRKWKS}
- SERVICE_LM20_TRKWKS = SERVICE_TRKWKS;
- {$EXTERNALSYM SERVICE_LM20_TRKWKS}
- SERVICE_NTFRS = 'NtFrs';
- {$EXTERNALSYM SERVICE_NTFRS}
- SERVICE_LM20_NTFRS = SERVICE_NTFRS;
- {$EXTERNALSYM SERVICE_LM20_NTFRS}
- SERVICE_ISMSERV = 'IsmServ';
- {$EXTERNALSYM SERVICE_ISMSERV}
- SERVICE_LM20_ISMSERV = SERVICE_ISMSERV;
- {$EXTERNALSYM SERVICE_LM20_ISMSERV}
- // Translated from LMUSEFLG.H
- // Definition for NetWkstaTransportDel and NetUseDel deletion force levels
- const
- {$EXTERNALSYM USE_NOFORCE}
- USE_NOFORCE = 0;
- {$EXTERNALSYM USE_FORCE}
- USE_FORCE = 1;
- {$EXTERNALSYM USE_LOTS_OF_FORCE}
- USE_LOTS_OF_FORCE = 2;
- // Translated from LMDFS.H
- // DFS Volume state
- const
- DFS_VOLUME_STATE_OK = 1;
- {$EXTERNALSYM DFS_VOLUME_STATE_OK}
- DFS_VOLUME_STATE_INCONSISTENT = 2;
- {$EXTERNALSYM DFS_VOLUME_STATE_INCONSISTENT}
- DFS_VOLUME_STATE_OFFLINE = 3;
- {$EXTERNALSYM DFS_VOLUME_STATE_OFFLINE}
- DFS_VOLUME_STATE_ONLINE = 4;
- {$EXTERNALSYM DFS_VOLUME_STATE_ONLINE}
- // DFS Storage State
- DFS_STORAGE_STATE_OFFLINE = 1;
- {$EXTERNALSYM DFS_STORAGE_STATE_OFFLINE}
- DFS_STORAGE_STATE_ONLINE = 2;
- {$EXTERNALSYM DFS_STORAGE_STATE_ONLINE}
- DFS_STORAGE_STATE_ACTIVE = 4;
- {$EXTERNALSYM DFS_STORAGE_STATE_ACTIVE}
- // Level 1:
- type
- PDfsInfo1 = ^TDfsInfo1;
- _DFS_INFO_1 = packed record
- EntryPath: LPWSTR; // Dfs name for the top of this piece of storage
- end;
- {$EXTERNALSYM _DFS_INFO_1}
- TDfsInfo1 = _DFS_INFO_1;
- DFS_INFO_1 = _DFS_INFO_1;
- {$EXTERNALSYM DFS_INFO_1}
- // Level 2:
- PDfsInfo2 = ^TDfsInfo2;
- _DFS_INFO_2 = packed record
- EntryPath: LPWSTR; // Dfs name for the top of this volume
- Comment: LPWSTR; // Comment for this volume
- State: DWORD; // State of this volume, one of DFS_VOLUME_STATE_*
- NumberOfStorages: DWORD; // Number of storages for this volume
- end;
- {$EXTERNALSYM _DFS_INFO_2}
- TDfsInfo2 = _DFS_INFO_2;
- DFS_INFO_2 = _DFS_INFO_2;
- {$EXTERNALSYM DFS_INFO_2}
- PDfsStorageInfo = ^TDfsStorageInfo;
- _DFS_STORAGE_INFO = packed record
- State: ULONG; // State of this storage, one of DFS_STORAGE_STATE_*
- // possibly OR'd with DFS_STORAGE_STATE_ACTIVE
- ServerName: LPWSTR; // Name of server hosting this storage
- ShareName: LPWSTR; // Name of share hosting this storage
- end;
- {$EXTERNALSYM _DFS_STORAGE_INFO}
- TDfsStorageInfo = _DFS_STORAGE_INFO;
- DFS_STORAGE_INFO = _DFS_STORAGE_INFO;
- {$EXTERNALSYM DFS_STORAGE_INFO}
- // Level 3:
- PDfsInfo3 = ^TDfsInfo3;
- _DFS_INFO_3 = packed record
- EntryPath: LPWSTR; // Dfs name for the top of this volume
- Comment: LPWSTR; // Comment for this volume
- State: DWORD; // State of this volume, one of DFS_VOLUME_STATE_*
- NumberOfStorages: DWORD; // Number of storage servers for this volume
- Storage: PDfsStorageInfo; // An array (of NumberOfStorages elements) of storage-specific information.
- end;
- {$EXTERNALSYM _DFS_INFO_3}
- TDfsInfo3 = _DFS_INFO_3;
- DFS_INFO_3 = _DFS_INFO_3;
- {$EXTERNALSYM DFS_INFO_3}
- // Level 4:
- PDfsInfo4 = ^TDfsInfo4;
- _DFS_INFO_4 = packed record
- EntryPath: LPWSTR; // Dfs name for the top of this volume
- Comment: LPWSTR; // Comment for this volume
- State: DWORD; // State of this volume, one of DFS_VOLUME_STATE_*
- Timeout: ULONG; // Timeout, in seconds, of this junction point
- Guid: TGUID; // Guid of this junction point
- NumberOfStorages: DWORD; // Number of storage servers for this volume
- Storage: PDfsStorageInfo; // An array (of NumberOfStorages elements) of storage-specific information.
- end;
- {$EXTERNALSYM _DFS_INFO_4}
- TDfsInfo4 = _DFS_INFO_4;
- DFS_INFO_4 = _DFS_INFO_4;
- {$EXTERNALSYM DFS_INFO_4}
- // Level 100:
- PDfsInfo100 = ^TDfsInfo100;
- _DFS_INFO_100 = packed record
- Comment: LPWSTR; // Comment for this volume or storage
- end;
- {$EXTERNALSYM _DFS_INFO_100}
- TDfsInfo100 = _DFS_INFO_100;
- DFS_INFO_100 = _DFS_INFO_100;
- {$EXTERNALSYM DFS_INFO_100}
- // Level 101:
- PDfsInfo101 = ^TDfsInfo101;
- _DFS_INFO_101 = packed record
- State: DWORD; // State of this storage, one of DFS_STORAGE_STATE_*
- // possibly OR'd with DFS_STORAGE_STATE_ACTIVE
- end;
- {$EXTERNALSYM _DFS_INFO_101}
- TDfsInfo101 = _DFS_INFO_101;
- DFS_INFO_101 = _DFS_INFO_101;
- {$EXTERNALSYM DFS_INFO_101}
- // Level 102:
- PDfsInfo102 = ^TDfsInfo102;
- _DFS_INFO_102 = packed record
- Timeout: ULONG; // Timeout, in seconds, of the junction
- end;
- {$EXTERNALSYM _DFS_INFO_102}
- TDfsInfo102 = _DFS_INFO_102;
- DFS_INFO_102 = _DFS_INFO_102;
- {$EXTERNALSYM DFS_INFO_102}
- // Level 200:
- PDfsInfo200 = ^TDfsInfo200;
- _DFS_INFO_200 = packed record
- FtDfsName: LPWSTR; // FtDfs name
- end;
- {$EXTERNALSYM _DFS_INFO_200}
- TDfsInfo200 = _DFS_INFO_200;
- DFS_INFO_200 = _DFS_INFO_200;
- {$EXTERNALSYM DFS_INFO_200}
- // Add a new volume or additional storage for an existing volume at
- // DfsEntryPath.
- function NetDfsAdd(DfsEntryPath, ServerName, ShareName, Comment: LPWSTR;
- Flags: DWORD): NET_API_STATUS; stdcall;
- {$EXTERNALSYM NetDfsAdd}
- // Flags:
- const
- DFS_ADD_VOLUME = 1; // Add a new volume to the DFS if not already there
- {$EXTERNALSYM DFS_ADD_VOLUME}
- DFS_RESTORE_VOLUME = 2; // Volume/Replica is being restored - do not verify share etc.
- {$EXTERNALSYM DFS_RESTORE_VOLUME}
- // Setup/teardown API's for standard and FtDfs roots.
- function NetDfsAddStdRoot(ServerName, RootShare, Comment: LPWSTR;