1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

wkssvc.idl: don't use pointer_default_top() and specify "unique" explizit

Note: this doesn't change the generated output!

metze
(This used to be commit f2227b3bb8dc74788614cc7eb9b84475f0a4a949)
This commit is contained in:
Stefan Metzmacher 2008-02-01 21:22:39 +01:00
parent 033e697c9e
commit b6c3e58a38

View File

@ -9,7 +9,6 @@ import "srvsvc.idl", "lsa.idl";
[ uuid("6bffd098-a112-3610-9833-46c3f87e345a"), [ uuid("6bffd098-a112-3610-9833-46c3f87e345a"),
version(1.0), version(1.0),
pointer_default(unique), pointer_default(unique),
pointer_default_top(unique),
helpstring("Workstation Service"), helpstring("Workstation Service"),
endpoint("ncacn_np:[\\pipe\\wkssvc]","ncacn_ip_tcp:","ncalrpc:") endpoint("ncacn_np:[\\pipe\\wkssvc]","ncacn_ip_tcp:","ncalrpc:")
] interface wkssvc ] interface wkssvc
@ -259,7 +258,7 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_NetWkstaInfo; } wkssvc_NetWkstaInfo;
WERROR wkssvc_NetWkstaGetInfo( WERROR wkssvc_NetWkstaGetInfo(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] uint32 level, [in] uint32 level,
[out,switch_is(level),ref] wkssvc_NetWkstaInfo *info [out,switch_is(level),ref] wkssvc_NetWkstaInfo *info
); );
@ -268,7 +267,7 @@ import "srvsvc.idl", "lsa.idl";
/******************/ /******************/
/* Function: 0x01 */ /* Function: 0x01 */
WERROR wkssvc_NetWkstaSetInfo( WERROR wkssvc_NetWkstaSetInfo(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] uint32 level, [in] uint32 level,
[in,switch_is(level),ref] wkssvc_NetWkstaInfo *info, [in,switch_is(level),ref] wkssvc_NetWkstaInfo *info,
[in,out,ref] uint32 *parm_error [in,out,ref] uint32 *parm_error
@ -309,11 +308,11 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_NetWkstaEnumUsersInfo; } wkssvc_NetWkstaEnumUsersInfo;
WERROR wkssvc_NetWkstaEnumUsers( WERROR wkssvc_NetWkstaEnumUsers(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,out,ref] wkssvc_NetWkstaEnumUsersInfo *info, [in,out,ref] wkssvc_NetWkstaEnumUsersInfo *info,
[in] uint32 prefmaxlen, [in] uint32 prefmaxlen,
[out,ref] uint32 *entries_read, [out,ref] uint32 *entries_read,
[in,out] uint32 *resume_handle [in,out,unique] uint32 *resume_handle
); );
/*****************************/ /*****************************/
@ -329,7 +328,7 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_NetrWkstaUserInfo; } wkssvc_NetrWkstaUserInfo;
WERROR wkssvc_NetrWkstaUserGetInfo( WERROR wkssvc_NetrWkstaUserGetInfo(
[in] [string,charset(UTF16)] uint16 *unknown, [in,unique] [string,charset(UTF16)] uint16 *unknown,
[in] uint32 level, [in] uint32 level,
[out,ref] [switch_is(level)] wkssvc_NetrWkstaUserInfo *info [out,ref] [switch_is(level)] wkssvc_NetrWkstaUserInfo *info
); );
@ -337,10 +336,10 @@ import "srvsvc.idl", "lsa.idl";
/*****************************/ /*****************************/
/* Function 0x04 */ /* Function 0x04 */
WERROR wkssvc_NetrWkstaUserSetInfo( WERROR wkssvc_NetrWkstaUserSetInfo(
[in] [string,charset(UTF16)] uint16 *unknown, [in,unique] [string,charset(UTF16)] uint16 *unknown,
[in] uint32 level, [in] uint32 level,
[in,ref] [switch_is(level)] wkssvc_NetrWkstaUserInfo *info, [in,ref] [switch_is(level)] wkssvc_NetrWkstaUserInfo *info,
[in,out] uint32 *parm_err [in,out,unique] uint32 *parm_err
); );
/*****************************/ /*****************************/
@ -369,29 +368,29 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_NetWkstaTransportInfo; } wkssvc_NetWkstaTransportInfo;
WERROR wkssvc_NetWkstaTransportEnum ( WERROR wkssvc_NetWkstaTransportEnum (
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,out,ref] wkssvc_NetWkstaTransportInfo *info, [in,out,ref] wkssvc_NetWkstaTransportInfo *info,
[in] uint32 max_buffer, [in] uint32 max_buffer,
[out,ref] uint32 *total_entries, [out,ref] uint32 *total_entries,
[in,out] uint32 *resume_handle [in,out,unique] uint32 *resume_handle
); );
/*****************************/ /*****************************/
/* Function 0x06 */ /* Function 0x06 */
/* only supported on NT */ /* only supported on NT */
WERROR wkssvc_NetrWkstaTransportAdd( WERROR wkssvc_NetrWkstaTransportAdd(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] uint32 level, /* must be 0 */ [in] uint32 level, /* must be 0 */
[in,ref] wkssvc_NetWkstaTransportInfo0 *info0, [in,ref] wkssvc_NetWkstaTransportInfo0 *info0,
[in,out] uint32 *parm_err [in,out,unique] uint32 *parm_err
); );
/*****************************/ /*****************************/
/* Function 0x07 */ /* Function 0x07 */
/* only supported on NT */ /* only supported on NT */
WERROR wkssvc_NetrWkstaTransportDel( WERROR wkssvc_NetrWkstaTransportDel(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 *transport_name, [in,unique] [string,charset(UTF16)] uint16 *transport_name,
[in] uint32 unknown3 [in] uint32 unknown3
); );
@ -437,16 +436,16 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_NetrUseGetInfoCtr; } wkssvc_NetrUseGetInfoCtr;
WERROR wkssvc_NetrUseAdd( WERROR wkssvc_NetrUseAdd(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] uint32 level, [in] uint32 level,
[in,ref] [switch_is(level)] wkssvc_NetrUseGetInfoCtr *ctr, [in,ref] [switch_is(level)] wkssvc_NetrUseGetInfoCtr *ctr,
[in,out] uint32 *parm_err [in,out,unique] uint32 *parm_err
); );
/*****************************/ /*****************************/
/* Function 0x09 */ /* Function 0x09 */
WERROR wkssvc_NetrUseGetInfo( WERROR wkssvc_NetrUseGetInfo(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,ref] [string,charset(UTF16)] uint16 *use_name, [in,ref] [string,charset(UTF16)] uint16 *use_name,
[in] uint32 level, [in] uint32 level,
[out,ref] [switch_is(level)] wkssvc_NetrUseGetInfoCtr *ctr [out,ref] [switch_is(level)] wkssvc_NetrUseGetInfoCtr *ctr
@ -455,7 +454,7 @@ import "srvsvc.idl", "lsa.idl";
/*****************************/ /*****************************/
/* Function 0x0a */ /* Function 0x0a */
WERROR wkssvc_NetrUseDel( WERROR wkssvc_NetrUseDel(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,ref] [string,charset(UTF16)] uint16 *use_name, [in,ref] [string,charset(UTF16)] uint16 *use_name,
[in] uint32 force_cond [in] uint32 force_cond
); );
@ -489,19 +488,19 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_NetrUseEnumInfo; } wkssvc_NetrUseEnumInfo;
WERROR wkssvc_NetrUseEnum( WERROR wkssvc_NetrUseEnum(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,out,ref] wkssvc_NetrUseEnumInfo *info, [in,out,ref] wkssvc_NetrUseEnumInfo *info,
[in] uint32 prefmaxlen, [in] uint32 prefmaxlen,
[out,ref] uint32 *entries_read, [out,ref] uint32 *entries_read,
[in,out] uint32 *resume_handle [in,out,unique] uint32 *resume_handle
); );
/*****************************/ /*****************************/
/* Function 0x0c */ /* Function 0x0c */
WERROR wkssvc_NetrMessageBufferSend( WERROR wkssvc_NetrMessageBufferSend(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,ref] [string,charset(UTF16)] uint16 *message_name, [in,ref] [string,charset(UTF16)] uint16 *message_name,
[in] [string,charset(UTF16)] uint16 *message_sender_name, [in,unique] [string,charset(UTF16)] uint16 *message_sender_name,
[in,ref] [size_is(message_size)] uint8 *message_buffer, [in,ref] [size_is(message_size)] uint8 *message_buffer,
[in] uint32 message_size [in] uint32 message_size
); );
@ -552,8 +551,8 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_NetrWorkstationStatistics; } wkssvc_NetrWorkstationStatistics;
WERROR wkssvc_NetrWorkstationStatisticsGet( WERROR wkssvc_NetrWorkstationStatisticsGet(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 *unknown2, [in,unique] [string,charset(UTF16)] uint16 *unknown2,
[in] uint32 unknown3, [in] uint32 unknown3,
[in] uint32 unknown4, [in] uint32 unknown4,
[out,ref] wkssvc_NetrWorkstationStatistics **info [out,ref] wkssvc_NetrWorkstationStatistics **info
@ -574,20 +573,20 @@ import "srvsvc.idl", "lsa.idl";
/*****************************/ /*****************************/
/* Function 0x10 */ /* Function 0x10 */
WERROR wkssvc_NetrJoinDomain( WERROR wkssvc_NetrJoinDomain(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,ref] [string,charset(UTF16)] uint16 *domain_name, [in,ref] [string,charset(UTF16)] uint16 *domain_name,
[in] [string,charset(UTF16)] uint16 *account_ou, [in,unique] [string,charset(UTF16)] uint16 *account_ou,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] [string,charset(UTF16)] uint16 *password, [in,unique] [string,charset(UTF16)] uint16 *password,
[in] wkssvc_joinflags join_flags [in] wkssvc_joinflags join_flags
); );
/*****************************/ /*****************************/
/* Function 0x11 */ /* Function 0x11 */
WERROR wkssvc_NetrUnjoinDomain( WERROR wkssvc_NetrUnjoinDomain(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] [string,charset(UTF16)] uint16 *password, [in,unique] [string,charset(UTF16)] uint16 *password,
[in] wkssvc_joinflags unjoin_flags [in] wkssvc_joinflags unjoin_flags
); );
@ -599,10 +598,10 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_renameflags; } wkssvc_renameflags;
WERROR wkssvc_NetrRenameMachineInDomain( WERROR wkssvc_NetrRenameMachineInDomain(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 *NewMachineName, [in,unique] [string,charset(UTF16)] uint16 *NewMachineName,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] [string,charset(UTF16)] uint16 *password, [in,unique] [string,charset(UTF16)] uint16 *password,
[in] wkssvc_renameflags RenameOptions [in] wkssvc_renameflags RenameOptions
); );
@ -618,10 +617,10 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_NetValidateNameType; } wkssvc_NetValidateNameType;
WERROR wkssvc_NetrValidateName( WERROR wkssvc_NetrValidateName(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,ref] [string,charset(UTF16)] uint16 *name, [in,ref] [string,charset(UTF16)] uint16 *name,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] [string,charset(UTF16)] uint16 *Password, [in,unique] [string,charset(UTF16)] uint16 *Password,
[in] wkssvc_NetValidateNameType name_type [in] wkssvc_NetValidateNameType name_type
); );
@ -635,7 +634,7 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_NetJoinStatus; } wkssvc_NetJoinStatus;
WERROR wkssvc_NetrGetJoinInformation( WERROR wkssvc_NetrGetJoinInformation(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,out,ref] [string,charset(UTF16)] uint16 **name_buffer, [in,out,ref] [string,charset(UTF16)] uint16 **name_buffer,
[out,ref] wkssvc_NetJoinStatus *name_type [out,ref] wkssvc_NetJoinStatus *name_type
); );
@ -643,10 +642,10 @@ import "srvsvc.idl", "lsa.idl";
/*****************************/ /*****************************/
/* Function 0x15 */ /* Function 0x15 */
WERROR wkssvc_NetrGetJoinableOus( WERROR wkssvc_NetrGetJoinableOus(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,ref] [string,charset(UTF16)] uint16 *domain_name, [in,ref] [string,charset(UTF16)] uint16 *domain_name,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] [string,charset(UTF16)] uint16 *unknown, [in,unique] [string,charset(UTF16)] uint16 *unknown,
[in,out,ref] uint32 *num_ous, [in,out,ref] uint32 *num_ous,
[out,ref] [size_is(*num_ous)] [string,charset(UTF16)] uint16 ***ous [out,ref] [size_is(*num_ous)] [string,charset(UTF16)] uint16 ***ous
); );
@ -687,50 +686,50 @@ import "srvsvc.idl", "lsa.idl";
/*****************************/ /*****************************/
/* Function 0x16 */ /* Function 0x16 */
WERROR wkssvc_NetrJoinDomain2 ( WERROR wkssvc_NetrJoinDomain2 (
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,ref] [string,charset(UTF16)] uint16 *domain_name, [in,ref] [string,charset(UTF16)] uint16 *domain_name,
[in] [string,charset(UTF16)] uint16 *account_ou, [in,unique] [string,charset(UTF16)] uint16 *account_ou,
[in] [string,charset(UTF16)] uint16 *admin_account, [in,unique] [string,charset(UTF16)] uint16 *admin_account,
[in] wkssvc_PasswordBuffer *encrypted_password, [in,unique] wkssvc_PasswordBuffer *encrypted_password,
[in] wkssvc_joinflags join_flags [in] wkssvc_joinflags join_flags
); );
/*****************************/ /*****************************/
/* Function 0x17 */ /* Function 0x17 */
WERROR wkssvc_NetrUnjoinDomain2 ( WERROR wkssvc_NetrUnjoinDomain2 (
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 *account, [in,unique] [string,charset(UTF16)] uint16 *account,
[in] wkssvc_PasswordBuffer *encrypted_password, [in,unique] wkssvc_PasswordBuffer *encrypted_password,
[in] wkssvc_joinflags unjoin_flags [in] wkssvc_joinflags unjoin_flags
); );
/*****************************/ /*****************************/
/* Function 0x18 */ /* Function 0x18 */
WERROR wkssvc_NetrRenameMachineInDomain2( WERROR wkssvc_NetrRenameMachineInDomain2(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 *NewMachineName, [in,unique] [string,charset(UTF16)] uint16 *NewMachineName,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] wkssvc_PasswordBuffer *EncryptedPassword, [in,unique] wkssvc_PasswordBuffer *EncryptedPassword,
[in] wkssvc_renameflags RenameOptions [in] wkssvc_renameflags RenameOptions
); );
/*****************************/ /*****************************/
/* Function 0x19 */ /* Function 0x19 */
WERROR wkssvc_NetrValidateName2( WERROR wkssvc_NetrValidateName2(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,ref] [string,charset(UTF16)] uint16 *name, [in,ref] [string,charset(UTF16)] uint16 *name,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] wkssvc_PasswordBuffer *EncryptedPassword, [in,unique] wkssvc_PasswordBuffer *EncryptedPassword,
[in] wkssvc_NetValidateNameType name_type [in] wkssvc_NetValidateNameType name_type
); );
/*****************************/ /*****************************/
/* Function 0x1a */ /* Function 0x1a */
WERROR wkssvc_NetrGetJoinableOus2( WERROR wkssvc_NetrGetJoinableOus2(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in,ref] [string,charset(UTF16)] uint16 *domain_name, [in,ref] [string,charset(UTF16)] uint16 *domain_name,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] wkssvc_PasswordBuffer *EncryptedPassword, [in,unique] wkssvc_PasswordBuffer *EncryptedPassword,
[in,out,ref] uint32 *num_ous, [in,out,ref] uint32 *num_ous,
[out,ref] [size_is(*num_ous)] [string,charset(UTF16)] uint16 ***ous [out,ref] [size_is(*num_ous)] [string,charset(UTF16)] uint16 ***ous
); );
@ -738,30 +737,30 @@ import "srvsvc.idl", "lsa.idl";
/*****************************/ /*****************************/
/* Function 0x1b */ /* Function 0x1b */
WERROR wkssvc_NetrAddAlternateComputerName( WERROR wkssvc_NetrAddAlternateComputerName(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 *NewAlternateMachineName, [in,unique] [string,charset(UTF16)] uint16 *NewAlternateMachineName,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] wkssvc_PasswordBuffer *EncryptedPassword, [in,unique] wkssvc_PasswordBuffer *EncryptedPassword,
[in] uint32 Reserved [in] uint32 Reserved
); );
/*****************************/ /*****************************/
/* Function 0x1c */ /* Function 0x1c */
WERROR wkssvc_NetrRemoveAlternateComputerName( WERROR wkssvc_NetrRemoveAlternateComputerName(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 *AlternateMachineNameToRemove, [in,unique] [string,charset(UTF16)] uint16 *AlternateMachineNameToRemove,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] wkssvc_PasswordBuffer *EncryptedPassword, [in,unique] wkssvc_PasswordBuffer *EncryptedPassword,
[in] uint32 Reserved [in] uint32 Reserved
); );
/*****************************/ /*****************************/
/* Function 0x1d */ /* Function 0x1d */
WERROR wkssvc_NetrSetPrimaryComputername( WERROR wkssvc_NetrSetPrimaryComputername(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 *primary_name, [in,unique] [string,charset(UTF16)] uint16 *primary_name,
[in] [string,charset(UTF16)] uint16 *Account, [in,unique] [string,charset(UTF16)] uint16 *Account,
[in] wkssvc_PasswordBuffer *EncryptedPassword, [in,unique] wkssvc_PasswordBuffer *EncryptedPassword,
[in] uint32 Reserved [in] uint32 Reserved
); );
@ -780,7 +779,7 @@ import "srvsvc.idl", "lsa.idl";
} wkssvc_ComputerNamesCtr; } wkssvc_ComputerNamesCtr;
WERROR wkssvc_NetrEnumerateComputerNames( WERROR wkssvc_NetrEnumerateComputerNames(
[in] [string,charset(UTF16)] uint16 *server_name, [in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] wkssvc_ComputerNameType name_type, [in] wkssvc_ComputerNameType name_type,
[in] uint32 Reserved, [in] uint32 Reserved,
[out,ref] wkssvc_ComputerNamesCtr **ctr [out,ref] wkssvc_ComputerNamesCtr **ctr