2006-09-19 02:20:37 +04:00
/* header auto-generated by pidl */
2007-02-16 17:50:57 +03:00
# include <stdint.h>
2009-02-25 17:22:08 +03:00
# include "libcli/util/ntstatus.h"
2006-11-07 02:20:35 +03:00
# include "librpc/gen_ndr/srvsvc.h"
2007-11-30 03:44:44 +03:00
# include "librpc/gen_ndr/lsa.h"
2006-09-19 02:20:37 +04:00
# ifndef _HEADER_wkssvc
# define _HEADER_wkssvc
struct wkssvc_NetWkstaInfo100 {
2007-11-30 03:44:44 +03:00
enum srvsvc_PlatformId platform_id ;
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * domain_name ; /* [unique,charset(UTF16)] */
uint32_t version_major ;
uint32_t version_minor ;
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaInfo101 {
2007-11-30 03:44:44 +03:00
enum srvsvc_PlatformId platform_id ;
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * domain_name ; /* [unique,charset(UTF16)] */
uint32_t version_major ;
uint32_t version_minor ;
const char * lan_root ; /* [unique,charset(UTF16)] */
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaInfo102 {
2007-11-30 03:44:44 +03:00
enum srvsvc_PlatformId platform_id ;
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * domain_name ; /* [unique,charset(UTF16)] */
uint32_t version_major ;
uint32_t version_minor ;
const char * lan_root ; /* [unique,charset(UTF16)] */
uint32_t logged_on_users ;
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaInfo502 {
2006-09-20 02:22:57 +04:00
uint32_t char_wait ;
uint32_t collection_time ;
uint32_t maximum_collection_count ;
uint32_t keep_connection ;
uint32_t max_commands ;
uint32_t session_timeout ;
uint32_t size_char_buf ;
uint32_t max_threads ;
uint32_t lock_quota ;
uint32_t lock_increment ;
uint32_t lock_maximum ;
uint32_t pipe_increment ;
uint32_t pipe_maximum ;
uint32_t cache_file_timeout ;
uint32_t dormant_file_limit ;
uint32_t read_ahead_throughput ;
uint32_t num_mailslot_buffers ;
uint32_t num_srv_announce_buffers ;
uint32_t max_illegal_dgram_events ;
uint32_t dgram_event_reset_freq ;
uint32_t log_election_packets ;
uint32_t use_opportunistic_locking ;
uint32_t use_unlock_behind ;
uint32_t use_close_behind ;
uint32_t buf_named_pipes ;
uint32_t use_lock_read_unlock ;
uint32_t utilize_nt_caching ;
uint32_t use_raw_read ;
uint32_t use_raw_write ;
uint32_t use_write_raw_data ;
uint32_t use_encryption ;
uint32_t buf_files_deny_write ;
uint32_t buf_read_only_files ;
uint32_t force_core_create_mode ;
uint32_t use_512_byte_max_transfer ;
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaInfo1010 {
2006-09-20 02:22:57 +04:00
uint32_t char_wait ;
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaInfo1011 {
2006-09-20 02:22:57 +04:00
uint32_t collection_time ;
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaInfo1012 {
2006-09-20 02:22:57 +04:00
uint32_t maximum_collection_count ;
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaInfo1013 {
2006-09-20 02:22:57 +04:00
uint32_t keep_connection ;
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaInfo1018 {
2006-09-20 02:22:57 +04:00
uint32_t session_timeout ;
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaInfo1023 {
2006-09-20 02:22:57 +04:00
uint32_t size_char_buf ;
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaInfo1027 {
2006-09-20 02:22:57 +04:00
uint32_t errorlog_sz ;
2006-09-19 02:20:37 +04:00
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetWkstaInfo1028 {
uint32_t print_buf_time ;
} ;
struct wkssvc_NetWkstaInfo1032 {
uint32_t wrk_heuristics ;
} ;
2006-09-19 02:20:37 +04:00
struct wkssvc_NetWkstaInfo1033 {
2006-09-20 02:22:57 +04:00
uint32_t max_threads ;
2006-09-19 02:20:37 +04:00
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetWkstaInfo1041 {
uint32_t lock_quota ;
} ;
struct wkssvc_NetWkstaInfo1042 {
uint32_t lock_increment ;
} ;
struct wkssvc_NetWkstaInfo1043 {
uint32_t lock_maximum ;
} ;
struct wkssvc_NetWkstaInfo1044 {
uint32_t pipe_increment ;
} ;
struct wkssvc_NetWkstaInfo1045 {
uint32_t pipe_maximum ;
} ;
struct wkssvc_NetWkstaInfo1046 {
uint32_t dormant_file_limit ;
} ;
struct wkssvc_NetWkstaInfo1047 {
uint32_t cache_file_timeout ;
} ;
struct wkssvc_NetWkstaInfo1048 {
uint32_t use_opportunistic_locking ;
} ;
struct wkssvc_NetWkstaInfo1049 {
uint32_t use_unlock_behind ;
} ;
struct wkssvc_NetWkstaInfo1050 {
uint32_t use_close_behind ;
} ;
struct wkssvc_NetWkstaInfo1051 {
uint32_t buf_named_pipes ;
} ;
struct wkssvc_NetWkstaInfo1052 {
uint32_t use_lock_read_unlock ;
} ;
struct wkssvc_NetWkstaInfo1053 {
uint32_t utilize_nt_caching ;
} ;
struct wkssvc_NetWkstaInfo1054 {
uint32_t use_raw_read ;
} ;
struct wkssvc_NetWkstaInfo1055 {
uint32_t use_raw_write ;
} ;
struct wkssvc_NetWkstaInfo1056 {
uint32_t use_write_raw_data ;
} ;
struct wkssvc_NetWkstaInfo1057 {
uint32_t use_encryption ;
} ;
struct wkssvc_NetWkstaInfo1058 {
uint32_t buf_files_deny_write ;
} ;
struct wkssvc_NetWkstaInfo1059 {
uint32_t buf_read_only_files ;
} ;
struct wkssvc_NetWkstaInfo1060 {
uint32_t force_core_create_mode ;
} ;
struct wkssvc_NetWkstaInfo1061 {
uint32_t use_512_byte_max_transfer ;
} ;
struct wkssvc_NetWkstaInfo1062 {
uint32_t read_ahead_throughput ;
} ;
2006-09-19 02:20:37 +04:00
union wkssvc_NetWkstaInfo {
2006-09-20 02:22:57 +04:00
struct wkssvc_NetWkstaInfo100 * info100 ; /* [unique,case(100)] */
struct wkssvc_NetWkstaInfo101 * info101 ; /* [unique,case(101)] */
struct wkssvc_NetWkstaInfo102 * info102 ; /* [unique,case(102)] */
struct wkssvc_NetWkstaInfo502 * info502 ; /* [unique,case(502)] */
struct wkssvc_NetWkstaInfo1010 * info1010 ; /* [unique,case(1010)] */
struct wkssvc_NetWkstaInfo1011 * info1011 ; /* [unique,case(1011)] */
struct wkssvc_NetWkstaInfo1012 * info1012 ; /* [unique,case(1012)] */
struct wkssvc_NetWkstaInfo1013 * info1013 ; /* [unique,case(1013)] */
struct wkssvc_NetWkstaInfo1018 * info1018 ; /* [unique,case(1018)] */
struct wkssvc_NetWkstaInfo1023 * info1023 ; /* [unique,case(1023)] */
struct wkssvc_NetWkstaInfo1027 * info1027 ; /* [unique,case(1027)] */
2007-11-30 03:44:44 +03:00
struct wkssvc_NetWkstaInfo1028 * info1028 ; /* [unique,case(1028)] */
struct wkssvc_NetWkstaInfo1032 * info1032 ; /* [unique,case(1032)] */
2006-09-20 02:22:57 +04:00
struct wkssvc_NetWkstaInfo1033 * info1033 ; /* [unique,case(1033)] */
2007-11-30 03:44:44 +03:00
struct wkssvc_NetWkstaInfo1041 * info1041 ; /* [unique,case(1041)] */
struct wkssvc_NetWkstaInfo1042 * info1042 ; /* [unique,case(1042)] */
struct wkssvc_NetWkstaInfo1043 * info1043 ; /* [unique,case(1043)] */
struct wkssvc_NetWkstaInfo1044 * info1044 ; /* [unique,case(1044)] */
struct wkssvc_NetWkstaInfo1045 * info1045 ; /* [unique,case(1045)] */
struct wkssvc_NetWkstaInfo1046 * info1046 ; /* [unique,case(1046)] */
struct wkssvc_NetWkstaInfo1047 * info1047 ; /* [unique,case(1047)] */
struct wkssvc_NetWkstaInfo1048 * info1048 ; /* [unique,case(1048)] */
struct wkssvc_NetWkstaInfo1049 * info1049 ; /* [unique,case(1049)] */
struct wkssvc_NetWkstaInfo1050 * info1050 ; /* [unique,case(1050)] */
struct wkssvc_NetWkstaInfo1051 * info1051 ; /* [unique,case(1051)] */
struct wkssvc_NetWkstaInfo1052 * info1052 ; /* [unique,case(1052)] */
struct wkssvc_NetWkstaInfo1053 * info1053 ; /* [unique,case(1053)] */
struct wkssvc_NetWkstaInfo1054 * info1054 ; /* [unique,case(1054)] */
struct wkssvc_NetWkstaInfo1055 * info1055 ; /* [unique,case(1055)] */
struct wkssvc_NetWkstaInfo1056 * info1056 ; /* [unique,case(1056)] */
struct wkssvc_NetWkstaInfo1057 * info1057 ; /* [unique,case(1057)] */
struct wkssvc_NetWkstaInfo1058 * info1058 ; /* [unique,case(1058)] */
struct wkssvc_NetWkstaInfo1059 * info1059 ; /* [unique,case(1059)] */
struct wkssvc_NetWkstaInfo1060 * info1060 ; /* [unique,case(1060)] */
struct wkssvc_NetWkstaInfo1061 * info1061 ; /* [unique,case(1061)] */
struct wkssvc_NetWkstaInfo1062 * info1062 ; /* [unique,case(1062)] */
} ;
struct wkssvc_NetrWkstaUserInfo0 {
const char * user_name ; /* [unique,charset(UTF16)] */
2006-09-19 02:20:37 +04:00
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetWkstaEnumUsersCtr0 {
2006-09-20 02:22:57 +04:00
uint32_t entries_read ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrWkstaUserInfo0 * user0 ; /* [unique,size_is(entries_read)] */
2006-09-19 02:20:37 +04:00
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrWkstaUserInfo1 {
2006-09-20 02:22:57 +04:00
const char * user_name ; /* [unique,charset(UTF16)] */
const char * logon_domain ; /* [unique,charset(UTF16)] */
const char * other_domains ; /* [unique,charset(UTF16)] */
const char * logon_server ; /* [unique,charset(UTF16)] */
2006-09-19 02:20:37 +04:00
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetWkstaEnumUsersCtr1 {
2006-09-20 02:22:57 +04:00
uint32_t entries_read ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrWkstaUserInfo1 * user1 ; /* [unique,size_is(entries_read)] */
} ;
union wkssvc_NetWkstaEnumUsersCtr {
struct wkssvc_NetWkstaEnumUsersCtr0 * user0 ; /* [unique,case(0)] */
struct wkssvc_NetWkstaEnumUsersCtr1 * user1 ; /* [unique,case] */
} /* [switch_type(uint32)] */ ;
struct wkssvc_NetWkstaEnumUsersInfo {
uint32_t level ;
union wkssvc_NetWkstaEnumUsersCtr ctr ; /* [switch_is(level)] */
} ;
struct wkssvc_NetrWkstaUserInfo1101 {
const char * other_domains ; /* [unique,charset(UTF16)] */
2006-09-19 02:20:37 +04:00
} ;
2007-11-30 03:44:44 +03:00
union wkssvc_NetrWkstaUserInfo {
struct wkssvc_NetrWkstaUserInfo0 * info0 ; /* [unique,case(0)] */
struct wkssvc_NetrWkstaUserInfo1 * info1 ; /* [unique,case] */
struct wkssvc_NetrWkstaUserInfo1101 * info1101 ; /* [unique,case(1101)] */
2006-09-19 02:20:37 +04:00
} /* [switch_type(uint32)] */ ;
struct wkssvc_NetWkstaTransportInfo0 {
2006-09-20 02:22:57 +04:00
uint32_t quality_of_service ;
uint32_t vc_count ;
const char * name ; /* [unique,charset(UTF16)] */
const char * address ; /* [unique,charset(UTF16)] */
uint32_t wan_link ;
2006-09-19 02:20:37 +04:00
} ;
struct wkssvc_NetWkstaTransportCtr0 {
2006-09-20 02:22:57 +04:00
uint32_t count ;
struct wkssvc_NetWkstaTransportInfo0 * array ; /* [unique,size_is(count)] */
2006-09-19 02:20:37 +04:00
} ;
union wkssvc_NetWkstaTransportCtr {
2006-09-20 02:22:57 +04:00
struct wkssvc_NetWkstaTransportCtr0 * ctr0 ; /* [unique,case(0)] */
2006-09-19 02:20:37 +04:00
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetWkstaTransportInfo {
uint32_t level ;
union wkssvc_NetWkstaTransportCtr ctr ; /* [switch_is(level)] */
} ;
struct wkssvc_NetrUseInfo3 {
const char * unknown1 ; /* [unique,charset(UTF16)] */
const char * unknown2 ; /* [unique,charset(UTF16)] */
} ;
struct wkssvc_NetrUseInfo2 {
const char * local ; /* [unique,charset(UTF16)] */
const char * remote ; /* [unique,charset(UTF16)] */
const char * password ; /* [unique,charset(UTF16)] */
uint32_t status ;
uint32_t asg_type ;
uint32_t ref_count ;
uint32_t use_count ;
const char * user_name ; /* [unique,charset(UTF16)] */
const char * domain_name ; /* [unique,charset(UTF16)] */
} ;
struct wkssvc_NetrUseInfo1 {
const char * local ; /* [unique,charset(UTF16)] */
const char * remote ; /* [unique,charset(UTF16)] */
const char * password ; /* [unique,charset(UTF16)] */
uint32_t status ;
uint32_t asg_type ;
uint32_t ref_count ;
uint32_t use_count ;
} ;
struct wkssvc_NetrUseInfo0 {
const char * local ; /* [unique,charset(UTF16)] */
const char * remote ; /* [unique,charset(UTF16)] */
} ;
union wkssvc_NetrUseGetInfoCtr {
struct wkssvc_NetrUseInfo0 * info0 ; /* [unique,case(0)] */
struct wkssvc_NetrUseInfo1 * info1 ; /* [unique,case] */
struct wkssvc_NetrUseInfo2 * info2 ; /* [unique,case(2)] */
struct wkssvc_NetrUseInfo3 * info3 ; /* [unique,case(3)] */
} /* [switch_type(uint32)] */ ;
struct wkssvc_NetrUseEnumCtr2 {
uint32_t count ;
struct wkssvc_NetrUseInfo2 * array ; /* [unique,size_is(count)] */
} ;
struct wkssvc_NetrUseEnumCtr1 {
uint32_t count ;
struct wkssvc_NetrUseInfo1 * array ; /* [unique,size_is(count)] */
} ;
struct wkssvc_NetrUseEnumCtr0 {
uint32_t count ;
struct wkssvc_NetrUseInfo0 * array ; /* [unique,size_is(count)] */
} ;
union wkssvc_NetrUseEnumCtr {
struct wkssvc_NetrUseEnumCtr0 * ctr0 ; /* [unique,case(0)] */
struct wkssvc_NetrUseEnumCtr1 * ctr1 ; /* [unique,case] */
struct wkssvc_NetrUseEnumCtr2 * ctr2 ; /* [unique,case(2)] */
} /* [switch_type(uint32)] */ ;
struct wkssvc_NetrUseEnumInfo {
uint32_t level ;
union wkssvc_NetrUseEnumCtr ctr ; /* [switch_is(level)] */
} ;
struct wkssvc_NetrWorkstationStatistics {
uint64_t unknown1 ;
uint64_t unknown2 ;
uint64_t unknown3 ;
uint64_t unknown4 ;
uint64_t unknown5 ;
uint64_t unknown6 ;
uint64_t unknown7 ;
uint64_t unknown8 ;
uint64_t unknown9 ;
uint64_t unknown10 ;
uint64_t unknown11 ;
uint64_t unknown12 ;
uint64_t unknown13 ;
uint32_t unknown14 ;
uint32_t unknown15 ;
uint32_t unknown16 ;
uint32_t unknown17 ;
uint32_t unknown18 ;
uint32_t unknown19 ;
uint32_t unknown20 ;
uint32_t unknown21 ;
uint32_t unknown22 ;
uint32_t unknown23 ;
uint32_t unknown24 ;
uint32_t unknown25 ;
uint32_t unknown26 ;
uint32_t unknown27 ;
uint32_t unknown28 ;
uint32_t unknown29 ;
uint32_t unknown30 ;
uint32_t unknown31 ;
uint32_t unknown32 ;
uint32_t unknown33 ;
uint32_t unknown34 ;
uint32_t unknown35 ;
uint32_t unknown36 ;
uint32_t unknown37 ;
uint32_t unknown38 ;
uint32_t unknown39 ;
uint32_t unknown40 ;
} ;
/* bitmap wkssvc_renameflags */
# define WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE ( 0x00000002 )
2008-01-13 03:22:23 +03:00
enum wkssvc_NetValidateNameType
2007-11-30 03:44:44 +03:00
# ifndef USE_UINT_ENUMS
2008-01-13 03:22:23 +03:00
{
2009-09-17 22:28:37 +04:00
NetSetupUnknown = ( int ) ( 0 ) ,
NetSetupMachine = ( int ) ( 1 ) ,
NetSetupWorkgroup = ( int ) ( 2 ) ,
NetSetupDomain = ( int ) ( 3 ) ,
NetSetupNonExistentDomain = ( int ) ( 4 ) ,
NetSetupDnsMachine = ( int ) ( 5 )
2007-11-30 03:44:44 +03:00
}
# else
2008-01-13 03:22:23 +03:00
{ __donnot_use_enum_wkssvc_NetValidateNameType = 0x7FFFFFFF }
2007-11-30 03:44:44 +03:00
# define NetSetupUnknown ( 0 )
# define NetSetupMachine ( 1 )
# define NetSetupWorkgroup ( 2 )
# define NetSetupDomain ( 3 )
# define NetSetupNonExistentDomain ( 4 )
# define NetSetupDnsMachine ( 5 )
# endif
;
2008-01-13 03:22:23 +03:00
enum wkssvc_NetJoinStatus
2007-11-30 03:44:44 +03:00
# ifndef USE_UINT_ENUMS
2008-01-13 03:22:23 +03:00
{
2009-09-17 22:28:37 +04:00
NET_SETUP_UNKNOWN_STATUS = ( int ) ( 0 ) ,
NET_SETUP_UNJOINED = ( int ) ( 1 ) ,
NET_SETUP_WORKGROUP_NAME = ( int ) ( 2 ) ,
NET_SETUP_DOMAIN_NAME = ( int ) ( 3 )
2007-11-30 03:44:44 +03:00
}
# else
2008-01-13 03:22:23 +03:00
{ __donnot_use_enum_wkssvc_NetJoinStatus = 0x7FFFFFFF }
2008-09-02 16:32:41 +04:00
# define NET_SETUP_UNKNOWN_STATUS ( 0 )
# define NET_SETUP_UNJOINED ( 1 )
# define NET_SETUP_WORKGROUP_NAME ( 2 )
# define NET_SETUP_DOMAIN_NAME ( 3 )
2007-11-30 03:44:44 +03:00
# endif
;
2006-09-19 02:20:37 +04:00
struct wkssvc_PasswordBuffer {
2006-09-20 02:22:57 +04:00
uint8_t data [ 524 ] ;
2007-11-30 03:44:44 +03:00
} /* [flag(LIBNDR_PRINT_ARRAY_HEX)] */ ;
2006-09-19 02:20:37 +04:00
/* bitmap wkssvc_joinflags */
2009-05-01 01:36:24 +04:00
# define WKSSVC_JOIN_FLAGS_IGNORE_UNSUPPORTED_FLAGS ( 0x10000000 )
2007-11-30 03:44:44 +03:00
# define WKSSVC_JOIN_FLAGS_JOIN_WITH_NEW_NAME ( 0x00000400 )
# define WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT ( 0x00000200 )
2006-09-19 02:20:37 +04:00
# define WKSSVC_JOIN_FLAGS_DEFER_SPN ( 0x00000100 )
# define WKSSVC_JOIN_FLAGS_MACHINE_PWD_PASSED ( 0x00000080 )
# define WKSSVC_JOIN_FLAGS_JOIN_UNSECURE ( 0x00000040 )
# define WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED ( 0x00000020 )
# define WKSSVC_JOIN_FLAGS_WIN9X_UPGRADE ( 0x00000010 )
# define WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE ( 0x00000004 )
# define WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE ( 0x00000002 )
# define WKSSVC_JOIN_FLAGS_JOIN_TYPE ( 0x00000001 )
2008-01-13 03:22:23 +03:00
enum wkssvc_ComputerNameType
2007-11-30 03:44:44 +03:00
# ifndef USE_UINT_ENUMS
2008-01-13 03:22:23 +03:00
{
2009-09-17 22:28:37 +04:00
NetPrimaryComputerName = ( int ) ( 0 ) ,
NetAlternateComputerNames = ( int ) ( 1 ) ,
NetAllComputerNames = ( int ) ( 2 ) ,
NetComputerNameTypeMax = ( int ) ( 3 )
2007-11-30 03:44:44 +03:00
}
# else
2008-01-13 03:22:23 +03:00
{ __donnot_use_enum_wkssvc_ComputerNameType = 0x7FFFFFFF }
2007-11-30 03:44:44 +03:00
# define NetPrimaryComputerName ( 0 )
# define NetAlternateComputerNames ( 1 )
# define NetAllComputerNames ( 2 )
# define NetComputerNameTypeMax ( 3 )
# endif
2007-02-27 20:17:16 +03:00
;
2007-11-30 03:44:44 +03:00
struct wkssvc_ComputerNamesCtr {
uint32_t count ;
struct lsa_String * computer_name ; /* [unique,size_is(count)] */
} ;
2006-09-19 02:20:37 +04:00
struct wkssvc_NetWkstaGetInfo {
struct {
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
uint32_t level ;
2006-09-19 02:20:37 +04:00
} in ;
struct {
2006-09-20 02:22:57 +04:00
union wkssvc_NetWkstaInfo * info ; /* [ref,switch_is(level)] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
struct wkssvc_NetWkstaSetInfo {
struct {
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
uint32_t level ;
union wkssvc_NetWkstaInfo * info ; /* [ref,switch_is(level)] */
uint32_t * parm_error ; /* [ref] */
2006-09-19 02:20:37 +04:00
} in ;
struct {
2006-09-20 02:22:57 +04:00
uint32_t * parm_error ; /* [ref] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
struct wkssvc_NetWkstaEnumUsers {
struct {
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
uint32_t prefmaxlen ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetWkstaEnumUsersInfo * info ; /* [ref] */
uint32_t * resume_handle ; /* [unique] */
2006-09-19 02:20:37 +04:00
} in ;
struct {
2007-11-30 03:44:44 +03:00
uint32_t * entries_read ; /* [ref] */
struct wkssvc_NetWkstaEnumUsersInfo * info ; /* [ref] */
uint32_t * resume_handle ; /* [unique] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrWkstaUserGetInfo {
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
const char * unknown ; /* [unique,charset(UTF16)] */
uint32_t level ;
} in ;
struct {
union wkssvc_NetrWkstaUserInfo * info ; /* [ref,switch_is(level)] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrWkstaUserSetInfo {
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
const char * unknown ; /* [unique,charset(UTF16)] */
uint32_t level ;
union wkssvc_NetrWkstaUserInfo * info ; /* [ref,switch_is(level)] */
uint32_t * parm_err ; /* [unique] */
} in ;
struct {
uint32_t * parm_err ; /* [unique] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
struct wkssvc_NetWkstaTransportEnum {
struct {
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
2007-02-16 17:50:57 +03:00
uint32_t max_buffer ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetWkstaTransportInfo * info ; /* [ref] */
uint32_t * resume_handle ; /* [unique] */
2006-09-19 02:20:37 +04:00
} in ;
struct {
2007-11-30 03:44:44 +03:00
uint32_t * total_entries ; /* [ref] */
struct wkssvc_NetWkstaTransportInfo * info ; /* [ref] */
uint32_t * resume_handle ; /* [unique] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrWkstaTransportAdd {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
uint32_t level ;
struct wkssvc_NetWkstaTransportInfo0 * info0 ; /* [ref] */
uint32_t * parm_err ; /* [unique] */
} in ;
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
uint32_t * parm_err ; /* [unique] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrWkstaTransportDel {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
const char * transport_name ; /* [unique,charset(UTF16)] */
uint32_t unknown3 ;
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrUseAdd {
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
const char * server_name ; /* [unique,charset(UTF16)] */
uint32_t level ;
union wkssvc_NetrUseGetInfoCtr * ctr ; /* [ref,switch_is(level)] */
uint32_t * parm_err ; /* [unique] */
} in ;
struct {
uint32_t * parm_err ; /* [unique] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrUseGetInfo {
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * use_name ; /* [ref,charset(UTF16)] */
uint32_t level ;
} in ;
struct {
union wkssvc_NetrUseGetInfoCtr * ctr ; /* [ref,switch_is(level)] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrUseDel {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
const char * use_name ; /* [ref,charset(UTF16)] */
uint32_t force_cond ;
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrUseEnum {
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
const char * server_name ; /* [unique,charset(UTF16)] */
uint32_t prefmaxlen ;
struct wkssvc_NetrUseEnumInfo * info ; /* [ref] */
uint32_t * resume_handle ; /* [unique] */
} in ;
struct {
uint32_t * entries_read ; /* [ref] */
struct wkssvc_NetrUseEnumInfo * info ; /* [ref] */
uint32_t * resume_handle ; /* [unique] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrMessageBufferSend {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
const char * message_name ; /* [ref,charset(UTF16)] */
const char * message_sender_name ; /* [unique,charset(UTF16)] */
uint8_t * message_buffer ; /* [ref,size_is(message_size)] */
uint32_t message_size ;
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrWorkstationStatisticsGet {
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * unknown2 ; /* [unique,charset(UTF16)] */
uint32_t unknown3 ;
uint32_t unknown4 ;
} in ;
struct {
struct wkssvc_NetrWorkstationStatistics * * info ; /* [ref] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrLogonDomainNameAdd {
struct {
const char * domain_name ; /* [ref,charset(UTF16)] */
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrLogonDomainNameDel {
struct {
const char * domain_name ; /* [ref,charset(UTF16)] */
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrJoinDomain {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
const char * domain_name ; /* [ref,charset(UTF16)] */
const char * account_ou ; /* [unique,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
const char * password ; /* [unique,charset(UTF16)] */
uint32_t join_flags ;
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrUnjoinDomain {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
const char * password ; /* [unique,charset(UTF16)] */
uint32_t unjoin_flags ;
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrRenameMachineInDomain {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
const char * NewMachineName ; /* [unique,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
const char * password ; /* [unique,charset(UTF16)] */
uint32_t RenameOptions ;
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrValidateName {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
const char * name ; /* [ref,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
const char * Password ; /* [unique,charset(UTF16)] */
enum wkssvc_NetValidateNameType name_type ;
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrGetJoinInformation {
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * * name_buffer ; /* [ref,charset(UTF16)] */
} in ;
struct {
enum wkssvc_NetJoinStatus * name_type ; /* [ref] */
const char * * name_buffer ; /* [ref,charset(UTF16)] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrGetJoinableOus {
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * domain_name ; /* [ref,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
const char * unknown ; /* [unique,charset(UTF16)] */
uint32_t * num_ous ; /* [ref] */
} in ;
struct {
2008-02-07 11:49:59 +03:00
const char * * * ous ; /* [ref,charset(UTF16),size_is(,*num_ous)] */
2007-11-30 03:44:44 +03:00
uint32_t * num_ous ; /* [ref] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
struct wkssvc_NetrJoinDomain2 {
struct {
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * domain_name ; /* [ref,charset(UTF16)] */
2007-11-30 03:44:44 +03:00
const char * account_ou ; /* [unique,charset(UTF16)] */
2006-09-20 02:22:57 +04:00
const char * admin_account ; /* [unique,charset(UTF16)] */
struct wkssvc_PasswordBuffer * encrypted_password ; /* [unique] */
uint32_t join_flags ;
2006-09-19 02:20:37 +04:00
} in ;
struct {
WERROR result ;
} out ;
} ;
struct wkssvc_NetrUnjoinDomain2 {
struct {
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * account ; /* [unique,charset(UTF16)] */
struct wkssvc_PasswordBuffer * encrypted_password ; /* [unique] */
uint32_t unjoin_flags ;
2006-09-19 02:20:37 +04:00
} in ;
struct {
WERROR result ;
} out ;
} ;
struct wkssvc_NetrRenameMachineInDomain2 {
struct {
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * NewMachineName ; /* [unique,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
struct wkssvc_PasswordBuffer * EncryptedPassword ; /* [unique] */
uint32_t RenameOptions ;
2006-09-19 02:20:37 +04:00
} in ;
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrValidateName2 {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
const char * name ; /* [ref,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
struct wkssvc_PasswordBuffer * EncryptedPassword ; /* [unique] */
enum wkssvc_NetValidateNameType name_type ;
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrGetJoinableOus2 {
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * domain_name ; /* [ref,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
struct wkssvc_PasswordBuffer * EncryptedPassword ; /* [unique] */
uint32_t * num_ous ; /* [ref] */
} in ;
struct {
2008-02-07 11:49:59 +03:00
const char * * * ous ; /* [ref,charset(UTF16),size_is(,*num_ous)] */
2007-11-30 03:44:44 +03:00
uint32_t * num_ous ; /* [ref] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
struct wkssvc_NetrAddAlternateComputerName {
struct {
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * NewAlternateMachineName ; /* [unique,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
struct wkssvc_PasswordBuffer * EncryptedPassword ; /* [unique] */
uint32_t Reserved ;
2006-09-19 02:20:37 +04:00
} in ;
struct {
WERROR result ;
} out ;
} ;
struct wkssvc_NetrRemoveAlternateComputerName {
struct {
2006-09-20 02:22:57 +04:00
const char * server_name ; /* [unique,charset(UTF16)] */
const char * AlternateMachineNameToRemove ; /* [unique,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
struct wkssvc_PasswordBuffer * EncryptedPassword ; /* [unique] */
uint32_t Reserved ;
2006-09-19 02:20:37 +04:00
} in ;
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrSetPrimaryComputername {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
const char * primary_name ; /* [unique,charset(UTF16)] */
const char * Account ; /* [unique,charset(UTF16)] */
struct wkssvc_PasswordBuffer * EncryptedPassword ; /* [unique] */
uint32_t Reserved ;
} in ;
2006-09-19 02:20:37 +04:00
struct {
WERROR result ;
} out ;
} ;
2007-11-30 03:44:44 +03:00
struct wkssvc_NetrEnumerateComputerNames {
struct {
const char * server_name ; /* [unique,charset(UTF16)] */
enum wkssvc_ComputerNameType name_type ;
uint32_t Reserved ;
} in ;
2006-09-19 02:20:37 +04:00
struct {
2007-11-30 03:44:44 +03:00
struct wkssvc_ComputerNamesCtr * * ctr ; /* [ref] */
2006-09-19 02:20:37 +04:00
WERROR result ;
} out ;
} ;
# endif /* _HEADER_wkssvc */