srvsvc

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	SrvsvcSyntaxUUID = &uuid.UUID{TimeLow: 0x4b324fc8, TimeMid: 0x1670, TimeHiAndVersion: 0x1d3, ClockSeqHiAndReserved: 0x12, ClockSeqLow: 0x78, Node: [6]uint8{0x5a, 0x47, 0xbf, 0x6e, 0xe1, 0x88}}
	// Syntax ID
	SrvsvcSyntaxV3_0 = &dcerpc.SyntaxID{IfUUID: SrvsvcSyntaxUUID, IfVersionMajor: 3, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "srvs"
)

Functions

func NewSrvsvcServerHandle

func NewSrvsvcServerHandle(o SrvsvcServer) dcerpc.ServerHandle

func RegisterSrvsvcServer

func RegisterSrvsvcServer(conn dcerpc.Conn, o SrvsvcServer, opts ...dcerpc.Option)

func SrvsvcServerHandle

func SrvsvcServerHandle(ctx context.Context, o SrvsvcServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)

Types

type ADTSecurityDescriptor

type ADTSecurityDescriptor struct {
	// Length:  The length of the Buffer member.
	Length uint32 `idl:"name:Length" json:"length"`
	// Buffer:  A buffer for the security descriptor in self-relative form. For more information,
	// see [MS-DTYP] section 2.4.6.
	Buffer []byte `idl:"name:Buffer;size_is:(Length)" json:"buffer"`
}

ADTSecurityDescriptor structure represents ADT_SECURITY_DESCRIPTOR RPC structure.

The ADT_SECURITY_DESCRIPTOR structure contains a security descriptor in self-relative format and a value that includes the length of the buffer that contains the descriptor. For more information, see [MS-DTYP] section 2.4.6.

func (*ADTSecurityDescriptor) MarshalNDR

func (o *ADTSecurityDescriptor) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ADTSecurityDescriptor) UnmarshalNDR

func (o *ADTSecurityDescriptor) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type AliasAddRequest

type AliasAddRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) that identifies the server. The client
	// MUST map this structure to an RPC binding handle (see [C706] sections 4.3.5 and 5.1.5.2).
	// The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. It MUST be one of the following
	// values.
	//
	//	+-------+------------------------------------------------------+
	//	|       |                                                      |
	//	| VALUE |                       MEANING                        |
	//	|       |                                                      |
	//	+-------+------------------------------------------------------+
	//	+-------+------------------------------------------------------+
	//	|     0 | The buffer is of type SERVER_ALIAS_INFO_0_CONTAINER. |
	//	+-------+------------------------------------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// InfoStruct: A pointer to the SERVER_ALIAS_INFO union that contains information about
	// the alias. The value of the Level parameter determines the type of the contents of
	// the InfoStruct parameter, as the preceding table shows.
	Info *ServerAliasInfo `idl:"name:InfoStruct;switch_is:Level" json:"info"`
}

AliasAddRequest structure represents the NetrServerAliasAdd operation request

func (*AliasAddRequest) MarshalNDR

func (o *AliasAddRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AliasAddRequest) UnmarshalNDR

func (o *AliasAddRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type AliasAddResponse

type AliasAddResponse struct {
	// Return: The NetrServerAliasAdd return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

AliasAddResponse structure represents the NetrServerAliasAdd operation response

func (*AliasAddResponse) MarshalNDR

func (o *AliasAddResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AliasAddResponse) UnmarshalNDR

func (o *AliasAddResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type AliasDeleteRequest

type AliasDeleteRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle ([C706] sections 4.3.5
	// and 5.1.5.2). If this parameter is NULL, the local computer is used.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. It MUST be one of the following
	// values.
	//
	//	+-------+------------------------------------------------------+
	//	|       |                                                      |
	//	| VALUE |                       MEANING                        |
	//	|       |                                                      |
	//	+-------+------------------------------------------------------+
	//	+-------+------------------------------------------------------+
	//	|     0 | The buffer is of type SERVER_ALIAS_INFO_0_CONTAINER. |
	//	+-------+------------------------------------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// InfoStruct: A pointer to the SERVER_ALIAS_INFO union that contains information about
	// the alias. The value of the Level parameter determines the type of the contents of
	// the InfoStruct parameter, as the preceding table shows.
	Info *ServerAliasInfo `idl:"name:InfoStruct;switch_is:Level" json:"info"`
}

AliasDeleteRequest structure represents the NetrServerAliasDel operation request

func (*AliasDeleteRequest) MarshalNDR

func (o *AliasDeleteRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AliasDeleteRequest) UnmarshalNDR

func (o *AliasDeleteRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type AliasDeleteResponse

type AliasDeleteResponse struct {
	// Return: The NetrServerAliasDel return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

AliasDeleteResponse structure represents the NetrServerAliasDel operation response

func (*AliasDeleteResponse) MarshalNDR

func (o *AliasDeleteResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AliasDeleteResponse) UnmarshalNDR

func (o *AliasDeleteResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type AliasEnumRequest

type AliasEnumRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// InfoStruct: A pointer to a structure, in the format of a SERVER_ALIAS_ENUM_STRUCT,
	// as specified in section 2.2.4.104. The SERVER_ALIAS_ENUM_STRUCT structure has a Level
	// member that specifies the type of structure to return in the ServerAliasInfo member.
	// The Level member MUST be one of the values specified in section 2.2.4.104.
	Info *ServerAliasEnum `idl:"name:InfoStruct" json:"info"`
	// PreferedMaximumLength: Specifies the preferred maximum length, in bytes, of the returned
	// data. If the specified value is MAX_PREFERRED_LENGTH, the method MUST attempt to
	// return all entries.
	PreferredMaximumLength uint32 `idl:"name:PreferedMaximumLength" json:"preferred_maximum_length"`
	// ResumeHandle: A pointer to a value that contains a handle, which is used to continue
	// an existing alias search in AliasList. The handle MUST be zero on the first call
	// and remain unchanged for subsequent calls. If the ResumeHandle parameter is NULL,
	// no resume handle MUST be stored. If this parameter is not NULL and the method returns
	// ERROR_MORE_DATA, this parameter receives an implementation-specific nonzero value
	// that can be passed in subsequent calls to this method to continue with the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
}

AliasEnumRequest structure represents the NetrServerAliasEnum operation request

func (*AliasEnumRequest) MarshalNDR

func (o *AliasEnumRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AliasEnumRequest) UnmarshalNDR

func (o *AliasEnumRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type AliasEnumResponse

type AliasEnumResponse struct {
	// InfoStruct: A pointer to a structure, in the format of a SERVER_ALIAS_ENUM_STRUCT,
	// as specified in section 2.2.4.104. The SERVER_ALIAS_ENUM_STRUCT structure has a Level
	// member that specifies the type of structure to return in the ServerAliasInfo member.
	// The Level member MUST be one of the values specified in section 2.2.4.104.
	Info *ServerAliasEnum `idl:"name:InfoStruct" json:"info"`
	// TotalEntries: The total number of entries that could have been enumerated if the
	// buffer had been big enough to hold all the entries.
	TotalEntries uint32 `idl:"name:TotalEntries" json:"total_entries"`
	// ResumeHandle: A pointer to a value that contains a handle, which is used to continue
	// an existing alias search in AliasList. The handle MUST be zero on the first call
	// and remain unchanged for subsequent calls. If the ResumeHandle parameter is NULL,
	// no resume handle MUST be stored. If this parameter is not NULL and the method returns
	// ERROR_MORE_DATA, this parameter receives an implementation-specific nonzero value
	// that can be passed in subsequent calls to this method to continue with the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
	// Return: The NetrServerAliasEnum return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

AliasEnumResponse structure represents the NetrServerAliasEnum operation response

func (*AliasEnumResponse) MarshalNDR

func (o *AliasEnumResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AliasEnumResponse) UnmarshalNDR

func (o *AliasEnumResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ConnectEnum

type ConnectEnum struct {
	// Level:  Specifies the information level of the data. This parameter MUST have one
	// of the following values.
	//
	//	+-------+--------------------------+
	//	|       |                          |
	//	| VALUE |         MEANING          |
	//	|       |                          |
	//	+-------+--------------------------+
	//	+-------+--------------------------+
	//	|     0 | CONNECT_INFO_0_CONTAINER |
	//	+-------+--------------------------+
	//	|     1 | CONNECT_INFO_1_CONTAINER |
	//	+-------+--------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// ConnectInfo:  Contains either a CONNECT_INFO_0_CONTAINER structure or a CONNECT_INFO_1_CONTAINER
	// structure depending on the value of the Level parameter. The enumerated elements
	// are returned in this member.
	ConnectInfo *ConnectEnumUnion `idl:"name:ConnectInfo;switch_is:Level" json:"connect_info"`
}

ConnectEnum structure represents CONNECT_ENUM_STRUCT RPC structure.

The CONNECT_ENUM_STRUCT structure specifies the information level that the client requests when invoking the NetrConnectionEnum (section 3.1.4.1) method and encapsulates the CONNECT_ENUM_UNION (section 2.2.3.1) union that receives the entries that are enumerated by the server.

func (*ConnectEnum) MarshalNDR

func (o *ConnectEnum) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConnectEnum) UnmarshalNDR

func (o *ConnectEnum) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ConnectEnumUnion

type ConnectEnumUnion struct {
	// Types that are assignable to Value
	//
	// *ConnectEnumUnion_Level0
	// *ConnectEnumUnion_Level1
	Value is_ConnectEnumUnion `json:"value"`
}

ConnectEnumUnion structure represents CONNECT_ENUM_UNION RPC union.

The CONNECT_ENUM_UNION union contains information about a connection. It is used in the definition of the CONNECTION_ENUM_STRUCT structure.

func (*ConnectEnumUnion) GetValue

func (o *ConnectEnumUnion) GetValue() any

func (*ConnectEnumUnion) MarshalUnionNDR

func (o *ConnectEnumUnion) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*ConnectEnumUnion) NDRSwitchValue

func (o *ConnectEnumUnion) NDRSwitchValue(sw uint32) uint32

func (*ConnectEnumUnion) UnmarshalUnionNDR

func (o *ConnectEnumUnion) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type ConnectEnumUnion_Level0

type ConnectEnumUnion_Level0 struct {
	// Level0:  A pointer to a structure containing information about a connection, as specified
	// in section 2.2.4.3.
	Level0 *ConnectInfo0Container `idl:"name:Level0" json:"level0"`
}

ConnectEnumUnion_Level0 structure represents CONNECT_ENUM_UNION RPC union arm.

It has following labels: 0

func (*ConnectEnumUnion_Level0) MarshalNDR

func (o *ConnectEnumUnion_Level0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConnectEnumUnion_Level0) UnmarshalNDR

func (o *ConnectEnumUnion_Level0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ConnectEnumUnion_Level1

type ConnectEnumUnion_Level1 struct {
	// Level1:  A pointer to a structure containing information about a connection, as specified
	// in section 2.2.4.4.
	Level1 *ConnectInfo1Container `idl:"name:Level1" json:"level1"`
}

ConnectEnumUnion_Level1 structure represents CONNECT_ENUM_UNION RPC union arm.

It has following labels: 1

func (*ConnectEnumUnion_Level1) MarshalNDR

func (o *ConnectEnumUnion_Level1) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConnectEnumUnion_Level1) UnmarshalNDR

func (o *ConnectEnumUnion_Level1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ConnectInfo0Container

type ConnectInfo0Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the CONNECTION_INFO_0 entries returned by the method.
	Buffer []*ConnectionInfo0 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ConnectInfo0Container structure represents CONNECT_INFO_0_CONTAINER RPC structure.

The CONNECT_INFO_0_CONTAINER structure contains a value that indicates the number of entries that the NetrConnectionEnum method returns and a pointer to the buffer that contains the entries.

func (*ConnectInfo0Container) MarshalNDR

func (o *ConnectInfo0Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConnectInfo0Container) UnmarshalNDR

func (o *ConnectInfo0Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ConnectInfo1Container

type ConnectInfo1Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the CONNECTION_INFO_1 entries returned by the method.
	Buffer []*ConnectionInfo1 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ConnectInfo1Container structure represents CONNECT_INFO_1_CONTAINER RPC structure.

The CONNECT_INFO_1_CONTAINER structure contains a value that indicates the number of entries that the NetrConnectionEnum method returns and a pointer to the buffer that contains the entries.

func (*ConnectInfo1Container) MarshalNDR

func (o *ConnectInfo1Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConnectInfo1Container) UnmarshalNDR

func (o *ConnectInfo1Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ConnectionEnumRequest

type ConnectionEnumRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Qualifier: A pointer to a null-terminated UTF-16 string that specifies a share name
	// or computer name for the connections of interest to the client.
	Qualifier string `idl:"name:Qualifier;string;pointer:unique" json:"qualifier"`
	// InfoStruct: A pointer to a structure, in the format of a CONNECT_ENUM_STRUCT (section
	// 2.2.4.5). The CONNECT_ENUM_STRUCT structure has a Level member that specifies the
	// type of structure to return. The Level member MUST be one of the values specified
	// in section 2.2.4.5.
	Info *ConnectEnum `idl:"name:InfoStruct" json:"info"`
	// PreferedMaximumLength: Specifies the preferred maximum length, in bytes, of the returned
	// data. If the value that is specified is MAX_PREFERRED_LENGTH (section 2.2.2.2), the
	// method MUST attempt to return all entries.
	PreferredMaximumLength uint32 `idl:"name:PreferedMaximumLength" json:"preferred_maximum_length"`
	// ResumeHandle: A pointer to a value that contains a handle that is used to continue
	// an existing TreeConnect search. The handle MUST be zero on the first call and left
	// unchanged for subsequent calls. If ResumeHandle is NULL, a resume handle MUST NOT
	// be stored. If this parameter is not NULL and the method returns ERROR_MORE_DATA,
	// this parameter receives an implementation-specific nonzero value that can be passed
	// in subsequent calls to this method to continue with the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
}

ConnectionEnumRequest structure represents the NetrConnectionEnum operation request

func (*ConnectionEnumRequest) MarshalNDR

func (o *ConnectionEnumRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConnectionEnumRequest) UnmarshalNDR

func (o *ConnectionEnumRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ConnectionEnumResponse

type ConnectionEnumResponse struct {
	// InfoStruct: A pointer to a structure, in the format of a CONNECT_ENUM_STRUCT (section
	// 2.2.4.5). The CONNECT_ENUM_STRUCT structure has a Level member that specifies the
	// type of structure to return. The Level member MUST be one of the values specified
	// in section 2.2.4.5.
	Info *ConnectEnum `idl:"name:InfoStruct" json:"info"`
	// TotalEntries: The total number of entries that could have been enumerated if the
	// buffer had been big enough to hold all the entries.
	TotalEntries uint32 `idl:"name:TotalEntries" json:"total_entries"`
	// ResumeHandle: A pointer to a value that contains a handle that is used to continue
	// an existing TreeConnect search. The handle MUST be zero on the first call and left
	// unchanged for subsequent calls. If ResumeHandle is NULL, a resume handle MUST NOT
	// be stored. If this parameter is not NULL and the method returns ERROR_MORE_DATA,
	// this parameter receives an implementation-specific nonzero value that can be passed
	// in subsequent calls to this method to continue with the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
	// Return: The NetrConnectionEnum return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ConnectionEnumResponse structure represents the NetrConnectionEnum operation response

func (*ConnectionEnumResponse) MarshalNDR

func (o *ConnectionEnumResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConnectionEnumResponse) UnmarshalNDR

func (o *ConnectionEnumResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ConnectionInfo0

type ConnectionInfo0 struct {
	// coni0_id:  Specifies a connection identifier. For more information, see Abstract
	// Data Model (section 3.1.1).
	Coni0ID uint32 `idl:"name:coni0_id" json:"coni0_id"`
}

ConnectionInfo0 structure represents CONNECTION_INFO_0 RPC structure.

The CONNECTION_INFO_0 structure contains the identifier of a connection.

func (*ConnectionInfo0) MarshalNDR

func (o *ConnectionInfo0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConnectionInfo0) UnmarshalNDR

func (o *ConnectionInfo0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ConnectionInfo1

type ConnectionInfo1 struct {
	// coni1_id:  Specifies a connection identifier.
	ID uint32 `idl:"name:coni1_id" json:"id"`
	// coni1_type:  Specifies the type of connection made from the local device name to
	// the shared resource. It MUST be one of the values listed in section 2.2.2.4.
	Type uint32 `idl:"name:coni1_type" json:"type"`
	// coni1_num_opens:  Specifies the number of files that are currently opened by using
	// the connection.
	NumOpens uint32 `idl:"name:coni1_num_opens" json:"num_opens"`
	// coni1_num_users:  Specifies the number of users on the connection.
	NumUsers uint32 `idl:"name:coni1_num_users" json:"num_users"`
	// coni1_time:  Specifies the number of seconds that the connection has been established.
	Time uint32 `idl:"name:coni1_time" json:"time"`
	// coni1_username:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// the name of the user that is associated with the connection.
	UserName string `idl:"name:coni1_username;string" json:"user_name"`
	// coni1_netname:  A pointer to a null-terminated Unicode UTF-16 Internet host name
	// or NetBIOS host name which is the computer name of the client. The value of this
	// member depends on which name was specified as the Qualifier parameter to the NetrConnectionEnum
	// (section 3.1.4.1) method. The name that is not specified in the Qualifier parameter
	// to NetrConnectionEnum MUST be returned in the coni1_netname field.
	NetworkName string `idl:"name:coni1_netname;string" json:"network_name"`
}

ConnectionInfo1 structure represents CONNECTION_INFO_1 RPC structure.

The CONNECTION_INFO_1 structure contains the identifier of a connection, the number of open files, the connection time, the number of users on the connection, and the type of connection.

func (*ConnectionInfo1) MarshalNDR

func (o *ConnectionInfo1) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConnectionInfo1) UnmarshalNDR

func (o *ConnectionInfo1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type CreateExitPointRequest

type CreateExitPointRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Uid: Specifies the GUID for the DFS link. This GUID MUST be obtained by using the
	// NetrDfsGetInfo (Opnum 4) method, which is specified in [MS-DFSNM] section 3.1.4.1.6.
	UID *dtyp.GUID `idl:"name:Uid" json:"uid"`
	// Prefix: A pointer to a null-terminated UTF-16 string that specifies the path of the
	// DFS link.
	Prefix string `idl:"name:Prefix;string" json:"prefix"`
	// Type: This parameter MUST be one of the values that are specified in section 2.2.2.13.
	Type uint32 `idl:"name:Type" json:"type"`
	// ShortPrefixLen: Specifies the size of the buffer passed in the ShortPrefix. The value
	// of this field MUST be within the range 0 through 32, inclusive.
	ShortPrefixLength uint32 `idl:"name:ShortPrefixLen" json:"short_prefix_length"`
}

CreateExitPointRequest structure represents the NetrDfsCreateExitPoint operation request

func (*CreateExitPointRequest) MarshalNDR

func (o *CreateExitPointRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*CreateExitPointRequest) UnmarshalNDR

func (o *CreateExitPointRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type CreateExitPointResponse

type CreateExitPointResponse struct {
	// ShortPrefix: A pointer to a null-terminated UTF-16 string that is the buffer where
	// the name of the DFS namespace root or link is returned.<147>
	ShortPrefix string `idl:"name:ShortPrefix;size_is:(ShortPrefixLen)" json:"short_prefix"`
	// Return: The NetrDfsCreateExitPoint return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

CreateExitPointResponse structure represents the NetrDfsCreateExitPoint operation response

func (*CreateExitPointResponse) MarshalNDR

func (o *CreateExitPointResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*CreateExitPointResponse) UnmarshalNDR

func (o *CreateExitPointResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type CreateLocalPartitionRequest

type CreateLocalPartitionRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// ShareName: A pointer to a null-terminated UTF-16 string that specifies the name of
	// a local disk share on the server to add to DFS.
	ShareName string `idl:"name:ShareName;string" json:"share_name"`
	// EntryUid: A pointer to a GUID type that specifies the GUID for this DFS share. The
	// GUID for this share MUST NOT match a GUID for an existing local partition.<133>
	EntryUID *dtyp.GUID `idl:"name:EntryUid" json:"entry_uid"`
	// EntryPrefix: A pointer to a null-terminated UTF-16 string that specifies the path
	// of the DFS share.
	EntryPrefix string `idl:"name:EntryPrefix;string" json:"entry_prefix"`
	// ShortName: A pointer to a null-terminated UTF-16 string that specifies the short-name
	// version (8.3 format) of the EntryPrefix parameter.
	ShortName string `idl:"name:ShortName;string" json:"short_name"`
	// RelationInfo: A pointer to a NET_DFS_ENTRY_ID_CONTAINER structure. Specifies the
	// DFS child links that are under the DFS share that is specified by the EntryPrefix
	// parameter.
	RelationInfo *NetDFSEntryIDContainer `idl:"name:RelationInfo" json:"relation_info"`
	// Force: The Force parameter is ignored and MUST be set to zero.
	Force int32 `idl:"name:Force" json:"force"`
}

CreateLocalPartitionRequest structure represents the NetrDfsCreateLocalPartition operation request

func (*CreateLocalPartitionRequest) MarshalNDR

func (*CreateLocalPartitionRequest) UnmarshalNDR

func (o *CreateLocalPartitionRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type CreateLocalPartitionResponse

type CreateLocalPartitionResponse struct {
	// Return: The NetrDfsCreateLocalPartition return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

CreateLocalPartitionResponse structure represents the NetrDfsCreateLocalPartition operation response

func (*CreateLocalPartitionResponse) MarshalNDR

func (*CreateLocalPartitionResponse) UnmarshalNDR

func (o *CreateLocalPartitionResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DeleteExitPointRequest

type DeleteExitPointRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) point that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Uid: Specifies the GUID that corresponds to the DFS link that is specified by the
	// Prefix parameter. This GUID MUST be obtained by using the NetrDfsGetInfo (Opnum 4)
	// method, specified in [MS-DFSNM] section 3.1.4.1.6.
	UID *dtyp.GUID `idl:"name:Uid" json:"uid"`
	// Prefix: A pointer to a null-terminated UTF-16 string that specifies the path of the
	// DFS link.
	Prefix string `idl:"name:Prefix;string" json:"prefix"`
	// Type: This parameter MUST be one of the values listed in section 2.2.2.13.
	Type uint32 `idl:"name:Type" json:"type"`
}

DeleteExitPointRequest structure represents the NetrDfsDeleteExitPoint operation request

func (*DeleteExitPointRequest) MarshalNDR

func (o *DeleteExitPointRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DeleteExitPointRequest) UnmarshalNDR

func (o *DeleteExitPointRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DeleteExitPointResponse

type DeleteExitPointResponse struct {
	// Return: The NetrDfsDeleteExitPoint return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

DeleteExitPointResponse structure represents the NetrDfsDeleteExitPoint operation response

func (*DeleteExitPointResponse) MarshalNDR

func (o *DeleteExitPointResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DeleteExitPointResponse) UnmarshalNDR

func (o *DeleteExitPointResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DeleteLocalPartitionRequest

type DeleteLocalPartitionRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Uid: Specifies the GUID of the DFS share to delete. This GUID MUST be obtained by
	// using the NetrDfsGetInfo (Opnum 4) method, which is specified in [MS-DFSNM] section
	// 3.1.4.1.6.
	UID *dtyp.GUID `idl:"name:Uid" json:"uid"`
	// Prefix: A pointer to a null-terminated UTF-16 string that contains the path to the
	// DFS share.
	Prefix string `idl:"name:Prefix;string" json:"prefix"`
}

DeleteLocalPartitionRequest structure represents the NetrDfsDeleteLocalPartition operation request

func (*DeleteLocalPartitionRequest) MarshalNDR

func (*DeleteLocalPartitionRequest) UnmarshalNDR

func (o *DeleteLocalPartitionRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DeleteLocalPartitionResponse

type DeleteLocalPartitionResponse struct {
	// Return: The NetrDfsDeleteLocalPartition return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

DeleteLocalPartitionResponse structure represents the NetrDfsDeleteLocalPartition operation response

func (*DeleteLocalPartitionResponse) MarshalNDR

func (*DeleteLocalPartitionResponse) UnmarshalNDR

func (o *DeleteLocalPartitionResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DiskEnumContainer

type DiskEnumContainer struct {
	// EntriesRead:  The number of entries that the method returns.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the DISK_INFO entries that the method returns.
	Buffer []*DiskInfo `idl:"name:Buffer;size_is:(EntriesRead);length_is:(EntriesRead)" json:"buffer"`
}

DiskEnumContainer structure represents DISK_ENUM_CONTAINER RPC structure.

The DISK_ENUM_CONTAINER structure contains a value that indicates the number of entries that the NetrServerDiskEnum method returns and a pointer to the buffer that contains the entries.

func (*DiskEnumContainer) MarshalNDR

func (o *DiskEnumContainer) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DiskEnumContainer) UnmarshalNDR

func (o *DiskEnumContainer) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type DiskEnumRequest

type DiskEnumRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. It MUST be the following value.
	//
	//	+-------+----------------------------------+
	//	|       |                                  |
	//	| VALUE |             MEANING              |
	//	|       |                                  |
	//	+-------+----------------------------------+
	//	+-------+----------------------------------+
	//	|     0 | The buffer is of type DISK_INFO. |
	//	+-------+----------------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// DiskInfoStruct: A pointer to a structure of type DISK_ENUM_CONTAINER, as specified
	// in section 2.2.4.92. Although this parameter is defined as an [in, out] parameter,
	// it is used only as an [out] parameter. The server MUST ignore any values that are
	// passed in this parameter.
	DiskInfo *DiskEnumContainer `idl:"name:DiskInfoStruct" json:"disk_info"`
	// PreferedMaximumLength: The server MUST ignore this parameter.
	PreferredMaximumLength uint32 `idl:"name:PreferedMaximumLength" json:"preferred_maximum_length"`
	// ResumeHandle: The server MUST ignore this parameter.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
}

DiskEnumRequest structure represents the NetrServerDiskEnum operation request

func (*DiskEnumRequest) MarshalNDR

func (o *DiskEnumRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DiskEnumRequest) UnmarshalNDR

func (o *DiskEnumRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DiskEnumResponse

type DiskEnumResponse struct {
	// DiskInfoStruct: A pointer to a structure of type DISK_ENUM_CONTAINER, as specified
	// in section 2.2.4.92. Although this parameter is defined as an [in, out] parameter,
	// it is used only as an [out] parameter. The server MUST ignore any values that are
	// passed in this parameter.
	DiskInfo *DiskEnumContainer `idl:"name:DiskInfoStruct" json:"disk_info"`
	// TotalEntries: The number of entries being returned in the Buffer member of the DiskInfoStruct
	// parameter. This MUST be in the range 0–26.
	TotalEntries uint32 `idl:"name:TotalEntries" json:"total_entries"`
	// ResumeHandle: The server MUST ignore this parameter.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
	// Return: The NetrServerDiskEnum return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

DiskEnumResponse structure represents the NetrServerDiskEnum operation response

func (*DiskEnumResponse) MarshalNDR

func (o *DiskEnumResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DiskEnumResponse) UnmarshalNDR

func (o *DiskEnumResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DiskInfo

type DiskInfo struct {
	// Disk:  The drive identifier of the disk device. This MUST consist of two Unicode
	// UTF-16 characters followed by the null-terminating character (for example, "A:\0").
	// The first character in this string MUST be a drive letter in the range "A" through
	// "Z", inclusive. The second character MUST be the ":" character.
	Disk string `idl:"name:Disk;string" json:"disk"`
}

DiskInfo structure represents DISK_INFO RPC structure.

The DISK_INFO structure contains information (the drive letter) about the disk device on the server.

func (*DiskInfo) MarshalNDR

func (o *DiskInfo) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DiskInfo) UnmarshalNDR

func (o *DiskInfo) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type FileCloseRequest

type FileCloseRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// FileId: Specifies the file identifier of the open file, device, or pipe to close.
	FileID uint32 `idl:"name:FileId" json:"file_id"`
}

FileCloseRequest structure represents the NetrFileClose operation request

func (*FileCloseRequest) MarshalNDR

func (o *FileCloseRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileCloseRequest) UnmarshalNDR

func (o *FileCloseRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type FileCloseResponse

type FileCloseResponse struct {
	// Return: The NetrFileClose return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

FileCloseResponse structure represents the NetrFileClose operation response

func (*FileCloseResponse) MarshalNDR

func (o *FileCloseResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileCloseResponse) UnmarshalNDR

func (o *FileCloseResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type FileEnum

type FileEnum struct {
	// Level:  Specifies the information level of the data. This parameter MUST have one
	// of the following values.
	//
	//	+-------+-----------------------+
	//	|       |                       |
	//	| VALUE |        MEANING        |
	//	|       |                       |
	//	+-------+-----------------------+
	//	+-------+-----------------------+
	//	|     2 | FILE_INFO_2_CONTAINER |
	//	+-------+-----------------------+
	//	|     3 | FILE_INFO_3_CONTAINER |
	//	+-------+-----------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// FileInfo:  Contains a file info container structure whose type is determined by the
	// Level parameter as shown in the preceding table. The enumerated elements are returned
	// in this member.
	FileInfo *FileEnumUnion `idl:"name:FileInfo;switch_is:Level" json:"file_info"`
}

FileEnum structure represents FILE_ENUM_STRUCT RPC structure.

The FILE_ENUM_STRUCT structure specifies the information level that the client requests in the NetrFileEnum method and encapsulates the FILE_ENUM_UNION union that receives the entries that are enumerated by the server.

func (*FileEnum) MarshalNDR

func (o *FileEnum) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileEnum) UnmarshalNDR

func (o *FileEnum) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type FileEnumRequest

type FileEnumRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// BasePath: A pointer to a null-terminated UTF-16 string that specifies a path component.
	BasePath string `idl:"name:BasePath;string;pointer:unique" json:"base_path"`
	// UserName: A pointer to a null-terminated UTF-16 string that specifies the name of
	// a user.
	UserName string `idl:"name:UserName;string;pointer:unique" json:"user_name"`
	// InfoStruct: A pointer to a structure, in the format of a FILE_ENUM_STRUCT. The FILE_ENUM_STRUCT
	// structure has a Level field that specifies the type of structure to return. The Level
	// member MUST be one of the values specified in section 2.2.4.10.
	Info *FileEnum `idl:"name:InfoStruct" json:"info"`
	// PreferedMaximumLength: Specifies the preferred maximum length, in bytes, of returned
	// data. If the value that is specified is MAX_PREFERRED_LENGTH, the method MUST attempt
	// to return all entries.
	PreferredMaximumLength uint32 `idl:"name:PreferedMaximumLength" json:"preferred_maximum_length"`
	// ResumeHandle: A pointer to a value that contains a handle that is used to continue
	// an Open connection search. The handle MUST be zero on the first call and left unchanged
	// for subsequent calls. If ResumeHandle is NULL, a resume handle MUST NOT be stored.
	// If this parameter is not NULL and the method returns ERROR_MORE_DATA, this parameter
	// receives an implementation-specific nonzero value that can be passed in subsequent
	// calls to this method to continue with the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
}

FileEnumRequest structure represents the NetrFileEnum operation request

func (*FileEnumRequest) MarshalNDR

func (o *FileEnumRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileEnumRequest) UnmarshalNDR

func (o *FileEnumRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type FileEnumResponse

type FileEnumResponse struct {
	// InfoStruct: A pointer to a structure, in the format of a FILE_ENUM_STRUCT. The FILE_ENUM_STRUCT
	// structure has a Level field that specifies the type of structure to return. The Level
	// member MUST be one of the values specified in section 2.2.4.10.
	Info *FileEnum `idl:"name:InfoStruct" json:"info"`
	// TotalEntries: The total number of entries that could have been enumerated if the
	// buffer had been big enough to hold all the entries.
	TotalEntries uint32 `idl:"name:TotalEntries" json:"total_entries"`
	// ResumeHandle: A pointer to a value that contains a handle that is used to continue
	// an Open connection search. The handle MUST be zero on the first call and left unchanged
	// for subsequent calls. If ResumeHandle is NULL, a resume handle MUST NOT be stored.
	// If this parameter is not NULL and the method returns ERROR_MORE_DATA, this parameter
	// receives an implementation-specific nonzero value that can be passed in subsequent
	// calls to this method to continue with the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
	// Return: The NetrFileEnum return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

FileEnumResponse structure represents the NetrFileEnum operation response

func (*FileEnumResponse) MarshalNDR

func (o *FileEnumResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileEnumResponse) UnmarshalNDR

func (o *FileEnumResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type FileEnumUnion

type FileEnumUnion struct {
	// Types that are assignable to Value
	//
	// *FileEnumUnion_Level2
	// *FileEnumUnion_Level3
	Value is_FileEnumUnion `json:"value"`
}

FileEnumUnion structure represents FILE_ENUM_UNION RPC union.

The FILE_ENUM_UNION union contains information about files, devices, and pipes. It is used in the definition of the FILE_ENUM_STRUCT structure.

func (*FileEnumUnion) GetValue

func (o *FileEnumUnion) GetValue() any

func (*FileEnumUnion) MarshalUnionNDR

func (o *FileEnumUnion) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*FileEnumUnion) NDRSwitchValue

func (o *FileEnumUnion) NDRSwitchValue(sw uint32) uint32

func (*FileEnumUnion) UnmarshalUnionNDR

func (o *FileEnumUnion) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type FileEnumUnion_Level2

type FileEnumUnion_Level2 struct {
	// Level2:  A pointer to a structure containing information about a file, device or
	// pipe, as specified in section 2.2.4.8.
	Level2 *FileInfo2Container `idl:"name:Level2" json:"level2"`
}

FileEnumUnion_Level2 structure represents FILE_ENUM_UNION RPC union arm.

It has following labels: 2

func (*FileEnumUnion_Level2) MarshalNDR

func (o *FileEnumUnion_Level2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileEnumUnion_Level2) UnmarshalNDR

func (o *FileEnumUnion_Level2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type FileEnumUnion_Level3

type FileEnumUnion_Level3 struct {
	// Level3:  A pointer to a structure containing information about a file, device or
	// pipe, as specified in section 2.2.4.9.
	Level3 *FileInfo3Container `idl:"name:Level3" json:"level3"`
}

FileEnumUnion_Level3 structure represents FILE_ENUM_UNION RPC union arm.

It has following labels: 3

func (*FileEnumUnion_Level3) MarshalNDR

func (o *FileEnumUnion_Level3) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileEnumUnion_Level3) UnmarshalNDR

func (o *FileEnumUnion_Level3) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type FileGetInfoRequest

type FileGetInfoRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// FileId: Specifies the file identifier of the open resource to return information
	// for. The value of this parameter MUST have been returned in a previous NetrFileEnum
	// method call.
	FileID uint32 `idl:"name:FileId" json:"file_id"`
	// Level: Specifies the information level of the data. This parameter MUST have one
	// of the following values.
	//
	//	+-------+-------------+
	//	|       |             |
	//	| VALUE |   MEANING   |
	//	|       |             |
	//	+-------+-------------+
	//	+-------+-------------+
	//	|     2 | FILE_INFO_2 |
	//	+-------+-------------+
	//	|     3 | FILE_INFO_3 |
	//	+-------+-------------+
	Level uint32 `idl:"name:Level" json:"level"`
}

FileGetInfoRequest structure represents the NetrFileGetInfo operation request

func (*FileGetInfoRequest) MarshalNDR

func (o *FileGetInfoRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileGetInfoRequest) UnmarshalNDR

func (o *FileGetInfoRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type FileGetInfoResponse

type FileGetInfoResponse struct {
	// InfoStruct: This parameter is of type LPFILE_INFO, which is defined in section 2.2.3.3.
	// Its contents are determined by the value of the Level member, as shown in the previous
	// parameter table.
	Info *FileInfo `idl:"name:InfoStruct;switch_is:Level" json:"info"`
	// Return: The NetrFileGetInfo return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

FileGetInfoResponse structure represents the NetrFileGetInfo operation response

func (*FileGetInfoResponse) MarshalNDR

func (o *FileGetInfoResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileGetInfoResponse) UnmarshalNDR

func (o *FileGetInfoResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type FileInfo

type FileInfo struct {
	// Types that are assignable to Value
	//
	// *FileInfo_2
	// *FileInfo_3
	Value is_FileInfo `json:"value"`
}

FileInfo structure represents FILE_INFO RPC union.

The FILE_INFO union contains information about a file, device, or pipe. This union is used by the NetrFileGetInfo method.

func (*FileInfo) GetValue

func (o *FileInfo) GetValue() any

func (*FileInfo) MarshalUnionNDR

func (o *FileInfo) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*FileInfo) NDRSwitchValue

func (o *FileInfo) NDRSwitchValue(sw uint32) uint32

func (*FileInfo) UnmarshalUnionNDR

func (o *FileInfo) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type FileInfo2

type FileInfo2 struct {
	// fi2_id:  Specifies a DWORD value that contains the identifier that is assigned to
	// the file, device, or pipe when it was opened. See section 3.1.1 for details.
	ID uint32 `idl:"name:fi2_id" json:"id"`
}

FileInfo2 structure represents FILE_INFO_2 RPC structure.

The FILE_INFO_2 structure contains the identifier for a file, device, or pipe.

func (*FileInfo2) MarshalNDR

func (o *FileInfo2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileInfo2) UnmarshalNDR

func (o *FileInfo2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type FileInfo2Container

type FileInfo2Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the FILE_INFO_2 entries returned by the method.
	Buffer []*FileInfo2 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

FileInfo2Container structure represents FILE_INFO_2_CONTAINER RPC structure.

The FILE_INFO_2_CONTAINER structure contains a value that indicates the number of entries that the NetrFileEnum method returns and a pointer to the buffer that contains the entries.

func (*FileInfo2Container) MarshalNDR

func (o *FileInfo2Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileInfo2Container) UnmarshalNDR

func (o *FileInfo2Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type FileInfo3

type FileInfo3 struct {
	// fi3_id:  Specifies a DWORD value that contains the identifier that is assigned to
	// the file, device, or pipe when it was opened. See section 3.1.1 for details.
	ID uint32 `idl:"name:fi3_id" json:"id"`
	// fi3_permissions:  Specifies a DWORD value that contains the access permissions that
	// are associated with the opening application. This member MUST be a combination of
	// one or more of the following values.
	//
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	|                             |                                                                                  |
	//	|            VALUE            |                                     MEANING                                      |
	//	|                             |                                                                                  |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| PERM_FILE_READ 0x00000001   | Permission to read a resource, and, by default, execute the resource.            |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| PERM_FILE_WRITE 0x00000002  | Permission to write to a resource.                                               |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| PERM_FILE_CREATE 0x00000004 | Permission to create a resource; data can be written when creating the resource. |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| ACCESS_EXEC 0x00000008      | Permission to execute a resource.                                                |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| ACCESS_DELETE 0x00000010    | Permission to delete a resource.                                                 |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| ACCESS_ATRIB 0x00000020     | Permission to modify the attributes of a resource.                               |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| ACCESS_PERM 0x00000040      | Permission to modify the permissions assigned to a resource for a user or        |
	//	|                             | application.                                                                     |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	Permissions uint32 `idl:"name:fi3_permissions" json:"permissions"`
	// fi3_num_locks:  Specifies a DWORD value that contains the number of file locks on
	// the file, device, or pipe.
	NumLocks uint32 `idl:"name:fi3_num_locks" json:"num_locks"`
	// fi3_pathname:  A pointer to a string that specifies the path of the opened file,
	// device, or pipe.
	PathName string `idl:"name:fi3_pathname;string" json:"path_name"`
	// fi3_username:  A pointer to a string that specifies which user opened the file, device,
	// or pipe.
	UserName string `idl:"name:fi3_username;string" json:"user_name"`
}

FileInfo3 structure represents FILE_INFO_3 RPC structure.

The FILE_INFO_3 structure contains the identifier and other pertinent information about files, devices, and pipes.

func (*FileInfo3) MarshalNDR

func (o *FileInfo3) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileInfo3) UnmarshalNDR

func (o *FileInfo3) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type FileInfo3Container

type FileInfo3Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the FILE_INFO_3 entries returned by the method.
	Buffer []*FileInfo3 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

FileInfo3Container structure represents FILE_INFO_3_CONTAINER RPC structure.

The FILE_INFO_3_CONTAINER structure contains a value that indicates the number of entries that the NetrFileEnum method returns and a pointer to the buffer that contains the entries.

func (*FileInfo3Container) MarshalNDR

func (o *FileInfo3Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileInfo3Container) UnmarshalNDR

func (o *FileInfo3Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type FileInfo_2

type FileInfo_2 struct {
	// FileInfo2:  A pointer to a structure that contains information about a file, device,
	// or pipe. For more details, see FILE_INFO_2 (section 2.2.4.6).
	FileInfo2 *FileInfo2 `idl:"name:FileInfo2" json:"file_info2"`
}

FileInfo_2 structure represents FILE_INFO RPC union arm.

It has following labels: 2

func (*FileInfo_2) MarshalNDR

func (o *FileInfo_2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileInfo_2) UnmarshalNDR

func (o *FileInfo_2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type FileInfo_3

type FileInfo_3 struct {
	// FileInfo3:  A pointer to a structure that contains information about a file, device,
	// or pipe. For more details, see FILE_INFO_3 (section 2.2.4.7).
	FileInfo3 *FileInfo3 `idl:"name:FileInfo3" json:"file_info3"`
}

FileInfo_3 structure represents FILE_INFO RPC union arm.

It has following labels: 3

func (*FileInfo_3) MarshalNDR

func (o *FileInfo_3) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FileInfo_3) UnmarshalNDR

func (o *FileInfo_3) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type FixLocalVolumeRequest

type FixLocalVolumeRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// VolumeName: A pointer to a null-terminated UTF-16 string that specifies the target
	// for the DFS root share. This target MUST be local to the server; for example, \??\C:\DfsShare.<160>
	// This target SHOULD NOT contain a directory that is in DFS, and it SHOULD NOT be a
	// child of a DFS share. If the specified volume name is not valid, the server SHOULD
	// fail the call by using an implementation-specific error code.
	VolumeName string `idl:"name:VolumeName;string" json:"volume_name"`
	// EntryType: This parameter MUST be one of the values listed in section 2.2.2.13. If
	// the specified entry type is not valid, the server SHOULD fail the call with an implementation-specific
	// error code.
	EntryType uint32 `idl:"name:EntryType" json:"entry_type"`
	// ServiceType: This parameter MUST be a combination of one or more of the following
	// values. If the specified service type is not valid, the server SHOULD fail the call
	// with an implementation-specific error code.
	//
	//	+-----------------------------------------+--------------------------------+
	//	|                                         |                                |
	//	|                  VALUE                  |            MEANING             |
	//	|                                         |                                |
	//	+-----------------------------------------+--------------------------------+
	//	+-----------------------------------------+--------------------------------+
	//	| DFS_SERVICE_TYPE_MASTER 0x00000001      | Master service                 |
	//	+-----------------------------------------+--------------------------------+
	//	| DFS_SERVICE_TYPE_READONLY 0x00000002    | Read-only service              |
	//	+-----------------------------------------+--------------------------------+
	//	| DFS_SERVICE_TYPE_LOCAL 0x00000004       | Local service                  |
	//	+-----------------------------------------+--------------------------------+
	//	| DFS_SERVICE_TYPE_REFERRAL 0x00000008    | Referral service               |
	//	+-----------------------------------------+--------------------------------+
	//	| DFS_SERVICE_TYPE_ACTIVE 0x000000010     | Active service                 |
	//	+-----------------------------------------+--------------------------------+
	//	| DFS_SERVICE_TYPE_DOWN_LEVEL 0x000000020 | Down-level service             |
	//	+-----------------------------------------+--------------------------------+
	//	| DFS_SERVICE_TYPE_COSTLIER 0x000000040   | Costlier service than previous |
	//	+-----------------------------------------+--------------------------------+
	//	| DFS_SERVICE_TYPE_OFFLINE 0x000000080    | Service is offline             |
	//	+-----------------------------------------+--------------------------------+
	ServiceType uint32 `idl:"name:ServiceType" json:"service_type"`
	// StgId: A pointer to a variable that specifies an ID for the local storage. The server
	// MUST ignore the value that is passed in for the StgId parameter.
	StorageID string `idl:"name:StgId;string" json:"storage_id"`
	// EntryUid: Specifies the GUID that corresponds to the DFS share. This GUID MUST be
	// obtained by using the NetrDfsGetInfo (Opnum 4) method, which is specified in [MS-DFSNM]
	// section 3.1.4.1.6.
	EntryUID *dtyp.GUID `idl:"name:EntryUid" json:"entry_uid"`
	// EntryPrefix: A pointer to a null-terminated UTF-16 string that specifies the path
	// of the DFS share to be updated.
	EntryPrefix string `idl:"name:EntryPrefix;string" json:"entry_prefix"`
	// RelationInfo: A pointer to a NET_DFS_ENTRY_ID_CONTAINER structure as specified in
	// section 2.2.4.108. Specifies the DFS child links under the DFS share as specified
	// by the EntryPrefix parameter.
	RelationInfo *NetDFSEntryIDContainer `idl:"name:RelationInfo" json:"relation_info"`
	// CreateDisposition: Specifies what to do, depending on whether the share already exists.
	// This field MUST be set to one of the following values.
	//
	//	+---------------------------+----------------------------------------------------------------------------------+
	//	|                           |                                                                                  |
	//	|           VALUE           |                                     MEANING                                      |
	//	|                           |                                                                                  |
	//	+---------------------------+----------------------------------------------------------------------------------+
	//	+---------------------------+----------------------------------------------------------------------------------+
	//	| FILE_SUPERSEDE 0x00000000 | If the share already exists, replace it with the specified share. If it does not |
	//	|                           | exist, create the specified share.                                               |
	//	+---------------------------+----------------------------------------------------------------------------------+
	//	| FILE_OPEN 0x00000001      | If the share already exists, fail the request and do not create or open the      |
	//	|                           | specified share. If it does not exist, create the specified share.               |
	//	+---------------------------+----------------------------------------------------------------------------------+
	//	| FILE_CREATE 0x00000002    | If the file already exists, open it instead of creating a new share. If it does  |
	//	|                           | not exist, fail the request and do not create a new share.                       |
	//	+---------------------------+----------------------------------------------------------------------------------+
	CreateDisposition uint32 `idl:"name:CreateDisposition" json:"create_disposition"`
}

FixLocalVolumeRequest structure represents the NetrDfsFixLocalVolume operation request

func (*FixLocalVolumeRequest) MarshalNDR

func (o *FixLocalVolumeRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FixLocalVolumeRequest) UnmarshalNDR

func (o *FixLocalVolumeRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type FixLocalVolumeResponse

type FixLocalVolumeResponse struct {
	// Return: The NetrDfsFixLocalVolume return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

FixLocalVolumeResponse structure represents the NetrDfsFixLocalVolume operation response

func (*FixLocalVolumeResponse) MarshalNDR

func (o *FixLocalVolumeResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*FixLocalVolumeResponse) UnmarshalNDR

func (o *FixLocalVolumeResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetFileSecurityRequest

type GetFileSecurityRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// ShareName: A pointer to a null-terminated UTF-16 string that specifies the share
	// name on which the file is found.
	ShareName string `idl:"name:ShareName;string;pointer:unique" json:"share_name"`
	// lpFileName: A pointer to a null-terminated UTF-16 string that specifies the name
	// of the file or directory whose security is being retrieved. The name MUST specify
	// the full path to the file from the ShareName parameter.
	FileName string `idl:"name:lpFileName;string" json:"file_name"`
	// RequestedInformation: The type of security information being requested, as specified
	// in [MS-DTYP] section 2.4.7.
	RequestedInformation uint32 `idl:"name:RequestedInformation" json:"requested_information"`
}

GetFileSecurityRequest structure represents the NetrpGetFileSecurity operation request

func (*GetFileSecurityRequest) MarshalNDR

func (o *GetFileSecurityRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetFileSecurityRequest) UnmarshalNDR

func (o *GetFileSecurityRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetFileSecurityResponse

type GetFileSecurityResponse struct {
	// SecurityDescriptor: A pointer to a PADT_SECURITY_DESCRIPTOR structure, where the
	// desired information is returned.
	SecurityDescriptor *ADTSecurityDescriptor `idl:"name:SecurityDescriptor" json:"security_descriptor"`
	// Return: The NetrpGetFileSecurity return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

GetFileSecurityResponse structure represents the NetrpGetFileSecurity operation response

func (*GetFileSecurityResponse) MarshalNDR

func (o *GetFileSecurityResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetFileSecurityResponse) UnmarshalNDR

func (o *GetFileSecurityResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetInfoRequest

type GetInfoRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2).
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. The value of the Level parameter
	// determines the contents of the InfoStruct parameter. This parameter MUST be one of
	// the following values.
	//
	//	+-------+-------------------+
	//	|       |                   |
	//	| VALUE |      MEANING      |
	//	|       |                   |
	//	+-------+-------------------+
	//	+-------+-------------------+
	//	|   100 | LPSERVER_INFO_100 |
	//	+-------+-------------------+
	//	|   101 | LPSERVER_INFO_101 |
	//	+-------+-------------------+
	//	|   102 | LPSERVER_INFO_102 |
	//	+-------+-------------------+
	//	|   103 | LPSERVER_INFO_103 |
	//	+-------+-------------------+
	//	|   502 | LPSERVER_INFO_502 |
	//	+-------+-------------------+
	//	|   503 | LPSERVER_INFO_503 |
	//	+-------+-------------------+
	Level uint32 `idl:"name:Level" json:"level"`
}

GetInfoRequest structure represents the NetrServerGetInfo operation request

func (*GetInfoRequest) MarshalNDR

func (o *GetInfoRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetInfoRequest) UnmarshalNDR

func (o *GetInfoRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetInfoResponse

type GetInfoResponse struct {
	// InfoStruct: This is a structure of type LPSERVER_INFO, as specified in section 2.2.3.7.
	// The content of the InfoStruct parameter is determined by the Level parameter, as
	// the preceding table shows.
	Info *ServerInfo `idl:"name:InfoStruct;switch_is:Level" json:"info"`
	// Return: The NetrServerGetInfo return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

GetInfoResponse structure represents the NetrServerGetInfo operation response

func (*GetInfoResponse) MarshalNDR

func (o *GetInfoResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetInfoResponse) UnmarshalNDR

func (o *GetInfoResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetVersionRequest

type GetVersionRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
}

GetVersionRequest structure represents the NetrDfsGetVersion operation request

func (*GetVersionRequest) MarshalNDR

func (o *GetVersionRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetVersionRequest) UnmarshalNDR

func (o *GetVersionRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetVersionResponse

type GetVersionResponse struct {
	// Version: A pointer to a DWORD where the server returns the DFS version.
	Version uint32 `idl:"name:Version" json:"version"`
	// Return: The NetrDfsGetVersion return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

GetVersionResponse structure represents the NetrDfsGetVersion operation response

func (*GetVersionResponse) MarshalNDR

func (o *GetVersionResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetVersionResponse) UnmarshalNDR

func (o *GetVersionResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ManagerReportSiteInfoRequest

type ManagerReportSiteInfoRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2).
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// ppSiteInfo: A pointer to an LPDFS_SITELIST_INFO structure, which in turn points to
	// the location of a DFS_SITELIST_INFO structure in which the information is returned.
	SiteInfo *SiteListInfo `idl:"name:ppSiteInfo;pointer:unique" json:"site_info"`
}

ManagerReportSiteInfoRequest structure represents the NetrDfsManagerReportSiteInfo operation request

func (*ManagerReportSiteInfoRequest) MarshalNDR

func (*ManagerReportSiteInfoRequest) UnmarshalNDR

func (o *ManagerReportSiteInfoRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ManagerReportSiteInfoResponse

type ManagerReportSiteInfoResponse struct {
	// ppSiteInfo: A pointer to an LPDFS_SITELIST_INFO structure, which in turn points to
	// the location of a DFS_SITELIST_INFO structure in which the information is returned.
	SiteInfo *SiteListInfo `idl:"name:ppSiteInfo;pointer:unique" json:"site_info"`
	// Return: The NetrDfsManagerReportSiteInfo return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ManagerReportSiteInfoResponse structure represents the NetrDfsManagerReportSiteInfo operation response

func (*ManagerReportSiteInfoResponse) MarshalNDR

func (*ManagerReportSiteInfoResponse) UnmarshalNDR

func (o *ManagerReportSiteInfoResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ModifyPrefixRequest

type ModifyPrefixRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Uid: Specifies the GUID that corresponds to the DFS link that needs to be changed.
	// This GUID MUST be obtained by using the NetrDfsGetInfo (Opnum 4) method, specified
	// in [MS-DFSNM] section 3.1.4.1.6.
	UID *dtyp.GUID `idl:"name:Uid" json:"uid"`
	// Prefix: A pointer to a null-terminated UTF-16 string that specifies the path of the
	// updated DFS link.
	Prefix string `idl:"name:Prefix;string" json:"prefix"`
}

ModifyPrefixRequest structure represents the NetrDfsModifyPrefix operation request

func (*ModifyPrefixRequest) MarshalNDR

func (o *ModifyPrefixRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ModifyPrefixRequest) UnmarshalNDR

func (o *ModifyPrefixRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ModifyPrefixResponse

type ModifyPrefixResponse struct {
	// Return: The NetrDfsModifyPrefix return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ModifyPrefixResponse structure represents the NetrDfsModifyPrefix operation response

func (*ModifyPrefixResponse) MarshalNDR

func (o *ModifyPrefixResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ModifyPrefixResponse) UnmarshalNDR

func (o *ModifyPrefixResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type NameCanonicalizeRequest

type NameCanonicalizeRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Name: A pointer to a null-terminated UTF-16 string specifying the name to canonicalize.
	Name string `idl:"name:Name;string" json:"name"`
	// OutbufLen: The length of output buffer Outbuf. The value of this field MUST be within
	// the range 0 through 64,000, inclusive.
	OutputBufferLength uint32 `idl:"name:OutbufLen" json:"output_buffer_length"`
	// NameType: The type of Name, as specified in section 2.2.2.8.
	NameType uint32 `idl:"name:NameType" json:"name_type"`
	// Flags: A bitmask that MUST contain the bitwise OR of zero or more of the following
	// values that specify controlling flags.
	//
	//	+------------+----------------------------------------------------------------------------------+
	//	|            |                                                                                  |
	//	|   VALUE    |                                     MEANING                                      |
	//	|            |                                                                                  |
	//	+------------+----------------------------------------------------------------------------------+
	//	+------------+----------------------------------------------------------------------------------+
	//	| 0x80000000 | LM2.x compatible name canonicalization.                                          |
	//	+------------+----------------------------------------------------------------------------------+
	//	| 0x00000001 | If set, the method requires the length of the output buffer to be sufficient     |
	//	|            | to hold any name of the specified type. Otherwise, the buffer length only needs  |
	//	|            | to be large enough to hold the canonicalized version of the input name that is   |
	//	|            | specified in this invocation of the method.                                      |
	//	+------------+----------------------------------------------------------------------------------+
	Flags uint32 `idl:"name:Flags" json:"flags"`
}

NameCanonicalizeRequest structure represents the NetprNameCanonicalize operation request

func (*NameCanonicalizeRequest) MarshalNDR

func (o *NameCanonicalizeRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*NameCanonicalizeRequest) UnmarshalNDR

func (o *NameCanonicalizeRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type NameCanonicalizeResponse

type NameCanonicalizeResponse struct {
	// Outbuf: A pointer to a null-terminated UTF-16 string that is the buffer where the
	// canonicalized name is returned.
	OutputBuffer string `idl:"name:Outbuf;size_is:(OutbufLen)" json:"output_buffer"`
	// Return: The NetprNameCanonicalize return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

NameCanonicalizeResponse structure represents the NetprNameCanonicalize operation response

func (*NameCanonicalizeResponse) MarshalNDR

func (o *NameCanonicalizeResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*NameCanonicalizeResponse) UnmarshalNDR

func (o *NameCanonicalizeResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type NameCompareRequest

type NameCompareRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Name1: A pointer to a null-terminated UTF-16 string that contains the first name
	// to compare.
	Name1 string `idl:"name:Name1;string" json:"name1"`
	// Name2: A pointer to a null-terminated UTF-16 string that contains the second name
	// to compare.
	Name2 string `idl:"name:Name2;string" json:"name2"`
	// NameType: The type of names, as specified in section 2.2.2.8.
	NameType uint32 `idl:"name:NameType" json:"name_type"`
	// Flags: A bitmask that MUST contain the bitwise OR of zero or more of the following
	// values, which specify controlling flags.
	//
	//	+------------+----------------------------------------------------------------------------------+
	//	|            |                                                                                  |
	//	|   VALUE    |                                     MEANING                                      |
	//	|            |                                                                                  |
	//	+------------+----------------------------------------------------------------------------------+
	//	+------------+----------------------------------------------------------------------------------+
	//	| 0x80000000 | Enable LM2.x compatibility.                                                      |
	//	+------------+----------------------------------------------------------------------------------+
	//	| 0x00000001 | SHOULD be set if both names have already been canonicalized (by using            |
	//	|            | NetprNameCanonicalize).                                                          |
	//	+------------+----------------------------------------------------------------------------------+
	Flags uint32 `idl:"name:Flags" json:"flags"`
}

NameCompareRequest structure represents the NetprNameCompare operation request

func (*NameCompareRequest) MarshalNDR

func (o *NameCompareRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*NameCompareRequest) UnmarshalNDR

func (o *NameCompareRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type NameCompareResponse

type NameCompareResponse struct {
	// Return: The NetprNameCompare return value.
	Return int32 `idl:"name:Return" json:"return"`
}

NameCompareResponse structure represents the NetprNameCompare operation response

func (*NameCompareResponse) MarshalNDR

func (o *NameCompareResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*NameCompareResponse) UnmarshalNDR

func (o *NameCompareResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type NameValidateRequest

type NameValidateRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Name: A pointer to a null-terminated UTF-16 string that specifies the name to check.
	Name string `idl:"name:Name;string" json:"name"`
	// NameType: The type of Name. It MUST be one of the values defined in section 2.2.2.8.
	NameType uint32 `idl:"name:NameType" json:"name_type"`
	// Flags: Reserved, MUST be zero.
	Flags uint32 `idl:"name:Flags" json:"flags"`
}

NameValidateRequest structure represents the NetprNameValidate operation request

func (*NameValidateRequest) MarshalNDR

func (o *NameValidateRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*NameValidateRequest) UnmarshalNDR

func (o *NameValidateRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type NameValidateResponse

type NameValidateResponse struct {
	// Return: The NetprNameValidate return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

NameValidateResponse structure represents the NetprNameValidate operation response

func (*NameValidateResponse) MarshalNDR

func (o *NameValidateResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*NameValidateResponse) UnmarshalNDR

func (o *NameValidateResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type NetDFSEntryID

type NetDFSEntryID struct {
	// Uid:  Specifies the unique identifier for the partition.
	UID *dtyp.GUID `idl:"name:Uid" json:"uid"`
	// Prefix:  A pointer to a null-terminated Unicode UTF-16 string that contains the path
	// prefix for the partition.
	Prefix string `idl:"name:Prefix;string" json:"prefix"`
}

NetDFSEntryID structure represents NET_DFS_ENTRY_ID RPC structure.

The NET_DFS_ENTRY_ID structure specifies a DFS local partition.

func (*NetDFSEntryID) MarshalNDR

func (o *NetDFSEntryID) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*NetDFSEntryID) UnmarshalNDR

func (o *NetDFSEntryID) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type NetDFSEntryIDContainer

type NetDFSEntryIDContainer struct {
	// Count:  The count of buffer array entries returned by the method.
	Count uint32 `idl:"name:Count" json:"count"`
	// Buffer:  An array of NET_DFS_ENTRY_ID entries returned by the method.
	Buffer []*NetDFSEntryID `idl:"name:Buffer;size_is:(Count)" json:"buffer"`
}

NetDFSEntryIDContainer structure represents NET_DFS_ENTRY_ID_CONTAINER RPC structure.

The NET_DFS_ENTRY_ID_CONTAINER structure contains a pointer to a buffer that contains NET_DFS_ENTRY_ID entries and a value that indicates the count of entries in the buffer.

func (*NetDFSEntryIDContainer) MarshalNDR

func (o *NetDFSEntryIDContainer) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*NetDFSEntryIDContainer) UnmarshalNDR

func (o *NetDFSEntryIDContainer) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type PathCanonicalizeRequest

type PathCanonicalizeRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// PathName: A pointer to a null-terminated UTF-16 string that specifies the path name
	// to canonicalize.
	PathName string `idl:"name:PathName;string" json:"path_name"`
	// OutbufLen: The length, in bytes, of the output buffer, Outbuf. The value of this
	// field MUST be within the range 0–64,000, inclusive.
	OutputBufferLength uint32 `idl:"name:OutbufLen" json:"output_buffer_length"`
	// Prefix: A pointer to a null-terminated UTF-16 string that specifies an optional prefix
	// to use when canonicalizing a relative path name.
	Prefix string `idl:"name:Prefix;string" json:"prefix"`
	// PathType: A place to store the path type. This parameter MUST be set by the client
	// either to zero or to one of the values defined in section 2.2.2.9. After successful
	// completion of the request, the server MUST set PathType to one of the values defined
	// in section 2.2.2.9.
	PathType uint32 `idl:"name:PathType" json:"path_type"`
	// Flags: Reserved, MUST be zero.
	Flags uint32 `idl:"name:Flags" json:"flags"`
}

PathCanonicalizeRequest structure represents the NetprPathCanonicalize operation request

func (*PathCanonicalizeRequest) MarshalNDR

func (o *PathCanonicalizeRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PathCanonicalizeRequest) UnmarshalNDR

func (o *PathCanonicalizeRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type PathCanonicalizeResponse

type PathCanonicalizeResponse struct {
	// Outbuf: A pointer to the output buffer where the canonicalized path name is returned.
	OutputBuffer []byte `idl:"name:Outbuf;size_is:(OutbufLen)" json:"output_buffer"`
	// PathType: A place to store the path type. This parameter MUST be set by the client
	// either to zero or to one of the values defined in section 2.2.2.9. After successful
	// completion of the request, the server MUST set PathType to one of the values defined
	// in section 2.2.2.9.
	PathType uint32 `idl:"name:PathType" json:"path_type"`
	// Return: The NetprPathCanonicalize return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

PathCanonicalizeResponse structure represents the NetprPathCanonicalize operation response

func (*PathCanonicalizeResponse) MarshalNDR

func (o *PathCanonicalizeResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PathCanonicalizeResponse) UnmarshalNDR

func (o *PathCanonicalizeResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type PathCompareRequest

type PathCompareRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// PathName1: A pointer to a null-terminated UTF-16 string that contains the first PathName
	// to compare.
	PathName1 string `idl:"name:PathName1;string" json:"path_name1"`
	// PathName2: A pointer to a null-terminated UTF-16 string that contains the second
	// PathName to compare.
	PathName2 string `idl:"name:PathName2;string" json:"path_name2"`
	// PathType: The type of PathName, as specified in section 2.2.2.9.
	PathType uint32 `idl:"name:PathType" json:"path_type"`
	// Flags: A bitmask that MUST contain the bitwise OR of zero or more of the following
	// values that specify controlling flags.
	//
	//	+------------+---------------------------------------------------------------------+
	//	|            |                                                                     |
	//	|   VALUE    |                               MEANING                               |
	//	|            |                                                                     |
	//	+------------+---------------------------------------------------------------------+
	//	+------------+---------------------------------------------------------------------+
	//	| 0x00000001 | SHOULD be set if both of the paths have already been canonicalized. |
	//	+------------+---------------------------------------------------------------------+
	Flags uint32 `idl:"name:Flags" json:"flags"`
}

PathCompareRequest structure represents the NetprPathCompare operation request

func (*PathCompareRequest) MarshalNDR

func (o *PathCompareRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PathCompareRequest) UnmarshalNDR

func (o *PathCompareRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type PathCompareResponse

type PathCompareResponse struct {
	// Return: The NetprPathCompare return value.
	Return int32 `idl:"name:Return" json:"return"`
}

PathCompareResponse structure represents the NetprPathCompare operation response

func (*PathCompareResponse) MarshalNDR

func (o *PathCompareResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PathCompareResponse) UnmarshalNDR

func (o *PathCompareResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type PathTypeRequest

type PathTypeRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// PathName: A pointer to a null-terminated UTF-16 string that specifies the path name
	// to check.
	PathName string `idl:"name:PathName;string" json:"path_name"`
	// Flags: A bitmask that MUST contain the bitwise OR of zero or more of the following
	// values specifying controlling flags.
	//
	//	+------------+----------------------------------------------------------------------------------+
	//	|            |                                                                                  |
	//	|   VALUE    |                                     MEANING                                      |
	//	|            |                                                                                  |
	//	+------------+----------------------------------------------------------------------------------+
	//	+------------+----------------------------------------------------------------------------------+
	//	| 0x00000001 | If set, the method uses old-style path rules (128-byte paths, 8.3 components)    |
	//	|            | when validating the path. This flag is set on MS-DOS and OS/2 1.1 systems.       |
	//	+------------+----------------------------------------------------------------------------------+
	Flags uint32 `idl:"name:Flags" json:"flags"`
}

PathTypeRequest structure represents the NetprPathType operation request

func (*PathTypeRequest) MarshalNDR

func (o *PathTypeRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PathTypeRequest) UnmarshalNDR

func (o *PathTypeRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type PathTypeResponse

type PathTypeResponse struct {
	// PathType: A path type is returned. It MUST be one of the values that are defined
	// in section 2.2.2.9.
	PathType uint32 `idl:"name:PathType" json:"path_type"`
	// Return: The NetprPathType return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

PathTypeResponse structure represents the NetprPathType operation response

func (*PathTypeResponse) MarshalNDR

func (o *PathTypeResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PathTypeResponse) UnmarshalNDR

func (o *PathTypeResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type RemoteToDRequest

type RemoteToDRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
}

RemoteToDRequest structure represents the NetrRemoteTOD operation request

func (*RemoteToDRequest) MarshalNDR

func (o *RemoteToDRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*RemoteToDRequest) UnmarshalNDR

func (o *RemoteToDRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type RemoteToDResponse

type RemoteToDResponse struct {
	// BufferPtr: A pointer to a structure of type TIME_OF_DAY_INFO where the information
	// is returned.
	BufferPointer *TimeOfDayInfo `idl:"name:BufferPtr" json:"buffer_pointer"`
	// Return: The NetrRemoteTOD return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

RemoteToDResponse structure represents the NetrRemoteTOD operation response

func (*RemoteToDResponse) MarshalNDR

func (o *RemoteToDResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*RemoteToDResponse) UnmarshalNDR

func (o *RemoteToDResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ServerAliasEnum

type ServerAliasEnum struct {
	// Level:  Specifies the information level of the data. This parameter MUST have one
	// of the following values.
	//
	//	+-------+-------------------------------+
	//	|       |                               |
	//	| VALUE |            MEANING            |
	//	|       |                               |
	//	+-------+-------------------------------+
	//	+-------+-------------------------------+
	//	|     0 | SERVER_ALIAS_INFO_0_CONTAINER |
	//	+-------+-------------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// ServerAliasInfo:  Contains information about server aliases in the format that is
	// determined by the Level parameter, as shown in the preceding table. This member receives
	// the enumerated information.
	ServerAliasInfo *ServerAliasEnum_ServerAliasInfo `idl:"name:ServerAliasInfo;switch_is:Level" json:"server_alias_info"`
}

ServerAliasEnum structure represents SERVER_ALIAS_ENUM_STRUCT RPC structure.

The SERVER_ALIAS_ENUM_STRUCT structure specifies the information level that the client requests in the NetrServerAliasEnum method and encapsulates the SERVER_ALIAS_ENUM_UNION union that receives the entries that are enumerated by the server.

func (*ServerAliasEnum) MarshalNDR

func (o *ServerAliasEnum) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerAliasEnum) UnmarshalNDR

func (o *ServerAliasEnum) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerAliasEnum_ServerAliasInfo

type ServerAliasEnum_ServerAliasInfo struct {
	// Types that are assignable to Value
	//
	// *ServerAliasInfo_Level0
	Value is_ServerAliasEnum_ServerAliasInfo `json:"value"`
}

ServerAliasEnum_ServerAliasInfo structure represents SERVER_ALIAS_ENUM_STRUCT union anonymous member.

The SERVER_ALIAS_ENUM_STRUCT structure specifies the information level that the client requests in the NetrServerAliasEnum method and encapsulates the SERVER_ALIAS_ENUM_UNION union that receives the entries that are enumerated by the server.

func (*ServerAliasEnum_ServerAliasInfo) GetValue

func (o *ServerAliasEnum_ServerAliasInfo) GetValue() any

func (*ServerAliasEnum_ServerAliasInfo) MarshalUnionNDR

func (o *ServerAliasEnum_ServerAliasInfo) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*ServerAliasEnum_ServerAliasInfo) NDRSwitchValue

func (o *ServerAliasEnum_ServerAliasInfo) NDRSwitchValue(sw uint32) uint32

func (*ServerAliasEnum_ServerAliasInfo) UnmarshalUnionNDR

func (o *ServerAliasEnum_ServerAliasInfo) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type ServerAliasInfo

type ServerAliasInfo struct {
	// Types that are assignable to Value
	//
	// *ServerAliasInfo_0
	Value is_ServerAliasInfo `json:"value"`
}

ServerAliasInfo structure represents SERVER_ALIAS_INFO RPC union.

The SERVER_ALIAS_INFO union contains information about an alias attached to a server name.

func (*ServerAliasInfo) GetValue

func (o *ServerAliasInfo) GetValue() any

func (*ServerAliasInfo) MarshalUnionNDR

func (o *ServerAliasInfo) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*ServerAliasInfo) NDRSwitchValue

func (o *ServerAliasInfo) NDRSwitchValue(sw uint32) uint32

func (*ServerAliasInfo) UnmarshalUnionNDR

func (o *ServerAliasInfo) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type ServerAliasInfo0

type ServerAliasInfo0 struct {
	// srvai0_alias:  An empty string or a pointer to a null-terminated Unicode UTF-16 string
	// that specifies the name of a specified alias. It MUST be an empty string if srvai0_default
	// is nonzero and MUST be a non-empty string if srvai0_default is 0.
	Alias string `idl:"name:srvai0_alias;string" json:"alias"`
	// srvai0_target:  A pointer to a null-terminated Unicode UTF-16 string. It specifies
	// the server name that alias is attached to. The server MUST ignore this member when
	// processing the NetrServerAliasDel method.
	Target string `idl:"name:srvai0_target;string" json:"target"`
	// srvai0_default:  A BOOLEAN value. If it is set to TRUE, srvai0_target MUST replace
	// the default server name that is used to locate a scoped share in NetrShareAdd/NetrShareDel/NetrShareSetInfo.
	// If a scoped share cannot be found through a tuple of <share name, server name> due
	// to a server name mismatch, the default server name is used in <share name, default
	// server name> to continue scoped share searching. The server MUST ignore srvai0_default
	// when processing the NetrServerAliasDel method.
	Default bool `idl:"name:srvai0_default" json:"default"`
	// contains filtered or unexported fields
}

ServerAliasInfo0 structure represents SERVER_ALIAS_INFO_0 RPC structure.

The SERVER_ALIAS_INFO_0 structure contains the information about alias, including alias name and server target name.

func (*ServerAliasInfo0) MarshalNDR

func (o *ServerAliasInfo0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerAliasInfo0) UnmarshalNDR

func (o *ServerAliasInfo0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerAliasInfo0Container

type ServerAliasInfo0Container struct {
	// EntriesRead:  The number of entries that the method returns.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SERVER_ALIAS_INFO_0 entries that the method returns.
	Buffer []*ServerAliasInfo0 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ServerAliasInfo0Container structure represents SERVER_ALIAS_INFO_0_CONTAINER RPC structure.

The SERVER_ALIAS_INFO_0_CONTAINER structure contains a value that indicates the number of entries that the NetrServerAliasEnum method returns and a pointer to the buffer that contains the entries.

func (*ServerAliasInfo0Container) MarshalNDR

func (o *ServerAliasInfo0Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerAliasInfo0Container) UnmarshalNDR

func (o *ServerAliasInfo0Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerAliasInfo_0

type ServerAliasInfo_0 struct {
	// ServerAliasInfo0:  A pointer to a structure containing information about an alias
	// attached to a server, as specified in section 2.2.4.102.
	ServerAliasInfo0 *ServerAliasInfo0 `idl:"name:ServerAliasInfo0" json:"server_alias_info0"`
}

ServerAliasInfo_0 structure represents SERVER_ALIAS_INFO RPC union arm.

It has following labels: 0

func (*ServerAliasInfo_0) MarshalNDR

func (o *ServerAliasInfo_0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerAliasInfo_0) UnmarshalNDR

func (o *ServerAliasInfo_0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerAliasInfo_Level0

type ServerAliasInfo_Level0 struct {
	Level0 *ServerAliasInfo0Container `idl:"name:Level0" json:"level0"`
}

ServerAliasInfo_Level0 structure represents ServerAliasEnum_ServerAliasInfo RPC union arm.

It has following labels: 0

func (*ServerAliasInfo_Level0) MarshalNDR

func (o *ServerAliasInfo_Level0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerAliasInfo_Level0) UnmarshalNDR

func (o *ServerAliasInfo_Level0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo

type ServerInfo struct {
	// Types that are assignable to Value
	//
	// *ServerInfo_100
	// *ServerInfo_101
	// *ServerInfo_102
	// *ServerInfo_103
	// *ServerInfo_502
	// *ServerInfo_503
	// *ServerInfo_599
	// *ServerInfo_1005
	// *ServerInfo_1107
	// *ServerInfo_1010
	// *ServerInfo_1016
	// *ServerInfo_1017
	// *ServerInfo_1018
	// *ServerInfo_1501
	// *ServerInfo_1502
	// *ServerInfo_1503
	// *ServerInfo_1506
	// *ServerInfo_1510
	// *ServerInfo_1511
	// *ServerInfo_1512
	// *ServerInfo_1513
	// *ServerInfo_1514
	// *ServerInfo_1515
	// *ServerInfo_1516
	// *ServerInfo_1518
	// *ServerInfo_1523
	// *ServerInfo_1528
	// *ServerInfo_1529
	// *ServerInfo_1530
	// *ServerInfo_1533
	// *ServerInfo_1534
	// *ServerInfo_1535
	// *ServerInfo_1536
	// *ServerInfo_1538
	// *ServerInfo_1539
	// *ServerInfo_1540
	// *ServerInfo_1541
	// *ServerInfo_1542
	// *ServerInfo_1543
	// *ServerInfo_1544
	// *ServerInfo_1545
	// *ServerInfo_1546
	// *ServerInfo_1547
	// *ServerInfo_1548
	// *ServerInfo_1549
	// *ServerInfo_1550
	// *ServerInfo_1552
	// *ServerInfo_1553
	// *ServerInfo_1554
	// *ServerInfo_1555
	// *ServerInfo_1556
	Value is_ServerInfo `json:"value"`
}

ServerInfo structure represents SERVER_INFO RPC union.

The SERVER_INFO union contains information about a server.

func (*ServerInfo) GetValue

func (o *ServerInfo) GetValue() any

func (*ServerInfo) MarshalUnionNDR

func (o *ServerInfo) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*ServerInfo) NDRSwitchValue

func (o *ServerInfo) NDRSwitchValue(sw uint32) uint32

func (*ServerInfo) UnmarshalUnionNDR

func (o *ServerInfo) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type ServerInfo1005

type ServerInfo1005 struct {
	// sv1005_comment:  This member is defined in the sv103_comment member in SERVER_INFO_103
	// (section 2.2.4.43).
	Comment string `idl:"name:sv1005_comment;string" json:"comment"`
}

ServerInfo1005 structure represents SERVER_INFO_1005 RPC structure.

The SERVER_INFO_1005 structure contains information about a specified server.

func (*ServerInfo1005) MarshalNDR

func (o *ServerInfo1005) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1005) UnmarshalNDR

func (o *ServerInfo1005) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1010

type ServerInfo1010 struct {
	// sv1010_disc:  This member is defined in the sv103_disc member in SERVER_INFO_103
	// (section 2.2.4.43).
	Disc int32 `idl:"name:sv1010_disc" json:"disc"`
}

ServerInfo1010 structure represents SERVER_INFO_1010 RPC structure.

The SERVER_INFO_1010 structure contains information about a specified server.

func (*ServerInfo1010) MarshalNDR

func (o *ServerInfo1010) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1010) UnmarshalNDR

func (o *ServerInfo1010) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1016

type ServerInfo1016 struct {
	// sv1016_hidden:  This member is defined in the sv103_hidden member in SERVER_INFO_103
	// (section 2.2.4.43).
	Hidden int32 `idl:"name:sv1016_hidden" json:"hidden"`
}

ServerInfo1016 structure represents SERVER_INFO_1016 RPC structure.

The SERVER_INFO_1016 structure contains information about a specified server.

func (*ServerInfo1016) MarshalNDR

func (o *ServerInfo1016) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1016) UnmarshalNDR

func (o *ServerInfo1016) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1017

type ServerInfo1017 struct {
	// sv1017_announce:  This member is defined in the sv103_announce member in SERVER_INFO_103
	// (section 2.2.4.43).
	Announce uint32 `idl:"name:sv1017_announce" json:"announce"`
}

ServerInfo1017 structure represents SERVER_INFO_1017 RPC structure.

The SERVER_INFO_1017 structure contains information about a specified server.

func (*ServerInfo1017) MarshalNDR

func (o *ServerInfo1017) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1017) UnmarshalNDR

func (o *ServerInfo1017) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1018

type ServerInfo1018 struct {
	// sv1018_anndelta:  This member is defined in the sv103_ anndelta member in SERVER_INFO_103
	// (section 2.2.4.43).
	AnnounceDelta uint32 `idl:"name:sv1018_anndelta" json:"announce_delta"`
}

ServerInfo1018 structure represents SERVER_INFO_1018 RPC structure.

The SERVER_INFO_1018 structure contains information about a specified server.

func (*ServerInfo1018) MarshalNDR

func (o *ServerInfo1018) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1018) UnmarshalNDR

func (o *ServerInfo1018) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo102

type ServerInfo102 struct {
	PlatformID    uint32 `idl:"name:sv102_platform_id" json:"platform_id"`
	Name          string `idl:"name:sv102_name;string" json:"name"`
	VersionMajor  uint32 `idl:"name:sv102_version_major" json:"version_major"`
	VersionMinor  uint32 `idl:"name:sv102_version_minor" json:"version_minor"`
	Type          uint32 `idl:"name:sv102_type" json:"type"`
	Comment       string `idl:"name:sv102_comment;string" json:"comment"`
	Users         uint32 `idl:"name:sv102_users" json:"users"`
	Disc          int32  `idl:"name:sv102_disc" json:"disc"`
	Hidden        int32  `idl:"name:sv102_hidden" json:"hidden"`
	Announce      uint32 `idl:"name:sv102_announce" json:"announce"`
	AnnounceDelta uint32 `idl:"name:sv102_anndelta" json:"announce_delta"`
	Licenses      uint32 `idl:"name:sv102_licenses" json:"licenses"`
	UserPath      string `idl:"name:sv102_userpath;string" json:"user_path"`
}

ServerInfo102 structure represents SERVER_INFO_102 RPC structure.

The SERVER_INFO_102 structure contains information about the specified server, including the name, platform, and type of server, attributes, and associated software. For information about the fields in this structure, see the description for the SERVER_INFO_103 structure (sv102_xxx denotes the same information as sv103_xxx).

func (*ServerInfo102) MarshalNDR

func (o *ServerInfo102) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo102) UnmarshalNDR

func (o *ServerInfo102) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo103

type ServerInfo103 struct {
	// sv103_platform_id:  Specifies the information level to use for platform-specific
	// information. This member can be one of the values that are listed in PLATFORM IDs
	// (section 2.2.2.6). The server MUST ignore this field during a NetrServerSetInfo operation.
	PlatformID uint32 `idl:"name:sv103_platform_id" json:"platform_id"`
	// sv103_name:  A pointer to a null-terminated Unicode UTF-16 Internet host name or
	// NetBIOS host name of a server.
	Name string `idl:"name:sv103_name;string" json:"name"`
	// sv103_version_major:  Specifies the major release version number of the operating
	// system. The server MUST ignore this field during a NetrServerSetInfo operation. The
	// server MUST set this field to an implementation-specific major release version number
	// that corresponds to the host operating system on a NetrServerGetInfo operation.<17>
	VersionMajor uint32 `idl:"name:sv103_version_major" json:"version_major"`
	// sv103_version_minor:  Specifies the minor release version number of the operating
	// system. The server MUST ignore this field during a NetrServerSetInfo operation. The
	// server MUST set this field to an implementation-specific minor release version number
	// that corresponds to the host operating system on a NetrServerGetInfo operation.<18>
	VersionMinor uint32 `idl:"name:sv103_version_minor" json:"version_minor"`
	// sv103_type:  Specifies the type of software the computer is running. This member
	// MUST be a combination of one or more of the values that are listed in section 2.2.2.7.
	// The server MUST ignore this field during a NetrServerSetInfo operation.
	Type uint32 `idl:"name:sv103_type" json:"type"`
	// sv103_comment:  An optional pointer to a null-terminated Unicode UTF-16 string that
	// specifies a comment that describes the server.
	Comment string `idl:"name:sv103_comment;string" json:"comment"`
	// sv103_users:  Specifies the number of users who can attempt to log on to the server.
	// The range of values MUST be from 0x00000001 to 0xFFFFFFFF, inclusive. The server
	// enforces a ceiling, based on the particular SKU that is running on the server, by
	// taking a minimum of the specified value and the ceiling.
	Users uint32 `idl:"name:sv103_users" json:"users"`
	// sv103_disc:  Specifies the automatic disconnect time, in minutes. A session MUST
	// be disconnected if it is idle longer than the period of time that the sv103_disc
	// member specifies. If the value of sv103_disc is SV_NODISC (0xFFFFFFFF), an automatic
	// disconnect MUST NOT be enabled. The range of values MUST be from 0x00000001 to 0xFFFFFFFF,
	// inclusive.
	Disc int32 `idl:"name:sv103_disc" json:"disc"`
	// sv103_hidden:  A Boolean that specifies whether the server is hidden or visible to
	// other computers in the same network domain. It MUST be set to TRUE (1) to indicate
	// that the server is hidden; or it MUST be set to FALSE (0) to indicate that the server
	// is visible. The default value is FALSE (0).
	Hidden bool `idl:"name:sv103_hidden" json:"hidden"`
	// sv103_announce:  Specifies the network announce rate, in seconds. This rate determines
	// how often the server is announced to other computers on the network for discovery
	// by using the CIFS Browser Protocol. For more information, see [MS-BRWS]. The range
	// of values MUST be from 1 to 65535, inclusive.
	Announce uint32 `idl:"name:sv103_announce" json:"announce"`
	// sv103_anndelta:  Specifies the delta value for the announce rate, in milliseconds.
	// This value specifies how much the announce rate can vary from the period of time
	// that is specified in the sv103_announce member. The delta value enables the server
	// to set randomly varied announce rates in the range sv103_announce to sv103_announce+sv103_anndelta,
	// inclusive, to prevent many servers from announcing at the same time. The range of
	// values MUST be from 0 to 65535, inclusive.
	AnnounceDelta uint32 `idl:"name:sv103_anndelta" json:"announce_delta"`
	// sv103_licenses:  Unused. The server MUST ignore this field during a NetrServerSetInfo
	// operation. The server MUST return 0 during a NetrServerGetInfo operation.
	Licenses uint32 `idl:"name:sv103_licenses" json:"licenses"`
	// sv103_userpath:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// the path to the user directories. Due to historical reasons, the default path is
	// "c:\". The client can set this field to any value. The server stores this string
	// and returns it when queried. This field has no effect on the server.
	UserPath string `idl:"name:sv103_userpath;string" json:"user_path"`
	// sv103_capabilities:  Specifies the capabilities of the server. This MUST be a combination
	// of zero or more of the following flags. The server MUST ignore this field during
	// a NetrServerSetInfo operation. If the server does not support any of the following
	// capabilities, it MUST set this field to 0x0000.
	//
	//	+------------------------------------+----------------------------------------------------------------------------+
	//	|                                    |                                                                            |
	//	|               VALUE                |                                  MEANING                                   |
	//	|                                    |                                                                            |
	//	+------------------------------------+----------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------+
	//	| SRV_SUPPORT_HASH_GENERATION 0x0001 | Hash generation for branch cache functionality is supported by the server. |
	//	+------------------------------------+----------------------------------------------------------------------------+
	//	| SRV_HASH_GENERATION_ACTIVE 0x0002  | The branch cache component is installed.<19>                               |
	//	+------------------------------------+----------------------------------------------------------------------------+
	Capabilities uint32 `idl:"name:sv103_capabilities" json:"capabilities"`
}

ServerInfo103 structure represents SERVER_INFO_103 RPC structure.

The SERVER_INFO_103 structure contains information about CIFS and SMB Version 1.0 file servers, including the name, platform, type of server, attributes, associated software, and capabilities.

func (*ServerInfo103) MarshalNDR

func (o *ServerInfo103) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo103) UnmarshalNDR

func (o *ServerInfo103) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1107

type ServerInfo1107 struct {
	// sv1107_users:  This member is defined in the sv103_users member in SERVER_INFO_103
	// (section 2.2.4.43).
	Users uint32 `idl:"name:sv1107_users" json:"users"`
}

ServerInfo1107 structure represents SERVER_INFO_1107 RPC structure.

The SERVER_INFO_1107 structure contains information about a specified server.

func (*ServerInfo1107) MarshalNDR

func (o *ServerInfo1107) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1107) UnmarshalNDR

func (o *ServerInfo1107) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1501

type ServerInfo1501 struct {
	// sv1501_sessopens:  This member is defined in the sv599_sessopens member in SERVER_INFO_599
	// (section 2.2.4.46).
	SessionOpens uint32 `idl:"name:sv1501_sessopens" json:"session_opens"`
}

ServerInfo1501 structure represents SERVER_INFO_1501 RPC structure.

The SERVER_INFO_1501 structure contains information about a specified server.

func (*ServerInfo1501) MarshalNDR

func (o *ServerInfo1501) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1501) UnmarshalNDR

func (o *ServerInfo1501) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1502

type ServerInfo1502 struct {
	// sv1502_sessvcs:  This member is defined in the sv599_sessvcs member in SERVER_INFO_599
	// (section 2.2.4.46).
	SessionServices uint32 `idl:"name:sv1502_sessvcs" json:"session_services"`
}

ServerInfo1502 structure represents SERVER_INFO_1502 RPC structure.

The SERVER_INFO_1502 structure contains information about a specified server.

func (*ServerInfo1502) MarshalNDR

func (o *ServerInfo1502) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1502) UnmarshalNDR

func (o *ServerInfo1502) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1503

type ServerInfo1503 struct {
	// sv1503_opensearch:  This member is defined in the sv599_opensearch member in SERVER_INFO_599
	// (section 2.2.4.46).
	OpenSearch uint32 `idl:"name:sv1503_opensearch" json:"open_search"`
}

ServerInfo1503 structure represents SERVER_INFO_1503 RPC structure.

The SERVER_INFO_1503 structure contains information about a specified server.

func (*ServerInfo1503) MarshalNDR

func (o *ServerInfo1503) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1503) UnmarshalNDR

func (o *ServerInfo1503) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1506

type ServerInfo1506 struct {
	// sv1506_maxworkitems:  This member is defined in the sv599_maxworkitems member in
	// SERVER_INFO_599 (section 2.2.4.46).
	MaxWorkItems uint32 `idl:"name:sv1506_maxworkitems" json:"max_work_items"`
}

ServerInfo1506 structure represents SERVER_INFO_1506 RPC structure.

The SERVER_INFO_1506 structure contains information about a specified server.

func (*ServerInfo1506) MarshalNDR

func (o *ServerInfo1506) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1506) UnmarshalNDR

func (o *ServerInfo1506) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1510

type ServerInfo1510 struct {
	// sv1510_sessusers:  This member is defined in the sv599_sessusers member in SERVER_INFO_599
	// (section 2.2.4.46).
	SessionUsers uint32 `idl:"name:sv1510_sessusers" json:"session_users"`
}

ServerInfo1510 structure represents SERVER_INFO_1510 RPC structure.

The SERVER_INFO_1510 structure contains information about a specified server.

func (*ServerInfo1510) MarshalNDR

func (o *ServerInfo1510) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1510) UnmarshalNDR

func (o *ServerInfo1510) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1511

type ServerInfo1511 struct {
	// sv1511_sessconns:  This member is defined in the sv599_sessconns member in SERVER_INFO_599
	// (section 2.2.4.46).
	SessionConnections uint32 `idl:"name:sv1511_sessconns" json:"session_connections"`
}

ServerInfo1511 structure represents SERVER_INFO_1511 RPC structure.

The SERVER_INFO_1511 structure contains information about a specified server.

func (*ServerInfo1511) MarshalNDR

func (o *ServerInfo1511) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1511) UnmarshalNDR

func (o *ServerInfo1511) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1512

type ServerInfo1512 struct {
	// sv1512_maxnonpagedmemoryusage:  This member is defined in the sv599_maxnonpagedmemoryusage
	// member in SERVER_INFO_599 (section 2.2.4.46).
	MaxNonPagedMemoryUsage uint32 `idl:"name:sv1512_maxnonpagedmemoryusage" json:"max_non_paged_memory_usage"`
}

ServerInfo1512 structure represents SERVER_INFO_1512 RPC structure.

The SERVER_INFO_1512 structure contains information about a specified server.

func (*ServerInfo1512) MarshalNDR

func (o *ServerInfo1512) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1512) UnmarshalNDR

func (o *ServerInfo1512) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1513

type ServerInfo1513 struct {
	// sv1513_maxpagedmemoryusage:  This member is defined in the sv599_maxpagedmemoryusage
	// member in SERVER_INFO_599 (section 2.2.4.46).
	MaxPagedMemoryUsage uint32 `idl:"name:sv1513_maxpagedmemoryusage" json:"max_paged_memory_usage"`
}

ServerInfo1513 structure represents SERVER_INFO_1513 RPC structure.

The SERVER_INFO_1513 structure contains information about a specified server.

func (*ServerInfo1513) MarshalNDR

func (o *ServerInfo1513) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1513) UnmarshalNDR

func (o *ServerInfo1513) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1514

type ServerInfo1514 struct {
	// sv1514_enablesoftcompat:  This member is defined in the sv599_enablesoftcompat member
	// in SERVER_INFO_599 (section 2.2.4.46).
	EnableSoftCompatibility int32 `idl:"name:sv1514_enablesoftcompat" json:"enable_soft_compatibility"`
}

ServerInfo1514 structure represents SERVER_INFO_1514 RPC structure.

The SERVER_INFO_1514 structure contains information about a specified server.

func (*ServerInfo1514) MarshalNDR

func (o *ServerInfo1514) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1514) UnmarshalNDR

func (o *ServerInfo1514) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1515

type ServerInfo1515 struct {
	// sv1515_enableforcedlogoff:  This member is defined in the sv599_enableforcedlogoff
	// member in SERVER_INFO_599 (section 2.2.4.46).
	EnableForcedLogoff int32 `idl:"name:sv1515_enableforcedlogoff" json:"enable_forced_logoff"`
}

ServerInfo1515 structure represents SERVER_INFO_1515 RPC structure.

The SERVER_INFO_1515 structure contains information about a specified server.

func (*ServerInfo1515) MarshalNDR

func (o *ServerInfo1515) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1515) UnmarshalNDR

func (o *ServerInfo1515) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1516

type ServerInfo1516 struct {
	// sv1516_timesource:  This member is defined in the sv599_timesource member in SERVER_INFO_599
	// (section 2.2.4.46).
	TimeSource int32 `idl:"name:sv1516_timesource" json:"time_source"`
}

ServerInfo1516 structure represents SERVER_INFO_1516 RPC structure.

The SERVER_INFO_1516 structure contains information about a specified server.

func (*ServerInfo1516) MarshalNDR

func (o *ServerInfo1516) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1516) UnmarshalNDR

func (o *ServerInfo1516) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1518

type ServerInfo1518 struct {
	// sv1518_lmannounce:  This member is defined in the sv599_lmannounce member in SERVER_INFO_599
	// (section 2.2.4.46).
	LMAnnounce int32 `idl:"name:sv1518_lmannounce" json:"lm_announce"`
}

ServerInfo1518 structure represents SERVER_INFO_1518 RPC structure.

The SERVER_INFO_1518 structure contains information about a specified server.

func (*ServerInfo1518) MarshalNDR

func (o *ServerInfo1518) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1518) UnmarshalNDR

func (o *ServerInfo1518) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1523

type ServerInfo1523 struct {
	// sv1523_maxkeepsearch:  This member is defined in the sv599_maxkeepsearch member in
	// SERVER_INFO_599 (section 2.2.4.46).
	MaxKeepSearch uint32 `idl:"name:sv1523_maxkeepsearch" json:"max_keep_search"`
}

ServerInfo1523 structure represents SERVER_INFO_1523 RPC structure.

The SERVER_INFO_1523 structure contains information about a specified server.

func (*ServerInfo1523) MarshalNDR

func (o *ServerInfo1523) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1523) UnmarshalNDR

func (o *ServerInfo1523) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1528

type ServerInfo1528 struct {
	// sv1528_scavtimeout:  This member is defined in the sv599_scavtimeout member in SERVER_INFO_599
	// (section 2.2.4.46).
	ScavTimeout uint32 `idl:"name:sv1528_scavtimeout" json:"scav_timeout"`
}

ServerInfo1528 structure represents SERVER_INFO_1528 RPC structure.

The SERVER_INFO_1528 structure contains information about a specified server.

func (*ServerInfo1528) MarshalNDR

func (o *ServerInfo1528) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1528) UnmarshalNDR

func (o *ServerInfo1528) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1529

type ServerInfo1529 struct {
	// sv1529_minrcvqueue:  This member is defined in the sv599_minrcvqueue member in SERVER_INFO_599
	// (section 2.2.4.46).
	MinReceiveQueue uint32 `idl:"name:sv1529_minrcvqueue" json:"min_receive_queue"`
}

ServerInfo1529 structure represents SERVER_INFO_1529 RPC structure.

The SERVER_INFO_1529 structure contains information about a specified server.

func (*ServerInfo1529) MarshalNDR

func (o *ServerInfo1529) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1529) UnmarshalNDR

func (o *ServerInfo1529) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1530

type ServerInfo1530 struct {
	// sv1530_minfreeworkitems:  This member is defined in the sv599_minfreeworkitems member
	// in SERVER_INFO_599 (section 2.2.4.46).
	MinFreeWorkItems uint32 `idl:"name:sv1530_minfreeworkitems" json:"min_free_work_items"`
}

ServerInfo1530 structure represents SERVER_INFO_1530 RPC structure.

The SERVER_INFO_1530 structure contains information about a specified server.

func (*ServerInfo1530) MarshalNDR

func (o *ServerInfo1530) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1530) UnmarshalNDR

func (o *ServerInfo1530) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1533

type ServerInfo1533 struct {
	// sv1533_maxmpxct:  This member is defined in the sv599_maxmpxct member in SERVER_INFO_599
	// (section 2.2.4.46).
	MaxMPXCount uint32 `idl:"name:sv1533_maxmpxct" json:"max_mpx_count"`
}

ServerInfo1533 structure represents SERVER_INFO_1533 RPC structure.

The SERVER_INFO_1533 structure contains information about a specified server.

func (*ServerInfo1533) MarshalNDR

func (o *ServerInfo1533) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1533) UnmarshalNDR

func (o *ServerInfo1533) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1534

type ServerInfo1534 struct {
	// sv1534_oplockbreakwait:  This member is defined in the sv599_oplockbreakwait member
	// in SERVER_INFO_599 (section 2.2.4.46).
	OperationLockBreakWait uint32 `idl:"name:sv1534_oplockbreakwait" json:"operation_lock_break_wait"`
}

ServerInfo1534 structure represents SERVER_INFO_1534 RPC structure.

The SERVER_INFO_1534 structure contains information about a specified server.

func (*ServerInfo1534) MarshalNDR

func (o *ServerInfo1534) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1534) UnmarshalNDR

func (o *ServerInfo1534) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1535

type ServerInfo1535 struct {
	// sv1535_oplockbreakresponsewait:  This member is defined in the sv599_oplockbreakresponsewait
	// member in SERVER_INFO_599 (section 2.2.4.46).
	OperationLockBreakResponseWait uint32 `idl:"name:sv1535_oplockbreakresponsewait" json:"operation_lock_break_response_wait"`
}

ServerInfo1535 structure represents SERVER_INFO_1535 RPC structure.

The SERVER_INFO_1535 structure contains information about a specified server.

func (*ServerInfo1535) MarshalNDR

func (o *ServerInfo1535) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1535) UnmarshalNDR

func (o *ServerInfo1535) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1536

type ServerInfo1536 struct {
	// sv1536_enableoplocks:  This member is defined in the sv599_enableoplocks member in
	// SERVER_INFO_599 (section 2.2.4.46).
	EnableOperationLocks int32 `idl:"name:sv1536_enableoplocks" json:"enable_operation_locks"`
}

ServerInfo1536 structure represents SERVER_INFO_1536 RPC structure.

The SERVER_INFO_1536 structure contains information about a specified server.

func (*ServerInfo1536) MarshalNDR

func (o *ServerInfo1536) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1536) UnmarshalNDR

func (o *ServerInfo1536) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1538

type ServerInfo1538 struct {
	// sv1538_enablefcbopens:  This member is defined in the sv599_enablefcbopens member
	// in SERVER_INFO_599 (section 2.2.4.46).
	EnableFCBOpens int32 `idl:"name:sv1538_enablefcbopens" json:"enable_fcb_opens"`
}

ServerInfo1538 structure represents SERVER_INFO_1538 RPC structure.

The SERVER_INFO_1538 structure contains information about a specified server.

func (*ServerInfo1538) MarshalNDR

func (o *ServerInfo1538) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1538) UnmarshalNDR

func (o *ServerInfo1538) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1539

type ServerInfo1539 struct {
	// sv1539_enableraw:  This member is defined in the sv599_enableraw member in SERVER_INFO_599
	// (section 2.2.4.46).
	EnableRaw int32 `idl:"name:sv1539_enableraw" json:"enable_raw"`
}

ServerInfo1539 structure represents SERVER_INFO_1539 RPC structure.

The SERVER_INFO_1539 structure contains information about a specified server.

func (*ServerInfo1539) MarshalNDR

func (o *ServerInfo1539) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1539) UnmarshalNDR

func (o *ServerInfo1539) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1540

type ServerInfo1540 struct {
	// sv1540_enablesharednetdrives:  This member is defined in the sv599_enablesharednetdrives
	// member in SERVER_INFO_599 (section 2.2.4.46).
	EnableSharedNetDrives int32 `idl:"name:sv1540_enablesharednetdrives" json:"enable_shared_net_drives"`
}

ServerInfo1540 structure represents SERVER_INFO_1540 RPC structure.

The SERVER_INFO_1540 structure contains information about a specified server.

func (*ServerInfo1540) MarshalNDR

func (o *ServerInfo1540) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1540) UnmarshalNDR

func (o *ServerInfo1540) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1541

type ServerInfo1541 struct {
	// sv1541_minfreeconnections:  This member is defined in the sv599_minfreeconnections
	// member in SERVER_INFO_599 (section 2.2.4.46).
	MinFreeConnections int32 `idl:"name:sv1541_minfreeconnections" json:"min_free_connections"`
}

ServerInfo1541 structure represents SERVER_INFO_1541 RPC structure.

The SERVER_INFO_1541 structure contains information about a specified server.

func (*ServerInfo1541) MarshalNDR

func (o *ServerInfo1541) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1541) UnmarshalNDR

func (o *ServerInfo1541) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1542

type ServerInfo1542 struct {
	// sv1542_maxfreeconnections:  This member is defined in the sv599_maxfreeconnections
	// member in SERVER_INFO_599 (section 2.2.4.46).
	MaxFreeConnections int32 `idl:"name:sv1542_maxfreeconnections" json:"max_free_connections"`
}

ServerInfo1542 structure represents SERVER_INFO_1542 RPC structure.

The SERVER_INFO_1542 structure contains information about a specified server.

func (*ServerInfo1542) MarshalNDR

func (o *ServerInfo1542) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1542) UnmarshalNDR

func (o *ServerInfo1542) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1543

type ServerInfo1543 struct {
	// sv1543_initsesstable:  This member is defined in the sv599_initsesstable member in
	// SERVER_INFO_599 (section 2.2.4.46).
	InitSessionTable uint32 `idl:"name:sv1543_initsesstable" json:"init_session_table"`
}

ServerInfo1543 structure represents SERVER_INFO_1543 RPC structure.

The SERVER_INFO_1543 structure contains information about a specified server.

func (*ServerInfo1543) MarshalNDR

func (o *ServerInfo1543) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1543) UnmarshalNDR

func (o *ServerInfo1543) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1544

type ServerInfo1544 struct {
	// sv1544_initconntable:  This member is defined in the sv599_initconntable member in
	// SERVER_INFO_599 (section 2.2.4.46).
	InitConnectionTable uint32 `idl:"name:sv1544_initconntable" json:"init_connection_table"`
}

ServerInfo1544 structure represents SERVER_INFO_1544 RPC structure.

The SERVER_INFO_1544 structure contains information about a specified server.

func (*ServerInfo1544) MarshalNDR

func (o *ServerInfo1544) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1544) UnmarshalNDR

func (o *ServerInfo1544) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1545

type ServerInfo1545 struct {
	// sv1545_initfiletable:  This member is defined in the sv599_initfiletable member in
	// SERVER_INFO_599 (section 2.2.4.46).
	InitFileTable uint32 `idl:"name:sv1545_initfiletable" json:"init_file_table"`
}

ServerInfo1545 structure represents SERVER_INFO_1545 RPC structure.

The SERVER_INFO_1545 structure contains information about a specified server.

func (*ServerInfo1545) MarshalNDR

func (o *ServerInfo1545) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1545) UnmarshalNDR

func (o *ServerInfo1545) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1546

type ServerInfo1546 struct {
	// sv1546_initsearchtable:  This member is defined in the sv599_initsearchtable member
	// in SERVER_INFO_599 (section 2.2.4.46).
	InitSearchTable uint32 `idl:"name:sv1546_initsearchtable" json:"init_search_table"`
}

ServerInfo1546 structure represents SERVER_INFO_1546 RPC structure.

The SERVER_INFO_1546 structure contains information about a specified server.

func (*ServerInfo1546) MarshalNDR

func (o *ServerInfo1546) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1546) UnmarshalNDR

func (o *ServerInfo1546) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1547

type ServerInfo1547 struct {
	// sv1547_alertschedule:  This member is defined in the sv599_alertschedule member in
	// SERVER_INFO_599 (section 2.2.4.46).
	AlertSchedule uint32 `idl:"name:sv1547_alertschedule" json:"alert_schedule"`
}

ServerInfo1547 structure represents SERVER_INFO_1547 RPC structure.

The SERVER_INFO_1547 structure contains information about a specified server.

func (*ServerInfo1547) MarshalNDR

func (o *ServerInfo1547) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1547) UnmarshalNDR

func (o *ServerInfo1547) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1548

type ServerInfo1548 struct {
	// sv1548_errorthreshold:  This member is defined in the sv599_errorthreshold member
	// in SERVER_INFO_599 (section 2.2.4.46).
	ErrorThreshold uint32 `idl:"name:sv1548_errorthreshold" json:"error_threshold"`
}

ServerInfo1548 structure represents SERVER_INFO_1548 RPC structure.

The SERVER_INFO_1548 structure contains information about a specified server.

func (*ServerInfo1548) MarshalNDR

func (o *ServerInfo1548) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1548) UnmarshalNDR

func (o *ServerInfo1548) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1549

type ServerInfo1549 struct {
	// sv1549_networkerrorthreshold:  This member is defined in the sv599_networkerrorthreshold
	// member in SERVER_INFO_599 (section 2.2.4.46).
	NetworkErrorThreshold uint32 `idl:"name:sv1549_networkerrorthreshold" json:"network_error_threshold"`
}

ServerInfo1549 structure represents SERVER_INFO_1549 RPC structure.

The SERVER_INFO_1549 structure contains information about a specified server.

func (*ServerInfo1549) MarshalNDR

func (o *ServerInfo1549) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1549) UnmarshalNDR

func (o *ServerInfo1549) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1550

type ServerInfo1550 struct {
	// sv1550_diskspacethreshold:  This member is defined in the sv599_diskspacethreshold
	// member in SERVER_INFO_599 (section 2.2.4.46).
	DiskSpaceThreshold uint32 `idl:"name:sv1550_diskspacethreshold" json:"disk_space_threshold"`
}

ServerInfo1550 structure represents SERVER_INFO_1550 RPC structure.

The SERVER_INFO_1550 structure contains information about a specified server.

func (*ServerInfo1550) MarshalNDR

func (o *ServerInfo1550) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1550) UnmarshalNDR

func (o *ServerInfo1550) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1552

type ServerInfo1552 struct {
	// sv1552_maxlinkdelay:  This member is defined in the sv599_maxlinkdelay member in
	// SERVER_INFO_599 (section 2.2.4.46).
	MaxLinkDelay uint32 `idl:"name:sv1552_maxlinkdelay" json:"max_link_delay"`
}

ServerInfo1552 structure represents SERVER_INFO_1552 RPC structure.

The SERVER_INFO_1552 structure contains information about a specified server.

func (*ServerInfo1552) MarshalNDR

func (o *ServerInfo1552) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1552) UnmarshalNDR

func (o *ServerInfo1552) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1553

type ServerInfo1553 struct {
	// sv1553_minlinkthroughput:  This member is defined in the sv599_minlinkthroughput
	// member in SERVER_INFO_599 (section 2.2.4.46).
	MinLinkThroughput uint32 `idl:"name:sv1553_minlinkthroughput" json:"min_link_throughput"`
}

ServerInfo1553 structure represents SERVER_INFO_1553 RPC structure.

The SERVER_INFO_1553 structure contains information about a specified server.

func (*ServerInfo1553) MarshalNDR

func (o *ServerInfo1553) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1553) UnmarshalNDR

func (o *ServerInfo1553) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1554

type ServerInfo1554 struct {
	// sv1554_linkinfovalidtime:  This member is defined in the sv599_linkinfovalidtime
	// member in SERVER_INFO_599 (section 2.2.4.46).
	LinkInfoValidTime uint32 `idl:"name:sv1554_linkinfovalidtime" json:"link_info_valid_time"`
}

ServerInfo1554 structure represents SERVER_INFO_1554 RPC structure.

The SERVER_INFO_1554 structure contains information about a specified server.

func (*ServerInfo1554) MarshalNDR

func (o *ServerInfo1554) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1554) UnmarshalNDR

func (o *ServerInfo1554) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1555

type ServerInfo1555 struct {
	// sv1555_scavqosinfoupdatetime:  This member is defined in the sv599_scavqosinfoupdatetime
	// member in SERVER_INFO_599 (section 2.2.4.46).
	ScavQoSInfoUpdateTime uint32 `idl:"name:sv1555_scavqosinfoupdatetime" json:"scav_qos_info_update_time"`
}

ServerInfo1555 structure represents SERVER_INFO_1555 RPC structure.

The SERVER_INFO_1555 structure contains information about a specified server.

func (*ServerInfo1555) MarshalNDR

func (o *ServerInfo1555) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1555) UnmarshalNDR

func (o *ServerInfo1555) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo1556

type ServerInfo1556 struct {
	// sv1556_maxworkitemidletime:  This member is defined in the sv599_maxworkitemidletime
	// member in SERVER_INFO_599 (section 2.2.4.46).
	MaxWorkItemIdleTime uint32 `idl:"name:sv1556_maxworkitemidletime" json:"max_work_item_idle_time"`
}

ServerInfo1556 structure represents SERVER_INFO_1556 RPC structure.

The SERVER_INFO_1556 structure contains information about a specified server.

func (*ServerInfo1556) MarshalNDR

func (o *ServerInfo1556) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo1556) UnmarshalNDR

func (o *ServerInfo1556) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo502

type ServerInfo502 struct {
	SessionOpens            uint32 `idl:"name:sv502_sessopens" json:"session_opens"`
	SessionServices         uint32 `idl:"name:sv502_sessvcs" json:"session_services"`
	OpenSearch              uint32 `idl:"name:sv502_opensearch" json:"open_search"`
	SizeRequestBuffer       uint32 `idl:"name:sv502_sizreqbuf" json:"size_request_buffer"`
	InitWorkItems           uint32 `idl:"name:sv502_initworkitems" json:"init_work_items"`
	MaxWorkItems            uint32 `idl:"name:sv502_maxworkitems" json:"max_work_items"`
	RawWorkItems            uint32 `idl:"name:sv502_rawworkitems" json:"raw_work_items"`
	IRPStackSize            uint32 `idl:"name:sv502_irpstacksize" json:"irp_stack_size"`
	MaxRawBufferLength      uint32 `idl:"name:sv502_maxrawbuflen" json:"max_raw_buffer_length"`
	SessionUsers            uint32 `idl:"name:sv502_sessusers" json:"session_users"`
	SessionConnections      uint32 `idl:"name:sv502_sessconns" json:"session_connections"`
	MaxPagedMemoryUsage     uint32 `idl:"name:sv502_maxpagedmemoryusage" json:"max_paged_memory_usage"`
	MaxNonPagedMemoryUsage  uint32 `idl:"name:sv502_maxnonpagedmemoryusage" json:"max_non_paged_memory_usage"`
	EnableSoftCompatibility int32  `idl:"name:sv502_enablesoftcompat" json:"enable_soft_compatibility"`
	EnableForcedLogoff      int32  `idl:"name:sv502_enableforcedlogoff" json:"enable_forced_logoff"`
	TimeSource              int32  `idl:"name:sv502_timesource" json:"time_source"`
	AcceptDownLevelAPIs     int32  `idl:"name:sv502_acceptdownlevelapis" json:"accept_down_level_apis"`
	LMAnnounce              int32  `idl:"name:sv502_lmannounce" json:"lm_announce"`
}

ServerInfo502 structure represents SERVER_INFO_502 RPC structure.

The SERVER_INFO_502 structure contains information about a specified server. For a description of the fields in this structure, see the description for the SERVER_INFO_599 structure (sv502_xxx denotes the same information as sv599_xxx).

func (*ServerInfo502) MarshalNDR

func (o *ServerInfo502) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo502) UnmarshalNDR

func (o *ServerInfo502) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo503

type ServerInfo503 struct {
	SessionOpens                   uint32 `idl:"name:sv503_sessopens" json:"session_opens"`
	SessionServices                uint32 `idl:"name:sv503_sessvcs" json:"session_services"`
	OpenSearch                     uint32 `idl:"name:sv503_opensearch" json:"open_search"`
	SizeRequestBuffer              uint32 `idl:"name:sv503_sizreqbuf" json:"size_request_buffer"`
	InitWorkItems                  uint32 `idl:"name:sv503_initworkitems" json:"init_work_items"`
	MaxWorkItems                   uint32 `idl:"name:sv503_maxworkitems" json:"max_work_items"`
	RawWorkItems                   uint32 `idl:"name:sv503_rawworkitems" json:"raw_work_items"`
	IRPStackSize                   uint32 `idl:"name:sv503_irpstacksize" json:"irp_stack_size"`
	MaxRawBufferLength             uint32 `idl:"name:sv503_maxrawbuflen" json:"max_raw_buffer_length"`
	SessionUsers                   uint32 `idl:"name:sv503_sessusers" json:"session_users"`
	SessionConnections             uint32 `idl:"name:sv503_sessconns" json:"session_connections"`
	MaxPagedMemoryUsage            uint32 `idl:"name:sv503_maxpagedmemoryusage" json:"max_paged_memory_usage"`
	MaxNonPagedMemoryUsage         uint32 `idl:"name:sv503_maxnonpagedmemoryusage" json:"max_non_paged_memory_usage"`
	EnableSoftCompatibility        int32  `idl:"name:sv503_enablesoftcompat" json:"enable_soft_compatibility"`
	EnableForcedLogoff             int32  `idl:"name:sv503_enableforcedlogoff" json:"enable_forced_logoff"`
	TimeSource                     int32  `idl:"name:sv503_timesource" json:"time_source"`
	AcceptDownLevelAPIs            int32  `idl:"name:sv503_acceptdownlevelapis" json:"accept_down_level_apis"`
	LMAnnounce                     int32  `idl:"name:sv503_lmannounce" json:"lm_announce"`
	Domain                         string `idl:"name:sv503_domain;string" json:"domain"`
	MaxCopyReadLength              uint32 `idl:"name:sv503_maxcopyreadlen" json:"max_copy_read_length"`
	MaxCopyWriteLength             uint32 `idl:"name:sv503_maxcopywritelen" json:"max_copy_write_length"`
	MinKeepSearch                  uint32 `idl:"name:sv503_minkeepsearch" json:"min_keep_search"`
	MaxKeepSearch                  uint32 `idl:"name:sv503_maxkeepsearch" json:"max_keep_search"`
	MinKeepComplSearch             uint32 `idl:"name:sv503_minkeepcomplsearch" json:"min_keep_compl_search"`
	MaxKeepComplSearch             uint32 `idl:"name:sv503_maxkeepcomplsearch" json:"max_keep_compl_search"`
	ThreadCountAdd                 uint32 `idl:"name:sv503_threadcountadd" json:"thread_count_add"`
	NumBlockThreads                uint32 `idl:"name:sv503_numblockthreads" json:"num_block_threads"`
	ScavTimeout                    uint32 `idl:"name:sv503_scavtimeout" json:"scav_timeout"`
	MinReceiveQueue                uint32 `idl:"name:sv503_minrcvqueue" json:"min_receive_queue"`
	MinFreeWorkItems               uint32 `idl:"name:sv503_minfreeworkitems" json:"min_free_work_items"`
	ExactMemSize                   uint32 `idl:"name:sv503_xactmemsize" json:"exact_mem_size"`
	ThreadPriority                 uint32 `idl:"name:sv503_threadpriority" json:"thread_priority"`
	MaxMPXCount                    uint32 `idl:"name:sv503_maxmpxct" json:"max_mpx_count"`
	OperationLockBreakWait         uint32 `idl:"name:sv503_oplockbreakwait" json:"operation_lock_break_wait"`
	OperationLockBreakResponseWait uint32 `idl:"name:sv503_oplockbreakresponsewait" json:"operation_lock_break_response_wait"`
	EnableOperationLocks           int32  `idl:"name:sv503_enableoplocks" json:"enable_operation_locks"`
	Enableoplockforceclose         int32  `idl:"name:sv503_enableoplockforceclose" json:"enableoplockforceclose"`
	EnableFCBOpens                 int32  `idl:"name:sv503_enablefcbopens" json:"enable_fcb_opens"`
	EnableRaw                      int32  `idl:"name:sv503_enableraw" json:"enable_raw"`
	EnableSharedNetDrives          int32  `idl:"name:sv503_enablesharednetdrives" json:"enable_shared_net_drives"`
	MinFreeConnections             uint32 `idl:"name:sv503_minfreeconnections" json:"min_free_connections"`
	MaxFreeConnections             uint32 `idl:"name:sv503_maxfreeconnections" json:"max_free_connections"`
}

ServerInfo503 structure represents SERVER_INFO_503 RPC structure.

The SERVER_INFO_503 structure contains information about a specified server. For a description of the fields in this structure, see the description for the SERVER_INFO_599 structure (sv503_xxx denotes the same information as sv599_xxx).

func (*ServerInfo503) MarshalNDR

func (o *ServerInfo503) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo503) UnmarshalNDR

func (o *ServerInfo503) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo599

type ServerInfo599 struct {
	// sv599_sessopens:  Specifies the number of files that can be open in one session.
	// The range of values MUST be from 1 to 16384, inclusive.<20>
	SessionOpens uint32 `idl:"name:sv599_sessopens" json:"session_opens"`
	// sv599_sessvcs:  Specifies the maximum number of sessions that are permitted per client.
	// This value MUST be set to one.
	SessionServices uint32 `idl:"name:sv599_sessvcs" json:"session_services"`
	// sv599_opensearch:  Specifies the number of search operations that can be carried
	// out simultaneously. The range of values MUST be from 1 to 2,048, inclusive.
	OpenSearch uint32 `idl:"name:sv599_opensearch" json:"open_search"`
	// sv599_sizreqbuf:  Specifies the size, in bytes, of each server buffer. This field
	// MUST be ignored by the server on receipt for set operations. The range of values
	// MUST be 1,024 to 65,535, inclusive.<21>
	SizeRequestBuffer uint32 `idl:"name:sv599_sizreqbuf" json:"size_request_buffer"`
	// sv599_initworkitems:  Specifies the initial number of receive buffers, or work items,
	// that the server uses. The range of values for get operations MUST be from 1 to 512,
	// inclusive. This field MUST be ignored by the server on receipt for set operations.
	InitWorkItems uint32 `idl:"name:sv599_initworkitems" json:"init_work_items"`
	// sv599_maxworkitems:  Specifies the maximum number of receive buffers, or work items,
	// that the server can allocate. If this limit is reached, the transport MUST initiate
	// flow control. The range of values MUST be from 1 to 65,535, inclusive. The server
	// enforces a ceiling based on the particular SKU that is running on the server by taking
	// a minimum specified value and the ceiling.
	MaxWorkItems uint32 `idl:"name:sv599_maxworkitems" json:"max_work_items"`
	// sv599_rawworkitems:  Specifies the number of special work items the server uses for
	// raw mode I/O. A larger value for this member can increase performance, but it requires
	// more memory. The range of values for get operations MUST be from 1 to 512, inclusive.
	// This field MUST be ignored by the server on receipt for set operations.
	RawWorkItems uint32 `idl:"name:sv599_rawworkitems" json:"raw_work_items"`
	// sv599_irpstacksize:  Specifies the number of stack locations that the server allocated
	// in I/O request packets (IRPs). This field MUST be ignored by the server on receipt
	// for set operations. The range of values MUST be 11 to 50, inclusive.<22>
	IRPStackSize uint32 `idl:"name:sv599_irpstacksize" json:"irp_stack_size"`
	// sv599_maxrawbuflen:  The server MUST validate the value on receipt. This value MUST
	// be set to 65,535. Due to historical reasons, the server does not store this value.
	MaxRawBufferLength uint32 `idl:"name:sv599_maxrawbuflen" json:"max_raw_buffer_length"`
	// sv599_sessusers:  Specifies the maximum number of users who can be logged on to the
	// server in a single connection. The range of values MUST be from 1 to 2,048, inclusive.
	SessionUsers uint32 `idl:"name:sv599_sessusers" json:"session_users"`
	// sv599_sessconns:  Specifies the maximum number of tree connections that can be made
	// on the server in a single session. The range of values MUST be from 1 to 2,048, inclusive.
	SessionConnections uint32 `idl:"name:sv599_sessconns" json:"session_connections"`
	// sv599_maxpagedmemoryusage:  Specifies the maximum size of pageable memory, in bytes,
	// that the server can allocate at any one time. The range of values MUST be from 0x00400000
	// to 0xFFFFFFFF, inclusive.<23>
	MaxPagedMemoryUsage uint32 `idl:"name:sv599_maxpagedmemoryusage" json:"max_paged_memory_usage"`
	// sv599_maxnonpagedmemoryusage:  Specifies the maximum size of nonpaged memory in bytes
	// that the server can allocate at any one time. The range of values MUST be from 0x00400000
	// to 0xFFFFFFFF, inclusive.<24>
	MaxNonPagedMemoryUsage uint32 `idl:"name:sv599_maxnonpagedmemoryusage" json:"max_non_paged_memory_usage"`
	// sv599_enablesoftcompat:  A Boolean that specifies the SoftCompatibility capability
	// of the server. This field MUST be set to TRUE (1) to enable the SoftCompatibility
	// feature, or it MUST be set to FALSE (0) to disable the SoftCompatibility feature.
	// The default value is TRUE (1). This setting affects the open mode when the client
	// does not have read/write permission to the file it is accessing. If this feature
	// is enabled, the server uses share access (parameter to CreateFile) equal to FILE_SHARE_READ
	// and does not mark the open as compatibility mode open; otherwise, share access is
	// set equal to 0, and the open is marked as compatibility mode open.
	EnableSoftCompatibility int32 `idl:"name:sv599_enablesoftcompat" json:"enable_soft_compatibility"`
	// sv599_enableforcedlogoff:  A Boolean that specifies whether or not the server forces
	// a client to disconnect, even if the client has open files, after the client's logon
	// time has expired. This field MUST be set to TRUE (1) for the server to force a client
	// to disconnect under those circumstances, or it MUST be set to FALSE (0) for the server
	// not to force a client to disconnect under those circumstances. The default value
	// is TRUE (1).
	EnableForcedLogoff int32 `idl:"name:sv599_enableforcedlogoff" json:"enable_forced_logoff"`
	// sv599_timesource:  A Boolean that specifies whether the server is a reliable time
	// source.
	TimeSource int32 `idl:"name:sv599_timesource" json:"time_source"`
	// sv599_acceptdownlevelapis:  A Boolean that specifies whether the server accepts method
	// calls from previous-generation NTLM clients. This field MUST be set to TRUE (1) to
	// enable the server to accept method calls from previous-generation NTLM clients, or
	// it MUST be set to FALSE (0) to disable the server from accepting method calls from
	// previous NTLM clients. The default value is TRUE (1). This field MUST be ignored
	// by the server on receipt.
	AcceptDownLevelAPIs int32 `idl:"name:sv599_acceptdownlevelapis" json:"accept_down_level_apis"`
	// sv599_lmannounce:  A Boolean that specifies whether the server is visible to NTLM
	// 2.x clients. The default value is FALSE (0). If this feature is enabled, the server
	// announces its presence through LanMan or NetBIOS announcements.
	LMAnnounce int32 `idl:"name:sv599_lmannounce" json:"lm_announce"`
	// sv599_domain:  A pointer to a Unicode UTF character string that specifies the name
	// of the server's domain. This field cannot be modified by clients.
	Domain string `idl:"name:sv599_domain;string" json:"domain"`
	// sv599_maxcopyreadlen:  The server MUST validate this value on receipt. The range
	// of values MUST be from 0x00000000 to 0xFFFFFFFF, inclusive. Due to historical reasons,
	// the server does not store this value.
	MaxCopyReadLength uint32 `idl:"name:sv599_maxcopyreadlen" json:"max_copy_read_length"`
	// sv599_maxcopywritelen:  The server MUST validate this value on receipt. The range
	// of values MUST be from 0x00000000 to 0xFFFFFFFF, inclusive. Due to historical reasons,
	// the server does not store this value.
	MaxCopyWriteLength uint32 `idl:"name:sv599_maxcopywritelen" json:"max_copy_write_length"`
	// sv599_minkeepsearch:  The server MUST validate this value on receipt. The range of
	// values MUST be from 5 to 5,000, inclusive. Due to historical reasons, the server
	// does not store this value.
	MinKeepSearch uint32 `idl:"name:sv599_minkeepsearch" json:"min_keep_search"`
	// sv599_maxkeepsearch:  Specifies the length of time, in seconds, that the server retains
	// information about incomplete directory search operations. For more information about
	// directory searches, see [MS-CIFS] sections 2.2.6.2 and 2.2.6.3. The range of values
	// MUST be from 10 to 10,000, inclusive.
	MaxKeepSearch uint32 `idl:"name:sv599_maxkeepsearch" json:"max_keep_search"`
	// sv599_minkeepcomplsearch:  The server MUST validate this value on receipt. The range
	// of values MUST be from 1 to 1,000, inclusive. Due to historical reasons, the server
	// does not store this value.
	MinKeepComplSearch uint32 `idl:"name:sv599_minkeepcomplsearch" json:"min_keep_compl_search"`
	// sv599_maxkeepcomplsearch:  The server MUST validate this value on receipt. The range
	// of values MUST be from 2 to 10,000, inclusive. Due to historical reasons, the server
	// does not store this value.
	MaxKeepComplSearch uint32 `idl:"name:sv599_maxkeepcomplsearch" json:"max_keep_compl_search"`
	// sv599_threadcountadd:  Unused. This field MUST be ignored on receipt.
	ThreadCountAdd uint32 `idl:"name:sv599_threadcountadd" json:"thread_count_add"`
	// sv599_numblockthreads:  Unused. This field MUST be ignored on receipt.
	NumBlockThreads uint32 `idl:"name:sv599_numblockthreads" json:"num_block_threads"`
	// sv599_scavtimeout:  Specifies the period of time, in seconds, that an implementation-specific
	// timer on the server remains idle before waking up to service requests. This timer
	// runs periodic maintenance tasks that monitor time-out requests, log errors, update
	// server statistics, and update the connection Quality of Service (QoS) by querying
	// the underlying transport. The range of values MUST be from 1 to 300, inclusive.
	ScavTimeout uint32 `idl:"name:sv599_scavtimeout" json:"scav_timeout"`
	// sv599_minrcvqueue:  Specifies the minimum number of free receive work items that
	// the server requires before it begins to allocate more. The server keeps a pool of
	// free work items for each worker queue. When a new request is posted to this queue,
	// a work item is picked from the pool to hold that request while it is being processed.
	// The work item is returned to the pool after the processing is done. If the number
	// of free work items (that is, work items that are not being used to process a request)
	// for a queue falls below this setting, the server will request more work items to
	// be allocated for the queue. The range of values MUST be from 0 to 10, inclusive.
	MinReceiveQueue uint32 `idl:"name:sv599_minrcvqueue" json:"min_receive_queue"`
	// sv599_minfreeworkitems:  Specifies the minimum number of available receive work items
	// that the server requires to begin processing a server message block. The range of
	// values MUST be from 0 to 10, inclusive.
	MinFreeWorkItems uint32 `idl:"name:sv599_minfreeworkitems" json:"min_free_work_items"`
	// sv599_xactmemsize:  Specifies the size, in bytes, of the shared memory region that
	// is used to process server methods. The range of values MUST be from 0x10000 (64 KB)
	// to 0x1000000 (16 MB), inclusive. This field MUST be ignored by the server on receipt
	// for set operations.
	ExactMemSize uint32 `idl:"name:sv599_xactmemsize" json:"exact_mem_size"`
	// sv599_threadpriority:  Specifies the priority of all server threads in relation to
	// the base priority of the process. The range of values MUST be from 0 to 15, inclusive.
	// This field MUST be ignored by the server on receipt for set operations.
	ThreadPriority uint32 `idl:"name:sv599_threadpriority" json:"thread_priority"`
	// sv599_maxmpxct:  Specifies the maximum number of outstanding requests that any one
	// client can send to the server. The range of values MUST be from 1 to 65,535, inclusive.
	MaxMPXCount uint32 `idl:"name:sv599_maxmpxct" json:"max_mpx_count"`
	// sv599_oplockbreakwait:  Specifies the period of time, in seconds, to wait before
	// timing out an opportunistic lock break request. For more information about opportunistic
	// locks, see  [MS-CIFS] section  3.2.4.18. The range of values MUST be from 10 to
	// 180, inclusive.
	OperationLockBreakWait uint32 `idl:"name:sv599_oplockbreakwait" json:"operation_lock_break_wait"`
	// sv599_oplockbreakresponsewait:  Specifies the period of time, in seconds, that the
	// server waits for a client to respond to an opportunistic lock break request from
	// the server. For more information about opportunistic locks, see [MS-CIFS] section
	// 3.2.4.18. The range of values MUST be from 10 to 180, inclusive.
	OperationLockBreakResponseWait uint32 `idl:"name:sv599_oplockbreakresponsewait" json:"operation_lock_break_response_wait"`
	// sv599_enableoplocks:  A Boolean that specifies whether the server allows clients
	// to use opportunistic locks on files. Opportunistic locks are a significant performance
	// enhancement, but they have the potential to cause lost cached data on some networks,
	// particularly wide-area networks. For more information about opportunistic locks,
	// see [MS-CIFS] section 3.2.4.18. This field MUST be set to TRUE (1) to enable clients
	// to use opportunistic locks on files, or it MUST be set to FALSE (0) to restrict clients
	// from using opportunistic locks on files. The default value is TRUE (1).
	EnableOperationLocks int32 `idl:"name:sv599_enableoplocks" json:"enable_operation_locks"`
	// sv599_enableoplockforceclose:  Unused. MUST be set to zero and ignored on receipt.
	Enableoplockforceclose int32 `idl:"name:sv599_enableoplockforceclose" json:"enableoplockforceclose"`
	// sv599_enablefcbopens:  Specifies whether several MS-DOS File Control Blocks (FCBs)
	// are placed in a single location accessible to the server. If enabled, this option
	// can save resources on the server. This field MUST be set to TRUE (1) to place multiple
	// MS-DOS FCBs in a single location accessible to the server, and it MUST be set to
	// FALSE (0) otherwise. The default value is TRUE (1).
	EnableFCBOpens int32 `idl:"name:sv599_enablefcbopens" json:"enable_fcb_opens"`
	// sv599_enableraw:  Specifies whether the server processes raw SMBs. If enabled, this
	// allows more data to transfer per transaction and improves performance. However, it
	// is possible that processing raw SMBs can impede performance on certain networks.
	// This field MUST be set to TRUE (1) to indicate that the server processes raw SMBs,
	// and it MUST be set to FALSE (0) to indicate that the server does not process raw
	// SMBs. The server MUST maintain the value of this member. The default value is TRUE
	// (1).
	EnableRaw int32 `idl:"name:sv599_enableraw" json:"enable_raw"`
	// sv599_enablesharednetdrives:  Specifies whether the server allows redirected server
	// drives to be shared. The default value is FALSE (0).
	EnableSharedNetDrives int32 `idl:"name:sv599_enablesharednetdrives" json:"enable_shared_net_drives"`
	// sv599_minfreeconnections:  Specifies the minimum number of free connection blocks
	// that are maintained per endpoint. The server MUST set these aside to handle bursts
	// of requests by clients to connect to the server. The range of values MUST be from
	// 2 to 1,024.<25>
	MinFreeConnections uint32 `idl:"name:sv599_minfreeconnections" json:"min_free_connections"`
	// sv599_maxfreeconnections:  Specifies the maximum number of free connection blocks
	// that are maintained per endpoint. The server MUST set these aside to handle bursts
	// of requests by clients to connect to the server. The range of values MUST be from
	// 2 to 16,384.<26>
	MaxFreeConnections uint32 `idl:"name:sv599_maxfreeconnections" json:"max_free_connections"`
	// sv599_initsesstable:  Specifies the initial session table size for the server in
	// terms of the number of records (session structures used by the server internally
	// to represent active sessions). The range of values MUST be from 1 to 64, inclusive.
	InitSessionTable uint32 `idl:"name:sv599_initsesstable" json:"init_session_table"`
	// sv599_initconntable:  Specifies the initial connection table size for the server
	// in terms of the number of records (connection structures used by the server internally
	// to represent active connections). The range of values MUST be from 1 to 128, inclusive.
	InitConnectionTable uint32 `idl:"name:sv599_initconntable" json:"init_connection_table"`
	// sv599_initfiletable:  Specifies the initial file table size for the server in terms
	// of the number of records (file structures used by the server internally to represent
	// current open resources). The range of values MUST be from 1 to 256, inclusive.
	InitFileTable uint32 `idl:"name:sv599_initfiletable" json:"init_file_table"`
	// sv599_initsearchtable:  Specifies the initial search table size for the server in
	// terms of the number of records (search structures used by the server internally to
	// represent active searches). The range of values MUST be from 1 to 2,048, inclusive.
	InitSearchTable uint32 `idl:"name:sv599_initsearchtable" json:"init_search_table"`
	// sv599_alertschedule:  Specifies the time, in minutes, between two invocations of
	// an implementation-specific algorithm on the server. This algorithm monitors server
	// errors and disk space limits, and it generates the implementation-specific failure
	// events. The range of values MUST be from 1 to 65,535, inclusive.
	AlertSchedule uint32 `idl:"name:sv599_alertschedule" json:"alert_schedule"`
	// sv599_errorthreshold:  Specifies the number of failed operations (non-network) that
	// the server logs before raising an administrative alert. The particular operations
	// whose failure causes the count of failed non-network operations to be incremented
	// is implementation-dependent. The range of values MUST be from 1 to 65,535, inclusive.
	ErrorThreshold uint32 `idl:"name:sv599_errorthreshold" json:"error_threshold"`
	// sv599_networkerrorthreshold:  Specifies the minimum percentage of failed network
	// operations that the server records before raising an administrative alert. An alert
	// MUST be raised when (the number of failed network operations / the number of all
	// attempted network operations) * 100 is greater than or equal to this value. The range
	// of values MUST be from 1 to 100, inclusive.
	NetworkErrorThreshold uint32 `idl:"name:sv599_networkerrorthreshold" json:"network_error_threshold"`
	// sv599_diskspacethreshold:  Specifies the percent of free disk at which to raise an
	// administrative alert. The range of values MUST be from 0 to 99, inclusive.
	DiskSpaceThreshold uint32 `idl:"name:sv599_diskspacethreshold" json:"disk_space_threshold"`

	// sv599_maxlinkdelay:  Specifies the maximum link delay, in seconds, for the server.
	// The server enables raw I/O [MS-SMB] for a connection only if oplocks are enabled
	// for this connection and the link delay on the connection is less than or equal to
	// this value. The range of values MUST be from 0x00000000 to 0x10000000, inclusive.
	MaxLinkDelay uint32 `idl:"name:sv599_maxlinkdelay" json:"max_link_delay"`
	// sv599_minlinkthroughput:  Specifies the minimum link throughput, in bytes/second,
	// for the server. The server enables oplocks for a connection only if its current throughput
	// is greater than or equal to this value. The range of values MUST be from 0x00000000
	// to 0xFFFFFFFF, inclusive.
	MinLinkThroughput uint32 `idl:"name:sv599_minlinkthroughput" json:"min_link_throughput"`
	// sv599_linkinfovalidtime:  Specifies the time interval, in seconds, during which the
	// server can use the computed link information before having to compute it again. The
	// range of values MUST be from 0x00000000 to 0x10000000, inclusive.
	LinkInfoValidTime uint32 `idl:"name:sv599_linkinfovalidtime" json:"link_info_valid_time"`
	// sv599_scavqosinfoupdatetime:  Specifies the time interval for which an implementation-specific
	// timer on the server has to update QoS information. This time interval allows the
	// client to have the QoS information update done less frequently than the other tasks
	// done by the timer. The range of values MUST be from 0x00000000 to 0x10000000, inclusive.
	ScavQoSInfoUpdateTime uint32 `idl:"name:sv599_scavqosinfoupdatetime" json:"scav_qos_info_update_time"`
	// sv599_maxworkitemidletime:  Specifies the maximum work item idle time, in seconds.
	// For historical reasons, the server only stores this value, and it has no effect on
	// server operation. The range of values MUST be from 10 to 1,800, inclusive.
	MaxWorkItemIdleTime uint32 `idl:"name:sv599_maxworkitemidletime" json:"max_work_item_idle_time"`
	// contains filtered or unexported fields
}

ServerInfo599 structure represents SERVER_INFO_599 RPC structure.

The SERVER_INFO_599 structure contains information about a specified server. The SERVER_INFO_599 fields involve implementation-specific details of CIFS and SMB Version 1.0 file servers. These fields can vary in how they apply to any given implementation. For more information, see section 3.1.4.18.

func (*ServerInfo599) MarshalNDR

func (o *ServerInfo599) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo599) UnmarshalNDR

func (o *ServerInfo599) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_100

type ServerInfo_100 struct {
	// ServerInfo100:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.40.
	ServerInfo100 *dtyp.ServerInfo100 `idl:"name:ServerInfo100" json:"server_info100"`
}

ServerInfo_100 structure represents SERVER_INFO RPC union arm.

It has following labels: 100

func (*ServerInfo_100) MarshalNDR

func (o *ServerInfo_100) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_100) UnmarshalNDR

func (o *ServerInfo_100) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1005

type ServerInfo_1005 struct {
	// ServerInfo1005:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.47.
	ServerInfo1005 *ServerInfo1005 `idl:"name:ServerInfo1005" json:"server_info1005"`
}

ServerInfo_1005 structure represents SERVER_INFO RPC union arm.

It has following labels: 1005

func (*ServerInfo_1005) MarshalNDR

func (o *ServerInfo_1005) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1005) UnmarshalNDR

func (o *ServerInfo_1005) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_101

type ServerInfo_101 struct {
	// ServerInfo101:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.41.
	ServerInfo101 *dtyp.ServerInfo101 `idl:"name:ServerInfo101" json:"server_info101"`
}

ServerInfo_101 structure represents SERVER_INFO RPC union arm.

It has following labels: 101

func (*ServerInfo_101) MarshalNDR

func (o *ServerInfo_101) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_101) UnmarshalNDR

func (o *ServerInfo_101) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1010

type ServerInfo_1010 struct {
	// ServerInfo1010:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.49.
	ServerInfo1010 *ServerInfo1010 `idl:"name:ServerInfo1010" json:"server_info1010"`
}

ServerInfo_1010 structure represents SERVER_INFO RPC union arm.

It has following labels: 1010

func (*ServerInfo_1010) MarshalNDR

func (o *ServerInfo_1010) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1010) UnmarshalNDR

func (o *ServerInfo_1010) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1016

type ServerInfo_1016 struct {
	// ServerInfo1016:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.50.
	ServerInfo1016 *ServerInfo1016 `idl:"name:ServerInfo1016" json:"server_info1016"`
}

ServerInfo_1016 structure represents SERVER_INFO RPC union arm.

It has following labels: 1016

func (*ServerInfo_1016) MarshalNDR

func (o *ServerInfo_1016) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1016) UnmarshalNDR

func (o *ServerInfo_1016) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1017

type ServerInfo_1017 struct {
	// ServerInfo1017:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.51.
	ServerInfo1017 *ServerInfo1017 `idl:"name:ServerInfo1017" json:"server_info1017"`
}

ServerInfo_1017 structure represents SERVER_INFO RPC union arm.

It has following labels: 1017

func (*ServerInfo_1017) MarshalNDR

func (o *ServerInfo_1017) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1017) UnmarshalNDR

func (o *ServerInfo_1017) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1018

type ServerInfo_1018 struct {
	// ServerInfo1018:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.52.
	ServerInfo1018 *ServerInfo1018 `idl:"name:ServerInfo1018" json:"server_info1018"`
}

ServerInfo_1018 structure represents SERVER_INFO RPC union arm.

It has following labels: 1018

func (*ServerInfo_1018) MarshalNDR

func (o *ServerInfo_1018) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1018) UnmarshalNDR

func (o *ServerInfo_1018) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_102

type ServerInfo_102 struct {
	// ServerInfo102:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.42.
	ServerInfo102 *ServerInfo102 `idl:"name:ServerInfo102" json:"server_info102"`
}

ServerInfo_102 structure represents SERVER_INFO RPC union arm.

It has following labels: 102

func (*ServerInfo_102) MarshalNDR

func (o *ServerInfo_102) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_102) UnmarshalNDR

func (o *ServerInfo_102) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_103

type ServerInfo_103 struct {
	// ServerInfo103:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.43.<8>
	ServerInfo103 *ServerInfo103 `idl:"name:ServerInfo103" json:"server_info103"`
}

ServerInfo_103 structure represents SERVER_INFO RPC union arm.

It has following labels: 103

func (*ServerInfo_103) MarshalNDR

func (o *ServerInfo_103) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_103) UnmarshalNDR

func (o *ServerInfo_103) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1107

type ServerInfo_1107 struct {
	// ServerInfo1107:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.48.
	ServerInfo1107 *ServerInfo1107 `idl:"name:ServerInfo1107" json:"server_info1107"`
}

ServerInfo_1107 structure represents SERVER_INFO RPC union arm.

It has following labels: 1107

func (*ServerInfo_1107) MarshalNDR

func (o *ServerInfo_1107) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1107) UnmarshalNDR

func (o *ServerInfo_1107) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1501

type ServerInfo_1501 struct {
	// ServerInfo1501:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.53.
	ServerInfo1501 *ServerInfo1501 `idl:"name:ServerInfo1501" json:"server_info1501"`
}

ServerInfo_1501 structure represents SERVER_INFO RPC union arm.

It has following labels: 1501

func (*ServerInfo_1501) MarshalNDR

func (o *ServerInfo_1501) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1501) UnmarshalNDR

func (o *ServerInfo_1501) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1502

type ServerInfo_1502 struct {
	// ServerInfo1502:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.54.
	ServerInfo1502 *ServerInfo1502 `idl:"name:ServerInfo1502" json:"server_info1502"`
}

ServerInfo_1502 structure represents SERVER_INFO RPC union arm.

It has following labels: 1502

func (*ServerInfo_1502) MarshalNDR

func (o *ServerInfo_1502) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1502) UnmarshalNDR

func (o *ServerInfo_1502) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1503

type ServerInfo_1503 struct {
	// ServerInfo1503:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.55.
	ServerInfo1503 *ServerInfo1503 `idl:"name:ServerInfo1503" json:"server_info1503"`
}

ServerInfo_1503 structure represents SERVER_INFO RPC union arm.

It has following labels: 1503

func (*ServerInfo_1503) MarshalNDR

func (o *ServerInfo_1503) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1503) UnmarshalNDR

func (o *ServerInfo_1503) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1506

type ServerInfo_1506 struct {
	// ServerInfo1506:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.56.
	ServerInfo1506 *ServerInfo1506 `idl:"name:ServerInfo1506" json:"server_info1506"`
}

ServerInfo_1506 structure represents SERVER_INFO RPC union arm.

It has following labels: 1506

func (*ServerInfo_1506) MarshalNDR

func (o *ServerInfo_1506) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1506) UnmarshalNDR

func (o *ServerInfo_1506) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1510

type ServerInfo_1510 struct {
	// ServerInfo1510:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.57.
	ServerInfo1510 *ServerInfo1510 `idl:"name:ServerInfo1510" json:"server_info1510"`
}

ServerInfo_1510 structure represents SERVER_INFO RPC union arm.

It has following labels: 1510

func (*ServerInfo_1510) MarshalNDR

func (o *ServerInfo_1510) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1510) UnmarshalNDR

func (o *ServerInfo_1510) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1511

type ServerInfo_1511 struct {
	// ServerInfo1511:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.58.
	ServerInfo1511 *ServerInfo1511 `idl:"name:ServerInfo1511" json:"server_info1511"`
}

ServerInfo_1511 structure represents SERVER_INFO RPC union arm.

It has following labels: 1511

func (*ServerInfo_1511) MarshalNDR

func (o *ServerInfo_1511) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1511) UnmarshalNDR

func (o *ServerInfo_1511) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1512

type ServerInfo_1512 struct {
	// ServerInfo1512:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.59.
	ServerInfo1512 *ServerInfo1512 `idl:"name:ServerInfo1512" json:"server_info1512"`
}

ServerInfo_1512 structure represents SERVER_INFO RPC union arm.

It has following labels: 1512

func (*ServerInfo_1512) MarshalNDR

func (o *ServerInfo_1512) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1512) UnmarshalNDR

func (o *ServerInfo_1512) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1513

type ServerInfo_1513 struct {
	// ServerInfo1513:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.60.
	ServerInfo1513 *ServerInfo1513 `idl:"name:ServerInfo1513" json:"server_info1513"`
}

ServerInfo_1513 structure represents SERVER_INFO RPC union arm.

It has following labels: 1513

func (*ServerInfo_1513) MarshalNDR

func (o *ServerInfo_1513) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1513) UnmarshalNDR

func (o *ServerInfo_1513) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1514

type ServerInfo_1514 struct {
	// ServerInfo1514:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.61.
	ServerInfo1514 *ServerInfo1514 `idl:"name:ServerInfo1514" json:"server_info1514"`
}

ServerInfo_1514 structure represents SERVER_INFO RPC union arm.

It has following labels: 1514

func (*ServerInfo_1514) MarshalNDR

func (o *ServerInfo_1514) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1514) UnmarshalNDR

func (o *ServerInfo_1514) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1515

type ServerInfo_1515 struct {
	// ServerInfo1515:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.62
	ServerInfo1515 *ServerInfo1515 `idl:"name:ServerInfo1515" json:"server_info1515"`
}

ServerInfo_1515 structure represents SERVER_INFO RPC union arm.

It has following labels: 1515

func (*ServerInfo_1515) MarshalNDR

func (o *ServerInfo_1515) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1515) UnmarshalNDR

func (o *ServerInfo_1515) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1516

type ServerInfo_1516 struct {
	// ServerInfo1516:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.63.
	ServerInfo1516 *ServerInfo1516 `idl:"name:ServerInfo1516" json:"server_info1516"`
}

ServerInfo_1516 structure represents SERVER_INFO RPC union arm.

It has following labels: 1516

func (*ServerInfo_1516) MarshalNDR

func (o *ServerInfo_1516) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1516) UnmarshalNDR

func (o *ServerInfo_1516) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1518

type ServerInfo_1518 struct {
	// ServerInfo1518:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.64.
	ServerInfo1518 *ServerInfo1518 `idl:"name:ServerInfo1518" json:"server_info1518"`
}

ServerInfo_1518 structure represents SERVER_INFO RPC union arm.

It has following labels: 1518

func (*ServerInfo_1518) MarshalNDR

func (o *ServerInfo_1518) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1518) UnmarshalNDR

func (o *ServerInfo_1518) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1523

type ServerInfo_1523 struct {
	// ServerInfo1523:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.65.
	ServerInfo1523 *ServerInfo1523 `idl:"name:ServerInfo1523" json:"server_info1523"`
}

ServerInfo_1523 structure represents SERVER_INFO RPC union arm.

It has following labels: 1523

func (*ServerInfo_1523) MarshalNDR

func (o *ServerInfo_1523) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1523) UnmarshalNDR

func (o *ServerInfo_1523) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1528

type ServerInfo_1528 struct {
	// ServerInfo1528:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.66.
	ServerInfo1528 *ServerInfo1528 `idl:"name:ServerInfo1528" json:"server_info1528"`
}

ServerInfo_1528 structure represents SERVER_INFO RPC union arm.

It has following labels: 1528

func (*ServerInfo_1528) MarshalNDR

func (o *ServerInfo_1528) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1528) UnmarshalNDR

func (o *ServerInfo_1528) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1529

type ServerInfo_1529 struct {
	// ServerInfo1529:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.67.
	ServerInfo1529 *ServerInfo1529 `idl:"name:ServerInfo1529" json:"server_info1529"`
}

ServerInfo_1529 structure represents SERVER_INFO RPC union arm.

It has following labels: 1529

func (*ServerInfo_1529) MarshalNDR

func (o *ServerInfo_1529) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1529) UnmarshalNDR

func (o *ServerInfo_1529) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1530

type ServerInfo_1530 struct {
	// ServerInfo1530:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.68.
	ServerInfo1530 *ServerInfo1530 `idl:"name:ServerInfo1530" json:"server_info1530"`
}

ServerInfo_1530 structure represents SERVER_INFO RPC union arm.

It has following labels: 1530

func (*ServerInfo_1530) MarshalNDR

func (o *ServerInfo_1530) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1530) UnmarshalNDR

func (o *ServerInfo_1530) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1533

type ServerInfo_1533 struct {
	// ServerInfo1533:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.69.
	ServerInfo1533 *ServerInfo1533 `idl:"name:ServerInfo1533" json:"server_info1533"`
}

ServerInfo_1533 structure represents SERVER_INFO RPC union arm.

It has following labels: 1533

func (*ServerInfo_1533) MarshalNDR

func (o *ServerInfo_1533) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1533) UnmarshalNDR

func (o *ServerInfo_1533) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1534

type ServerInfo_1534 struct {
	// ServerInfo1534:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.70.
	ServerInfo1534 *ServerInfo1534 `idl:"name:ServerInfo1534" json:"server_info1534"`
}

ServerInfo_1534 structure represents SERVER_INFO RPC union arm.

It has following labels: 1534

func (*ServerInfo_1534) MarshalNDR

func (o *ServerInfo_1534) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1534) UnmarshalNDR

func (o *ServerInfo_1534) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1535

type ServerInfo_1535 struct {
	// ServerInfo1535:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.71.
	ServerInfo1535 *ServerInfo1535 `idl:"name:ServerInfo1535" json:"server_info1535"`
}

ServerInfo_1535 structure represents SERVER_INFO RPC union arm.

It has following labels: 1535

func (*ServerInfo_1535) MarshalNDR

func (o *ServerInfo_1535) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1535) UnmarshalNDR

func (o *ServerInfo_1535) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1536

type ServerInfo_1536 struct {
	// ServerInfo1536:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.72.
	ServerInfo1536 *ServerInfo1536 `idl:"name:ServerInfo1536" json:"server_info1536"`
}

ServerInfo_1536 structure represents SERVER_INFO RPC union arm.

It has following labels: 1536

func (*ServerInfo_1536) MarshalNDR

func (o *ServerInfo_1536) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1536) UnmarshalNDR

func (o *ServerInfo_1536) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1538

type ServerInfo_1538 struct {
	// ServerInfo1538:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.73.
	ServerInfo1538 *ServerInfo1538 `idl:"name:ServerInfo1538" json:"server_info1538"`
}

ServerInfo_1538 structure represents SERVER_INFO RPC union arm.

It has following labels: 1538

func (*ServerInfo_1538) MarshalNDR

func (o *ServerInfo_1538) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1538) UnmarshalNDR

func (o *ServerInfo_1538) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1539

type ServerInfo_1539 struct {
	// ServerInfo1539:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.74.
	ServerInfo1539 *ServerInfo1539 `idl:"name:ServerInfo1539" json:"server_info1539"`
}

ServerInfo_1539 structure represents SERVER_INFO RPC union arm.

It has following labels: 1539

func (*ServerInfo_1539) MarshalNDR

func (o *ServerInfo_1539) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1539) UnmarshalNDR

func (o *ServerInfo_1539) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1540

type ServerInfo_1540 struct {
	// ServerInfo1540:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.75.
	ServerInfo1540 *ServerInfo1540 `idl:"name:ServerInfo1540" json:"server_info1540"`
}

ServerInfo_1540 structure represents SERVER_INFO RPC union arm.

It has following labels: 1540

func (*ServerInfo_1540) MarshalNDR

func (o *ServerInfo_1540) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1540) UnmarshalNDR

func (o *ServerInfo_1540) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1541

type ServerInfo_1541 struct {
	// ServerInfo1541:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.76.
	ServerInfo1541 *ServerInfo1541 `idl:"name:ServerInfo1541" json:"server_info1541"`
}

ServerInfo_1541 structure represents SERVER_INFO RPC union arm.

It has following labels: 1541

func (*ServerInfo_1541) MarshalNDR

func (o *ServerInfo_1541) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1541) UnmarshalNDR

func (o *ServerInfo_1541) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1542

type ServerInfo_1542 struct {
	// ServerInfo1542:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.77.
	ServerInfo1542 *ServerInfo1542 `idl:"name:ServerInfo1542" json:"server_info1542"`
}

ServerInfo_1542 structure represents SERVER_INFO RPC union arm.

It has following labels: 1542

func (*ServerInfo_1542) MarshalNDR

func (o *ServerInfo_1542) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1542) UnmarshalNDR

func (o *ServerInfo_1542) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1543

type ServerInfo_1543 struct {
	// ServerInfo1543:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.78.
	ServerInfo1543 *ServerInfo1543 `idl:"name:ServerInfo1543" json:"server_info1543"`
}

ServerInfo_1543 structure represents SERVER_INFO RPC union arm.

It has following labels: 1543

func (*ServerInfo_1543) MarshalNDR

func (o *ServerInfo_1543) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1543) UnmarshalNDR

func (o *ServerInfo_1543) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1544

type ServerInfo_1544 struct {
	// ServerInfo1544:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.79.
	ServerInfo1544 *ServerInfo1544 `idl:"name:ServerInfo1544" json:"server_info1544"`
}

ServerInfo_1544 structure represents SERVER_INFO RPC union arm.

It has following labels: 1544

func (*ServerInfo_1544) MarshalNDR

func (o *ServerInfo_1544) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1544) UnmarshalNDR

func (o *ServerInfo_1544) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1545

type ServerInfo_1545 struct {
	// ServerInfo1545:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.80.
	ServerInfo1545 *ServerInfo1545 `idl:"name:ServerInfo1545" json:"server_info1545"`
}

ServerInfo_1545 structure represents SERVER_INFO RPC union arm.

It has following labels: 1545

func (*ServerInfo_1545) MarshalNDR

func (o *ServerInfo_1545) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1545) UnmarshalNDR

func (o *ServerInfo_1545) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1546

type ServerInfo_1546 struct {
	// ServerInfo1546:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.81.
	ServerInfo1546 *ServerInfo1546 `idl:"name:ServerInfo1546" json:"server_info1546"`
}

ServerInfo_1546 structure represents SERVER_INFO RPC union arm.

It has following labels: 1546

func (*ServerInfo_1546) MarshalNDR

func (o *ServerInfo_1546) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1546) UnmarshalNDR

func (o *ServerInfo_1546) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1547

type ServerInfo_1547 struct {
	// ServerInfo1547:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.82.
	ServerInfo1547 *ServerInfo1547 `idl:"name:ServerInfo1547" json:"server_info1547"`
}

ServerInfo_1547 structure represents SERVER_INFO RPC union arm.

It has following labels: 1547

func (*ServerInfo_1547) MarshalNDR

func (o *ServerInfo_1547) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1547) UnmarshalNDR

func (o *ServerInfo_1547) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1548

type ServerInfo_1548 struct {
	// ServerInfo1548:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.83.
	ServerInfo1548 *ServerInfo1548 `idl:"name:ServerInfo1548" json:"server_info1548"`
}

ServerInfo_1548 structure represents SERVER_INFO RPC union arm.

It has following labels: 1548

func (*ServerInfo_1548) MarshalNDR

func (o *ServerInfo_1548) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1548) UnmarshalNDR

func (o *ServerInfo_1548) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1549

type ServerInfo_1549 struct {
	// ServerInfo1549:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.84.
	ServerInfo1549 *ServerInfo1549 `idl:"name:ServerInfo1549" json:"server_info1549"`
}

ServerInfo_1549 structure represents SERVER_INFO RPC union arm.

It has following labels: 1549

func (*ServerInfo_1549) MarshalNDR

func (o *ServerInfo_1549) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1549) UnmarshalNDR

func (o *ServerInfo_1549) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1550

type ServerInfo_1550 struct {
	// ServerInfo1550:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.85.
	ServerInfo1550 *ServerInfo1550 `idl:"name:ServerInfo1550" json:"server_info1550"`
}

ServerInfo_1550 structure represents SERVER_INFO RPC union arm.

It has following labels: 1550

func (*ServerInfo_1550) MarshalNDR

func (o *ServerInfo_1550) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1550) UnmarshalNDR

func (o *ServerInfo_1550) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1552

type ServerInfo_1552 struct {
	// ServerInfo1552:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.86.
	ServerInfo1552 *ServerInfo1552 `idl:"name:ServerInfo1552" json:"server_info1552"`
}

ServerInfo_1552 structure represents SERVER_INFO RPC union arm.

It has following labels: 1552

func (*ServerInfo_1552) MarshalNDR

func (o *ServerInfo_1552) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1552) UnmarshalNDR

func (o *ServerInfo_1552) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1553

type ServerInfo_1553 struct {
	// ServerInfo1553:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.87.
	ServerInfo1553 *ServerInfo1553 `idl:"name:ServerInfo1553" json:"server_info1553"`
}

ServerInfo_1553 structure represents SERVER_INFO RPC union arm.

It has following labels: 1553

func (*ServerInfo_1553) MarshalNDR

func (o *ServerInfo_1553) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1553) UnmarshalNDR

func (o *ServerInfo_1553) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1554

type ServerInfo_1554 struct {
	// ServerInfo1554:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.88.
	ServerInfo1554 *ServerInfo1554 `idl:"name:ServerInfo1554" json:"server_info1554"`
}

ServerInfo_1554 structure represents SERVER_INFO RPC union arm.

It has following labels: 1554

func (*ServerInfo_1554) MarshalNDR

func (o *ServerInfo_1554) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1554) UnmarshalNDR

func (o *ServerInfo_1554) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1555

type ServerInfo_1555 struct {
	// ServerInfo1555:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.89.
	ServerInfo1555 *ServerInfo1555 `idl:"name:ServerInfo1555" json:"server_info1555"`
}

ServerInfo_1555 structure represents SERVER_INFO RPC union arm.

It has following labels: 1555

func (*ServerInfo_1555) MarshalNDR

func (o *ServerInfo_1555) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1555) UnmarshalNDR

func (o *ServerInfo_1555) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_1556

type ServerInfo_1556 struct {
	// ServerInfo1556:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.90.
	ServerInfo1556 *ServerInfo1556 `idl:"name:ServerInfo1556" json:"server_info1556"`
}

ServerInfo_1556 structure represents SERVER_INFO RPC union arm.

It has following labels: 1556

func (*ServerInfo_1556) MarshalNDR

func (o *ServerInfo_1556) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_1556) UnmarshalNDR

func (o *ServerInfo_1556) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_502

type ServerInfo_502 struct {
	// ServerInfo502:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.44.
	ServerInfo502 *ServerInfo502 `idl:"name:ServerInfo502" json:"server_info502"`
}

ServerInfo_502 structure represents SERVER_INFO RPC union arm.

It has following labels: 502

func (*ServerInfo_502) MarshalNDR

func (o *ServerInfo_502) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_502) UnmarshalNDR

func (o *ServerInfo_502) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_503

type ServerInfo_503 struct {
	// ServerInfo503:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.45.
	ServerInfo503 *ServerInfo503 `idl:"name:ServerInfo503" json:"server_info503"`
}

ServerInfo_503 structure represents SERVER_INFO RPC union arm.

It has following labels: 503

func (*ServerInfo_503) MarshalNDR

func (o *ServerInfo_503) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_503) UnmarshalNDR

func (o *ServerInfo_503) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerInfo_599

type ServerInfo_599 struct {
	// ServerInfo599:  A pointer to a structure that contains information about a server,
	// as specified in section 2.2.4.46.
	ServerInfo599 *ServerInfo599 `idl:"name:ServerInfo599" json:"server_info599"`
}

ServerInfo_599 structure represents SERVER_INFO RPC union arm.

It has following labels: 599

func (*ServerInfo_599) MarshalNDR

func (o *ServerInfo_599) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerInfo_599) UnmarshalNDR

func (o *ServerInfo_599) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerTransportInfo0

type ServerTransportInfo0 struct {
	NumberOfClients        uint32 `idl:"name:svti0_numberofvcs" json:"number_of_clients"`
	TransportName          string `idl:"name:svti0_transportname;string" json:"transport_name"`
	TransportAddress       []byte `idl:"name:svti0_transportaddress;size_is:(svti0_transportaddresslength)" json:"transport_address"`
	TransportAddressLength uint32 `idl:"name:svti0_transportaddresslength" json:"transport_address_length"`
	NetworkAddress         string `idl:"name:svti0_networkaddress;string" json:"network_address"`
}

ServerTransportInfo0 structure represents SERVER_TRANSPORT_INFO_0 RPC structure.

The SERVER_TRANSPORT_INFO_0 structure contains information about the specified transport protocol, including the name, address, and location on the network. The definitions of fields in this structure are specified in section 2.2.4.96. Fields having names of the form svti0_xxx MUST be defined as in the corresponding SERVER_TRANSPORT_INFO_3 fields with names of the form svti3_xxx.

func (*ServerTransportInfo0) MarshalNDR

func (o *ServerTransportInfo0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerTransportInfo0) UnmarshalNDR

func (o *ServerTransportInfo0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerTransportInfo1

type ServerTransportInfo1 struct {
	NumberOfClients        uint32 `idl:"name:svti1_numberofvcs" json:"number_of_clients"`
	TransportName          string `idl:"name:svti1_transportname;string" json:"transport_name"`
	TransportAddress       []byte `idl:"name:svti1_transportaddress;size_is:(svti1_transportaddresslength)" json:"transport_address"`
	TransportAddressLength uint32 `idl:"name:svti1_transportaddresslength" json:"transport_address_length"`
	NetworkAddress         string `idl:"name:svti1_networkaddress;string" json:"network_address"`
	Domain                 string `idl:"name:svti1_domain;string" json:"domain"`
}

ServerTransportInfo1 structure represents SERVER_TRANSPORT_INFO_1 RPC structure.

The SERVER_TRANSPORT_INFO_1 structure contains information about the specified transport protocol, including the name, address, and location on the network. The definitions of fields in this structure are specified in section 2.2.4.96. Fields having names of the form svti1_xxx MUST be defined as in the corresponding SERVER_TRANSPORT_INFO_3 fields with names of the form svti3_xxx.

func (*ServerTransportInfo1) MarshalNDR

func (o *ServerTransportInfo1) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerTransportInfo1) UnmarshalNDR

func (o *ServerTransportInfo1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerTransportInfo2

type ServerTransportInfo2 struct {
	NumberOfClients        uint32 `idl:"name:svti2_numberofvcs" json:"number_of_clients"`
	TransportName          string `idl:"name:svti2_transportname;string" json:"transport_name"`
	TransportAddress       []byte `idl:"name:svti2_transportaddress;size_is:(svti2_transportaddresslength)" json:"transport_address"`
	TransportAddressLength uint32 `idl:"name:svti2_transportaddresslength" json:"transport_address_length"`
	NetworkAddress         string `idl:"name:svti2_networkaddress;string" json:"network_address"`
	Domain                 string `idl:"name:svti2_domain;string" json:"domain"`
	Flags                  uint32 `idl:"name:svti2_flags" json:"flags"`
}

ServerTransportInfo2 structure represents SERVER_TRANSPORT_INFO_2 RPC structure.

The SERVER_TRANSPORT_INFO_2 structure contains information about the specified transport protocol, including the name and address. The definitions of fields in this structure are specified in section 2.2.4.96. Fields having names of the form svti2_xxx MUST be defined as in the corresponding SERVER_TRANSPORT_INFO_3 fields with names of the form svti3_xxx.

func (*ServerTransportInfo2) MarshalNDR

func (o *ServerTransportInfo2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerTransportInfo2) UnmarshalNDR

func (o *ServerTransportInfo2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerTransportInfo3

type ServerTransportInfo3 struct {
	// svti3_numberofvcs:  Specifies a DWORD value that indicates the number of clients
	// that are connected to the server and that are using the transport protocol that is
	// specified by the svti3_transportname member.
	NumberOfClients uint32 `idl:"name:svti3_numberofvcs" json:"number_of_clients"`
	// svti3_transportname:   A pointer to a null-terminated Unicode string that contains
	// the implementation-specific name of a device that implements support for the transport.
	// This field is provided by the transport driver and can depend on the physical network
	// adapter over which the transport runs.<27>
	TransportName string `idl:"name:svti3_transportname;string" json:"transport_name"`
	// svti3_transportaddress:  A pointer to a variable that contains the transport address
	// that the server is using on the transport device that is specified by the svti3_transportname
	// member. <28>
	TransportAddress []byte `idl:"name:svti3_transportaddress;size_is:(svti3_transportaddresslength)" json:"transport_address"`
	// svti3_transportaddresslength:  Specifies a DWORD value that contains the length,
	// in bytes, of the svti3_transportaddress member.<29>
	TransportAddressLength uint32 `idl:"name:svti3_transportaddresslength" json:"transport_address_length"`
	// svti3_networkaddress:  A pointer to a null-terminated character string that contains
	// the address that the network adapter is using. The string is transport-specific.
	// The server MUST ignore this field on receipt.<30>
	NetworkAddress string `idl:"name:svti3_networkaddress;string" json:"network_address"`
	// svti3_domain:  A pointer to a null-terminated character string that contains the
	// name of the domain to which the server announces its presence.
	Domain string `idl:"name:svti3_domain;string" json:"domain"`
	// svti3_flags:  This member MUST be a combination of zero or more of the following
	// values.
	//
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	|                                   |                                                                                  |
	//	|               VALUE               |                                     MEANING                                      |
	//	|                                   |                                                                                  |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| SVTI2_REMAP_PIPE_NAMES 0x00000002 | If this value is set for an endpoint, client requests that arrive over the       |
	//	|                                   | transport to open a named pipe MUST be rerouted (remapped) to the local pipe     |
	//	|                                   | name $$\ServerName\PipeName.                                                     |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| SVTI2_SCOPED_NAME 0x00000004      | If this value is set for an endpoint, all shares attached to svti3_transportname |
	//	|                                   | are scoped shares.                                                               |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	Flags uint32 `idl:"name:svti3_flags" json:"flags"`
	// svti3_passwordlength:  Specifies a DWORD value that indicates the number of valid
	// bytes in the svti3_password member.
	PasswordLength uint32 `idl:"name:svti3_passwordlength" json:"password_length"`
	// svti3_password:  Specifies the credentials to use for the new transport address.
	// If the svti3_passwordlength member is zero, the credentials for the server MUST be
	// used.
	Password []byte `idl:"name:svti3_password" json:"password"`
}

ServerTransportInfo3 structure represents SERVER_TRANSPORT_INFO_3 RPC structure.

The SERVER_TRANSPORT_INFO_3 structure contains information about the specified transport protocol, including the name, address, and password (credentials).

func (*ServerTransportInfo3) MarshalNDR

func (o *ServerTransportInfo3) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerTransportInfo3) UnmarshalNDR

func (o *ServerTransportInfo3) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerXportEnum

type ServerXportEnum struct {
	// Level:  Specifies the information level of the data. This parameter MUST have one
	// of the following values.
	//
	//	+-------+-------------------------------+
	//	|       |                               |
	//	| VALUE |            MEANING            |
	//	|       |                               |
	//	+-------+-------------------------------+
	//	+-------+-------------------------------+
	//	|     0 | SERVER_XPORT_INFO_0_CONTAINER |
	//	+-------+-------------------------------+
	//	|     1 | SERVER_XPORT_INFO_1_CONTAINER |
	//	+-------+-------------------------------+
	//	|     2 | SERVER_XPORT_INFO_2_CONTAINER |
	//	+-------+-------------------------------+
	//	|     3 | SERVER_XPORT_INFO_3_CONTAINER |
	//	+-------+-------------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// XportInfo:  Contains information about file server transports in the format that
	// is determined by the Level parameter, as shown in the preceding table. This member
	// receives the enumerated information.
	XportInfo *ServerXportEnumUnion `idl:"name:XportInfo;switch_is:Level" json:"xport_info"`
}

ServerXportEnum structure represents SERVER_XPORT_ENUM_STRUCT RPC structure.

The SERVER_XPORT_ENUM_STRUCT structure specifies the information level that the client requests in the NetrServerTransportEnum method and encapsulates the SERVER_XPORT_ENUM_UNION union that receives the entries that are enumerated by the server.

func (*ServerXportEnum) MarshalNDR

func (o *ServerXportEnum) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerXportEnum) UnmarshalNDR

func (o *ServerXportEnum) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerXportEnumUnion

type ServerXportEnumUnion struct {
	// Types that are assignable to Value
	//
	// *ServerXportEnumUnion_Level0
	// *ServerXportEnumUnion_Level1
	// *ServerXportEnumUnion_Level2
	// *ServerXportEnumUnion_Level3
	Value is_ServerXportEnumUnion `json:"value"`
}

ServerXportEnumUnion structure represents SERVER_XPORT_ENUM_UNION RPC union.

The SERVER_XPORT_ENUM_UNION union contains information about file server transports.

func (*ServerXportEnumUnion) GetValue

func (o *ServerXportEnumUnion) GetValue() any

func (*ServerXportEnumUnion) MarshalUnionNDR

func (o *ServerXportEnumUnion) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*ServerXportEnumUnion) NDRSwitchValue

func (o *ServerXportEnumUnion) NDRSwitchValue(sw uint32) uint32

func (*ServerXportEnumUnion) UnmarshalUnionNDR

func (o *ServerXportEnumUnion) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type ServerXportEnumUnion_Level0

type ServerXportEnumUnion_Level0 struct {
	// Level0:  A pointer to a structure containing information about file server transports,
	// as specified in section 2.2.4.97.
	Level0 *ServerXportInfo0Container `idl:"name:Level0" json:"level0"`
}

ServerXportEnumUnion_Level0 structure represents SERVER_XPORT_ENUM_UNION RPC union arm.

It has following labels: 0

func (*ServerXportEnumUnion_Level0) MarshalNDR

func (*ServerXportEnumUnion_Level0) UnmarshalNDR

func (o *ServerXportEnumUnion_Level0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerXportEnumUnion_Level1

type ServerXportEnumUnion_Level1 struct {
	// Level1:  A pointer to a structure containing information about file server transports,
	// as specified in section 2.2.4.98.
	Level1 *ServerXportInfo1Container `idl:"name:Level1" json:"level1"`
}

ServerXportEnumUnion_Level1 structure represents SERVER_XPORT_ENUM_UNION RPC union arm.

It has following labels: 1

func (*ServerXportEnumUnion_Level1) MarshalNDR

func (*ServerXportEnumUnion_Level1) UnmarshalNDR

func (o *ServerXportEnumUnion_Level1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerXportEnumUnion_Level2

type ServerXportEnumUnion_Level2 struct {
	// Level2:  A pointer to a structure containing information about file server transports,
	// as specified in section 2.2.4.99.
	Level2 *ServerXportInfo2Container `idl:"name:Level2" json:"level2"`
}

ServerXportEnumUnion_Level2 structure represents SERVER_XPORT_ENUM_UNION RPC union arm.

It has following labels: 2

func (*ServerXportEnumUnion_Level2) MarshalNDR

func (*ServerXportEnumUnion_Level2) UnmarshalNDR

func (o *ServerXportEnumUnion_Level2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerXportEnumUnion_Level3

type ServerXportEnumUnion_Level3 struct {
	// Level3:  A pointer to a structure containing information about file server transports,
	// as specified in section 2.2.4.100.
	Level3 *ServerXportInfo3Container `idl:"name:Level3" json:"level3"`
}

ServerXportEnumUnion_Level3 structure represents SERVER_XPORT_ENUM_UNION RPC union arm.

It has following labels: 3

func (*ServerXportEnumUnion_Level3) MarshalNDR

func (*ServerXportEnumUnion_Level3) UnmarshalNDR

func (o *ServerXportEnumUnion_Level3) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerXportInfo0Container

type ServerXportInfo0Container struct {
	// EntriesRead:  The number of entries that the method returns.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SERVER_TRANSPORT_INFO_0 entries that the method returns.
	Buffer []*ServerTransportInfo0 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ServerXportInfo0Container structure represents SERVER_XPORT_INFO_0_CONTAINER RPC structure.

The SERVER_XPORT_INFO_0_CONTAINER structure contains a value that indicates the number of entries that the NetrServerTransportEnum method returns and a pointer to the buffer that contains the entries.

func (*ServerXportInfo0Container) MarshalNDR

func (o *ServerXportInfo0Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerXportInfo0Container) UnmarshalNDR

func (o *ServerXportInfo0Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerXportInfo1Container

type ServerXportInfo1Container struct {
	// EntriesRead:  The number of entries that the method returns.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SERVER_TRANSPORT_INFO_1 entries that the method returns.
	Buffer []*ServerTransportInfo1 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ServerXportInfo1Container structure represents SERVER_XPORT_INFO_1_CONTAINER RPC structure.

The SERVER_XPORT_INFO_1_CONTAINER structure contains a value that indicates the number of entries that the NetrServerTransportEnum method returns and a pointer to the buffer that contains the entries.

func (*ServerXportInfo1Container) MarshalNDR

func (o *ServerXportInfo1Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerXportInfo1Container) UnmarshalNDR

func (o *ServerXportInfo1Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerXportInfo2Container

type ServerXportInfo2Container struct {
	// EntriesRead:  The number of entries that the method returns.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SERVER_TRANSPORT_INFO_2 entries that the method returns.
	Buffer []*ServerTransportInfo2 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ServerXportInfo2Container structure represents SERVER_XPORT_INFO_2_CONTAINER RPC structure.

The SERVER_XPORT_INFO_2_CONTAINER structure contains a value that indicates the number of entries that the NetrServerTransportEnum method returns and a pointer to the buffer that contains the entries.

func (*ServerXportInfo2Container) MarshalNDR

func (o *ServerXportInfo2Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerXportInfo2Container) UnmarshalNDR

func (o *ServerXportInfo2Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ServerXportInfo3Container

type ServerXportInfo3Container struct {
	// EntriesRead:  The number of entries that the method returns.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SERVER_TRANSPORT_INFO_3 entries that the method returns.
	Buffer []*ServerTransportInfo3 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ServerXportInfo3Container structure represents SERVER_XPORT_INFO_3_CONTAINER RPC structure.

The SERVER_XPORT_INFO_3_CONTAINER structure contains a value that indicates the number of entries that the NetrServerTransportEnum method returns and a pointer to the buffer that contains the entries.

func (*ServerXportInfo3Container) MarshalNDR

func (o *ServerXportInfo3Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ServerXportInfo3Container) UnmarshalNDR

func (o *ServerXportInfo3Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionDeleteRequest

type SessionDeleteRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// ClientName: A pointer to a null-terminated UTF-16 string that specifies the computer
	// name of the client whose sessions are to be disconnected. This string MUST be one
	// of the following: a NULL (zero-length) string; or a string that MUST begin with \\.
	ClientName string `idl:"name:ClientName;string;pointer:unique" json:"client_name"`
	// UserName: A pointer to a null-terminated UTF-16 string that specifies the user name
	// whose sessions are to be terminated.
	UserName string `idl:"name:UserName;string;pointer:unique" json:"user_name"`
}

SessionDeleteRequest structure represents the NetrSessionDel operation request

func (*SessionDeleteRequest) MarshalNDR

func (o *SessionDeleteRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionDeleteRequest) UnmarshalNDR

func (o *SessionDeleteRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SessionDeleteResponse

type SessionDeleteResponse struct {
	// Return: The NetrSessionDel return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

SessionDeleteResponse structure represents the NetrSessionDel operation response

func (*SessionDeleteResponse) MarshalNDR

func (o *SessionDeleteResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionDeleteResponse) UnmarshalNDR

func (o *SessionDeleteResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SessionEnum

type SessionEnum struct {
	// Level:  Specifies the information level of the data. This parameter MUST have one
	// of the following values.
	//
	//	+-------+----------------------------+
	//	|       |                            |
	//	| VALUE |          MEANING           |
	//	|       |                            |
	//	+-------+----------------------------+
	//	+-------+----------------------------+
	//	|     0 | SESSION_INFO_0_CONTAINER   |
	//	+-------+----------------------------+
	//	|     1 | SESSION_INFO_1_CONTAINER   |
	//	+-------+----------------------------+
	//	|     2 | SESSION_INFO_2_CONTAINER   |
	//	+-------+----------------------------+
	//	|    10 | SESSION_INFO_10_CONTAINER  |
	//	+-------+----------------------------+
	//	|   502 | SESSION_INFO_502_CONTAINER |
	//	+-------+----------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// SessionInfo:  Contains a session info container whose type is specified by the Level
	// parameter, as shown in the preceding table. The enumerated session entries are returned
	// in this member.
	SessionInfo *SessionEnumUnion `idl:"name:SessionInfo;switch_is:Level" json:"session_info"`
}

SessionEnum structure represents SESSION_ENUM_STRUCT RPC structure.

The SESSION_ENUM_STRUCT structure specifies the information level that the client requests in the NetrSessionEnum method and encapsulates the SESSION_ENUM_UNION union that receives the entries that are enumerated by the server.

func (*SessionEnum) MarshalNDR

func (o *SessionEnum) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionEnum) UnmarshalNDR

func (o *SessionEnum) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionEnumRequest

type SessionEnumRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// ClientName: A pointer to a null-terminated UTF-16 string that specifies the name
	// of the computer session for which information is to be returned. This string MUST
	// be one of the following: a NULL (zero-length) string; or a string that MUST begin
	// with \\.
	ClientName string `idl:"name:ClientName;string;pointer:unique" json:"client_name"`
	// UserName: A pointer to a null-terminated UTF-16 string that specifies the user name
	// for which information is to be returned.
	UserName string `idl:"name:UserName;string;pointer:unique" json:"user_name"`
	// InfoStruct: A pointer to a structure, in the format of a SESSION_ENUM_STRUCT. The
	// SESSION_ENUM_STRUCT structure has a Level member that specifies the type of structure
	// to return. The Level member MUST be one of the values specified in section 2.2.4.21.
	Info *SessionEnum `idl:"name:InfoStruct" json:"info"`
	// PreferedMaximumLength: Specifies the preferred maximum length, in bytes, of the returned
	// data. If the value that is specified is MAX_PREFERRED_LENGTH, the method MUST attempt
	// to return all entries.
	PreferredMaximumLength uint32 `idl:"name:PreferedMaximumLength" json:"preferred_maximum_length"`
	// ResumeHandle: A pointer to a value that contains a handle that is used to continue
	// an existing session search in SessionList, as specified in section 3.1.1.1. The handle
	// MUST be zero on the first call and remain unchanged for subsequent calls. If the
	// ResumeHandle parameter is NULL, no resume handle MUST be stored. If this parameter
	// is not NULL and the method returns ERROR_MORE_DATA, this parameter receives an implementation-specific
	// nonzero value that can be passed in subsequent calls to this method to continue with
	// the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
}

SessionEnumRequest structure represents the NetrSessionEnum operation request

func (*SessionEnumRequest) MarshalNDR

func (o *SessionEnumRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionEnumRequest) UnmarshalNDR

func (o *SessionEnumRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SessionEnumResponse

type SessionEnumResponse struct {
	// InfoStruct: A pointer to a structure, in the format of a SESSION_ENUM_STRUCT. The
	// SESSION_ENUM_STRUCT structure has a Level member that specifies the type of structure
	// to return. The Level member MUST be one of the values specified in section 2.2.4.21.
	Info *SessionEnum `idl:"name:InfoStruct" json:"info"`
	// TotalEntries: The total number of entries that could have been enumerated if the
	// buffer had been big enough to hold all the entries.
	TotalEntries uint32 `idl:"name:TotalEntries" json:"total_entries"`
	// ResumeHandle: A pointer to a value that contains a handle that is used to continue
	// an existing session search in SessionList, as specified in section 3.1.1.1. The handle
	// MUST be zero on the first call and remain unchanged for subsequent calls. If the
	// ResumeHandle parameter is NULL, no resume handle MUST be stored. If this parameter
	// is not NULL and the method returns ERROR_MORE_DATA, this parameter receives an implementation-specific
	// nonzero value that can be passed in subsequent calls to this method to continue with
	// the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
	// Return: The NetrSessionEnum return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

SessionEnumResponse structure represents the NetrSessionEnum operation response

func (*SessionEnumResponse) MarshalNDR

func (o *SessionEnumResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionEnumResponse) UnmarshalNDR

func (o *SessionEnumResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SessionEnumUnion

type SessionEnumUnion struct {
	// Types that are assignable to Value
	//
	// *SessionEnumUnion_Level0
	// *SessionEnumUnion_Level1
	// *SessionEnumUnion_Level2
	// *SessionEnumUnion_Level10
	// *SessionEnumUnion_Level502
	Value is_SessionEnumUnion `json:"value"`
}

SessionEnumUnion structure represents SESSION_ENUM_UNION RPC union.

The SESSION_ENUM_UNION union contains information about sessions. It is used in the definition of the SESSION_ENUM_STRUCT structure.

func (*SessionEnumUnion) GetValue

func (o *SessionEnumUnion) GetValue() any

func (*SessionEnumUnion) MarshalUnionNDR

func (o *SessionEnumUnion) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*SessionEnumUnion) NDRSwitchValue

func (o *SessionEnumUnion) NDRSwitchValue(sw uint32) uint32

func (*SessionEnumUnion) UnmarshalUnionNDR

func (o *SessionEnumUnion) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type SessionEnumUnion_Level0

type SessionEnumUnion_Level0 struct {
	// Level0:  A pointer to a structure that contains information about sessions, as specified
	// in section 2.2.4.16.
	Level0 *SessionInfo0Container `idl:"name:Level0" json:"level0"`
}

SessionEnumUnion_Level0 structure represents SESSION_ENUM_UNION RPC union arm.

It has following labels: 0

func (*SessionEnumUnion_Level0) MarshalNDR

func (o *SessionEnumUnion_Level0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionEnumUnion_Level0) UnmarshalNDR

func (o *SessionEnumUnion_Level0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionEnumUnion_Level1

type SessionEnumUnion_Level1 struct {
	// Level1:  A pointer to a structure that contains information about sessions, as specified
	// in section 2.2.4.17.
	Level1 *SessionInfo1Container `idl:"name:Level1" json:"level1"`
}

SessionEnumUnion_Level1 structure represents SESSION_ENUM_UNION RPC union arm.

It has following labels: 1

func (*SessionEnumUnion_Level1) MarshalNDR

func (o *SessionEnumUnion_Level1) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionEnumUnion_Level1) UnmarshalNDR

func (o *SessionEnumUnion_Level1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionEnumUnion_Level10

type SessionEnumUnion_Level10 struct {
	// Level10:  A pointer to a structure that contains information about sessions, as specified
	// in section 2.2.4.19.
	Level10 *SessionInfo10Container `idl:"name:Level10" json:"level10"`
}

SessionEnumUnion_Level10 structure represents SESSION_ENUM_UNION RPC union arm.

It has following labels: 10

func (*SessionEnumUnion_Level10) MarshalNDR

func (o *SessionEnumUnion_Level10) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionEnumUnion_Level10) UnmarshalNDR

func (o *SessionEnumUnion_Level10) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionEnumUnion_Level2

type SessionEnumUnion_Level2 struct {
	// Level2:  A pointer to a structure that contains information about sessions, as specified
	// in section 2.2.4.18.
	Level2 *SessionInfo2Container `idl:"name:Level2" json:"level2"`
}

SessionEnumUnion_Level2 structure represents SESSION_ENUM_UNION RPC union arm.

It has following labels: 2

func (*SessionEnumUnion_Level2) MarshalNDR

func (o *SessionEnumUnion_Level2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionEnumUnion_Level2) UnmarshalNDR

func (o *SessionEnumUnion_Level2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionEnumUnion_Level502

type SessionEnumUnion_Level502 struct {
	// Level502:  A pointer to a structure that contains information about sessions, as
	// specified in section 2.2.4.20.
	Level502 *SessionInfo502Container `idl:"name:Level502" json:"level502"`
}

SessionEnumUnion_Level502 structure represents SESSION_ENUM_UNION RPC union arm.

It has following labels: 502

func (*SessionEnumUnion_Level502) MarshalNDR

func (o *SessionEnumUnion_Level502) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionEnumUnion_Level502) UnmarshalNDR

func (o *SessionEnumUnion_Level502) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionInfo0

type SessionInfo0 struct {
	// sesi0_cname:  A pointer to a null-terminated Unicode UTF-16 Internet host name or
	// NetBIOS host name of the computer that established the session.
	ClientName string `idl:"name:sesi0_cname;string" json:"client_name"`
}

SessionInfo0 structure represents SESSION_INFO_0 RPC structure.

The SESSION_INFO_0 structure contains the name of the computer that established the session.

func (*SessionInfo0) MarshalNDR

func (o *SessionInfo0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionInfo0) UnmarshalNDR

func (o *SessionInfo0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionInfo0Container

type SessionInfo0Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SESSION_INFO_0 entries returned by the method.
	Buffer []*SessionInfo0 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

SessionInfo0Container structure represents SESSION_INFO_0_CONTAINER RPC structure.

The SESSION_INFO_0_CONTAINER structure contains a value that indicates the number of entries that the NetrSessionEnum method returns and a pointer to the buffer that contains the entries.

func (*SessionInfo0Container) MarshalNDR

func (o *SessionInfo0Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionInfo0Container) UnmarshalNDR

func (o *SessionInfo0Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionInfo1

type SessionInfo1 struct {
	// sesi1_cname:  A pointer to a null-terminated Unicode UTF-16 Internet host name or
	// NetBIOS host name of the computer that established the session.
	ClientName string `idl:"name:sesi1_cname;string" json:"client_name"`
	// sesi1_username:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// the name of the user who established the session.
	UserName string `idl:"name:sesi1_username;string" json:"user_name"`
	// sesi1_num_opens:  Specifies a DWORD value that contains the number of files, devices,
	// and pipes that were opened during the session.
	NumOpens uint32 `idl:"name:sesi1_num_opens" json:"num_opens"`
	// sesi1_time:  Specifies a DWORD value that contains the number of seconds since the
	// session was created.
	Time uint32 `idl:"name:sesi1_time" json:"time"`
	// sesi1_idle_time:  Specifies a DWORD value that contains the number of seconds the
	// session has been idle.
	IdleTime uint32 `idl:"name:sesi1_idle_time" json:"idle_time"`
	// sesi1_user_flags:  Specifies a DWORD value that specifies how the user established
	// the session. This member MUST be a combination of one or more of the values that
	// are defined in 2.2.2.3.
	UserFlags uint32 `idl:"name:sesi1_user_flags" json:"user_flags"`
}

SessionInfo1 structure represents SESSION_INFO_1 RPC structure.

The SESSION_INFO_1 structure contains information about the session, including the name of the computer and user; open files, pipes, and devices that are on the computer; session active and idle times; and how the user established the session.

func (*SessionInfo1) MarshalNDR

func (o *SessionInfo1) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionInfo1) UnmarshalNDR

func (o *SessionInfo1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionInfo10

type SessionInfo10 struct {
	// sesi10_cname:  A pointer to a null-terminated Unicode UTF-16 Internet host name or
	// NetBIOS host name of the computer that established the session.
	ClientName string `idl:"name:sesi10_cname;string" json:"client_name"`
	// sesi10_username:  A pointer to a null-terminated Unicode UTF-16 string specifying
	// the name of the user who established the session.
	UserName string `idl:"name:sesi10_username;string" json:"user_name"`
	// sesi10_time:  Specifies the number of seconds the session has been active.
	Time uint32 `idl:"name:sesi10_time" json:"time"`
	// sesi10_idle_time:  Specifies the number of seconds the session has been idle.
	IdleTime uint32 `idl:"name:sesi10_idle_time" json:"idle_time"`
}

SessionInfo10 structure represents SESSION_INFO_10 RPC structure.

The SESSION_INFO_10 structure contains information about the session, including the name of the computer, the name of the user, and the active and idle times for the session.

func (*SessionInfo10) MarshalNDR

func (o *SessionInfo10) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionInfo10) UnmarshalNDR

func (o *SessionInfo10) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionInfo10Container

type SessionInfo10Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SESSION_INFO_10 entries returned by the method.
	Buffer []*SessionInfo10 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

SessionInfo10Container structure represents SESSION_INFO_10_CONTAINER RPC structure.

The SESSION_INFO_10_CONTAINER structure contains a value that indicates the number of entries that the NetrSessionEnum method returns and a pointer to the buffer that contains the entries.

func (*SessionInfo10Container) MarshalNDR

func (o *SessionInfo10Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionInfo10Container) UnmarshalNDR

func (o *SessionInfo10Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionInfo1Container

type SessionInfo1Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SESSION_INFO_1 entries returned by the method.
	Buffer []*SessionInfo1 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

SessionInfo1Container structure represents SESSION_INFO_1_CONTAINER RPC structure.

The SESSION_INFO_1_CONTAINER structure contains a value that indicates the number of entries that the NetrSessionEnum method returns and a pointer to the buffer that contains the entries.

func (*SessionInfo1Container) MarshalNDR

func (o *SessionInfo1Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionInfo1Container) UnmarshalNDR

func (o *SessionInfo1Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionInfo2

type SessionInfo2 struct {
	// sesi2_cname:  A pointer to a null-terminated Unicode UTF-16 Internet host name or
	// NetBIOS host name of the computer that established the session.
	ClientName string `idl:"name:sesi2_cname;string" json:"client_name"`
	// sesi2_username:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// the name of the user who established the session.
	UserName string `idl:"name:sesi2_username;string" json:"user_name"`
	// sesi2_num_opens:  Specifies a DWORD value that contains the number of files, devices,
	// and pipes that were opened during the session.
	NumOpens uint32 `idl:"name:sesi2_num_opens" json:"num_opens"`
	// sesi2_time:  Specifies a DWORD value that contains the number of seconds the session
	// has been active.
	Time uint32 `idl:"name:sesi2_time" json:"time"`
	// sesi2_idle_time:  Specifies a DWORD value that contains the number of seconds the
	// session has been idle.
	IdleTime uint32 `idl:"name:sesi2_idle_time" json:"idle_time"`
	// sesi2_user_flags:  Specifies a DWORD value that describes how the user established
	// the session. This member MUST be a combination of one or more of the values that
	// are defined in section 2.2.2.3.
	UserFlags uint32 `idl:"name:sesi2_user_flags" json:"user_flags"`
	// sesi2_cltype_name:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// the type of client that established the session. The server simply stores this string,
	// as specified in section 2.2.2.1, and its value does not modify the behavior of the
	// protocol. <9>
	ClientTypeName string `idl:"name:sesi2_cltype_name;string" json:"client_type_name"`
}

SessionInfo2 structure represents SESSION_INFO_2 RPC structure.

The SESSION_INFO_2 structure contains information about the session, including the name of the computer; name of the user; open files, pipes, and devices that are on the computer; session active and idle times; how the user established the session; and the type of client that established the session.

func (*SessionInfo2) MarshalNDR

func (o *SessionInfo2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionInfo2) UnmarshalNDR

func (o *SessionInfo2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionInfo2Container

type SessionInfo2Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SESSION_INFO_2 entries returned by the method.
	Buffer []*SessionInfo2 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

SessionInfo2Container structure represents SESSION_INFO_2_CONTAINER RPC structure.

The SESSION_INFO_2_CONTAINER structure contains a value that indicates the number of entries that the NetrSessionEnum method returns and a pointer to the buffer that contains the entries.

func (*SessionInfo2Container) MarshalNDR

func (o *SessionInfo2Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionInfo2Container) UnmarshalNDR

func (o *SessionInfo2Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionInfo502

type SessionInfo502 struct {
	// sesi502_cname:  A pointer to a null-terminated Unicode UTF-16 Internet host name
	// or NetBIOS host name of the computer that established the session.
	ClientName string `idl:"name:sesi502_cname;string" json:"client_name"`
	// sesi502_username:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// the name of the user who established the session.
	UserName string `idl:"name:sesi502_username;string" json:"user_name"`
	// sesi502_num_opens:  Specifies the number of files, devices, and pipes that were opened
	// during the session.
	NumOpens uint32 `idl:"name:sesi502_num_opens" json:"num_opens"`
	// sesi502_time:  Specifies the number of seconds the session has been active.
	Time uint32 `idl:"name:sesi502_time" json:"time"`
	// sesi502_idle_time:  Specifies the number of seconds the session has been idle.
	IdleTime uint32 `idl:"name:sesi502_idle_time" json:"idle_time"`
	// sesi502_user_flags:  Specifies a value that describes how the user established the
	// session. This member MUST be a combination of one or more of the values that are
	// listed in section 2.2.2.3.
	UserFlags uint32 `idl:"name:sesi502_user_flags" json:"user_flags"`
	// sesi502_cltype_name:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// the type of client that established the session. The server simply stores this string,
	// as specified in section 2.2.2.1, and its value does not modify the behavior of the
	// protocol.<10>
	ClientTypeName string `idl:"name:sesi502_cltype_name;string" json:"client_type_name"`
	// sesi502_transport:  Specifies the name of the transport that the client is using
	// to communicate with the server.
	Transport string `idl:"name:sesi502_transport;string" json:"transport"`
}

SessionInfo502 structure represents SESSION_INFO_502 RPC structure.

The SESSION_INFO_502 structure contains information about the session, including the name of the computer; the name of the user; open files, pipes, and devices that are on the computer; the client type; session active and idle times; how the user established the session; and the name of the transport that the client is using.

func (*SessionInfo502) MarshalNDR

func (o *SessionInfo502) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionInfo502) UnmarshalNDR

func (o *SessionInfo502) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SessionInfo502Container

type SessionInfo502Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SESSION_INFO_502 entries returned by the method.
	Buffer []*SessionInfo502 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

SessionInfo502Container structure represents SESSION_INFO_502_CONTAINER RPC structure.

The SESSION_INFO_502_CONTAINER structure contains a value that indicates the number of entries that the NetrSessionEnum method returns and a pointer to the buffer that contains the entries.

func (*SessionInfo502Container) MarshalNDR

func (o *SessionInfo502Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SessionInfo502Container) UnmarshalNDR

func (o *SessionInfo502Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SetFileSecurityRequest

type SetFileSecurityRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// ShareName: A pointer to a null-terminated UTF-16 string that specifies the share
	// name on which the file is found.
	ShareName string `idl:"name:ShareName;string;pointer:unique" json:"share_name"`
	// lpFileName: A pointer to a null-terminated UTF-16 string that specifies the name
	// of the file or directory whose security is being set.
	FileName string `idl:"name:lpFileName;string" json:"file_name"`
	// SecurityInformation: The type of security information being set, as specified in
	// [MS-DTYP] section 2.4.7.
	SecurityInformation uint32 `idl:"name:SecurityInformation" json:"security_information"`
	// SecurityDescriptor: A pointer to a PADT_SECURITY_DESCRIPTOR structure, which provides
	// the security descriptor to set.
	SecurityDescriptor *ADTSecurityDescriptor `idl:"name:SecurityDescriptor" json:"security_descriptor"`
}

SetFileSecurityRequest structure represents the NetrpSetFileSecurity operation request

func (*SetFileSecurityRequest) MarshalNDR

func (o *SetFileSecurityRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetFileSecurityRequest) UnmarshalNDR

func (o *SetFileSecurityRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SetFileSecurityResponse

type SetFileSecurityResponse struct {
	// Return: The NetrpSetFileSecurity return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

SetFileSecurityResponse structure represents the NetrpSetFileSecurity operation response

func (*SetFileSecurityResponse) MarshalNDR

func (o *SetFileSecurityResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetFileSecurityResponse) UnmarshalNDR

func (o *SetFileSecurityResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SetInfoRequest

type SetInfoRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. The value of the Level parameter
	// determines the contents of the ServerInfo parameter. This parameter MUST be one of
	// the values in the following table. The NetrServerSetInfo method does not support
	// a Level value of 103. If a Level value of 103 is specified, the server MUST return
	// ERROR_INVALID_LEVEL.
	//
	//	+-------+--------------------+
	//	|       |                    |
	//	| VALUE |      MEANING       |
	//	|       |                    |
	//	+-------+--------------------+
	//	+-------+--------------------+
	//	|   101 | LPSERVER_INFO_101  |
	//	+-------+--------------------+
	//	|   102 | LPSERVER_INFO_102  |
	//	+-------+--------------------+
	//	|   502 | LPSERVER_INFO_502  |
	//	+-------+--------------------+
	//	|   503 | LPSERVER_INFO_503  |
	//	+-------+--------------------+
	//	|   599 | LPSERVER_INFO_599  |
	//	+-------+--------------------+
	//	|  1005 | LPSERVER_INFO_1005 |
	//	+-------+--------------------+
	//	|  1107 | LPSERVER_INFO_1107 |
	//	+-------+--------------------+
	//	|  1010 | LPSERVER_INFO_1010 |
	//	+-------+--------------------+
	//	|  1016 | LPSERVER_INFO_1016 |
	//	+-------+--------------------+
	//	|  1017 | LPSERVER_INFO_1017 |
	//	+-------+--------------------+
	//	|  1018 | LPSERVER_INFO_1018 |
	//	+-------+--------------------+
	//	|  1501 | LPSERVER_INFO_1501 |
	//	+-------+--------------------+
	//	|  1502 | LPSERVER_INFO_1502 |
	//	+-------+--------------------+
	//	|  1503 | LPSERVER_INFO_1503 |
	//	+-------+--------------------+
	//	|  1506 | LPSERVER_INFO_1506 |
	//	+-------+--------------------+
	//	|  1510 | LPSERVER_INFO_1510 |
	//	+-------+--------------------+
	//	|  1511 | LPSERVER_INFO_1511 |
	//	+-------+--------------------+
	//	|  1512 | LPSERVER_INFO_1512 |
	//	+-------+--------------------+
	//	|  1513 | LPSERVER_INFO_1513 |
	//	+-------+--------------------+
	//	|  1514 | LPSERVER_INFO_1514 |
	//	+-------+--------------------+
	//	|  1515 | LPSERVER_INFO_1515 |
	//	+-------+--------------------+
	//	|  1516 | LPSERVER_INFO_1516 |
	//	+-------+--------------------+
	//	|  1518 | LPSERVER_INFO_1518 |
	//	+-------+--------------------+
	//	|  1523 | LPSERVER_INFO_1523 |
	//	+-------+--------------------+
	//	|  1528 | LPSERVER_INFO_1528 |
	//	+-------+--------------------+
	//	|  1529 | LPSERVER_INFO_1529 |
	//	+-------+--------------------+
	//	|  1530 | LPSERVER_INFO_1530 |
	//	+-------+--------------------+
	//	|  1533 | LPSERVER_INFO_1533 |
	//	+-------+--------------------+
	//	|  1534 | LPSERVER_INFO_1534 |
	//	+-------+--------------------+
	//	|  1535 | LPSERVER_INFO_1535 |
	//	+-------+--------------------+
	//	|  1536 | LPSERVER_INFO_1536 |
	//	+-------+--------------------+
	//	|  1538 | LPSERVER_INFO_1538 |
	//	+-------+--------------------+
	//	|  1539 | LPSERVER_INFO_1539 |
	//	+-------+--------------------+
	//	|  1540 | LPSERVER_INFO_1540 |
	//	+-------+--------------------+
	//	|  1541 | LPSERVER_INFO_1541 |
	//	+-------+--------------------+
	//	|  1542 | LPSERVER_INFO_1542 |
	//	+-------+--------------------+
	//	|  1543 | LPSERVER_INFO_1543 |
	//	+-------+--------------------+
	//	|  1544 | LPSERVER_INFO_1544 |
	//	+-------+--------------------+
	//	|  1545 | LPSERVER_INFO_1545 |
	//	+-------+--------------------+
	//	|  1546 | LPSERVER_INFO_1546 |
	//	+-------+--------------------+
	//	|  1547 | LPSERVER_INFO_1547 |
	//	+-------+--------------------+
	//	|  1548 | LPSERVER_INFO_1548 |
	//	+-------+--------------------+
	//	|  1549 | LPSERVER_INFO_1549 |
	//	+-------+--------------------+
	//	|  1550 | LPSERVER_INFO_1550 |
	//	+-------+--------------------+
	//	|  1552 | LPSERVER_INFO_1552 |
	//	+-------+--------------------+
	//	|  1553 | LPSERVER_INFO_1553 |
	//	+-------+--------------------+
	//	|  1554 | LPSERVER_INFO_1554 |
	//	+-------+--------------------+
	//	|  1555 | LPSERVER_INFO_1555 |
	//	+-------+--------------------+
	//	|  1556 | LPSERVER_INFO_1556 |
	//	+-------+--------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// ServerInfo: This is a structure of type LPSERVER_INFO, as specified in section 2.2.3.7.
	// The content of the ServerInfo parameter is determined by the Level parameter, as
	// the preceding table shows.
	ServerInfo *ServerInfo `idl:"name:ServerInfo;switch_is:Level" json:"server_info"`
	// ParmErr: A pointer to a value that receives the index of the first member of the
	// server information structure that caused an ERROR_INVALID_PARAMETER error code, if
	// it occurs.
	ParameterError uint32 `idl:"name:ParmErr;pointer:unique" json:"parameter_error"`
}

SetInfoRequest structure represents the NetrServerSetInfo operation request

func (*SetInfoRequest) MarshalNDR

func (o *SetInfoRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetInfoRequest) UnmarshalNDR

func (o *SetInfoRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SetInfoResponse

type SetInfoResponse struct {
	// ParmErr: A pointer to a value that receives the index of the first member of the
	// server information structure that caused an ERROR_INVALID_PARAMETER error code, if
	// it occurs.
	ParameterError uint32 `idl:"name:ParmErr;pointer:unique" json:"parameter_error"`
	// Return: The NetrServerSetInfo return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

SetInfoResponse structure represents the NetrServerSetInfo operation response

func (*SetInfoResponse) MarshalNDR

func (o *SetInfoResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetInfoResponse) UnmarshalNDR

func (o *SetInfoResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SetLocalVolumeStateRequest

type SetLocalVolumeStateRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Uid: Specifies the GUID of the DFS share. This GUID MUST be obtained by using the
	// NetrDfsGetInfo (Opnum 4) method, as specified in [MS-DFSNM] section 3.1.4.1.6.
	UID *dtyp.GUID `idl:"name:Uid" json:"uid"`
	// Prefix: A pointer to a null-terminated UTF-16 string that specifies the path to the
	// DFS share.
	Prefix string `idl:"name:Prefix;string" json:"prefix"`
	// State: A DWORD that specifies the new state for the DFS share. To set the share to
	// offline, the State parameter MUST be (0x80). The State parameter MUST be set to any
	// other value to take the share online.
	State uint32 `idl:"name:State" json:"state"`
}

SetLocalVolumeStateRequest structure represents the NetrDfsSetLocalVolumeState operation request

func (*SetLocalVolumeStateRequest) MarshalNDR

func (o *SetLocalVolumeStateRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetLocalVolumeStateRequest) UnmarshalNDR

func (o *SetLocalVolumeStateRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SetLocalVolumeStateResponse

type SetLocalVolumeStateResponse struct {
	// Return: The NetrDfsSetLocalVolumeState return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

SetLocalVolumeStateResponse structure represents the NetrDfsSetLocalVolumeState operation response

func (*SetLocalVolumeStateResponse) MarshalNDR

func (*SetLocalVolumeStateResponse) UnmarshalNDR

func (o *SetLocalVolumeStateResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareAddRequest

type ShareAddRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. This parameter MUST be one of
	// the following values.
	//
	//	+-------+-----------------------------------------+
	//	|       |                                         |
	//	| VALUE |                 MEANING                 |
	//	|       |                                         |
	//	+-------+-----------------------------------------+
	//	+-------+-----------------------------------------+
	//	|     2 | The buffer is of type SHARE_INFO_2.     |
	//	+-------+-----------------------------------------+
	//	|   502 | The buffer is of type SHARE_INFO_502_I. |
	//	+-------+-----------------------------------------+
	//	|   503 | The buffer is of type SHARE_INFO_503_I. |
	//	+-------+-----------------------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// InfoStruct: A pointer to the SHARE_INFO union. The contents of the InfoStruct parameter
	// depend on the value of the Level parameter. The client MUST set the STYPE_CLUSTER_FS,
	// STYPE_CLUSTER_SOFS, and STYPE_CLUSTER_DFS bits in the shi*_type field of the SHARE_INFO
	// union to zero; the server MUST ignore them on receipt.
	Info *ShareInfo `idl:"name:InfoStruct;switch_is:Level" json:"info"`
	// ParmErr: A pointer to a value that receives the index of the first member of the
	// share information structure that caused an ERROR_INVALID_PARAMETER error code, if
	// it occurs.
	ParameterError uint32 `idl:"name:ParmErr;pointer:unique" json:"parameter_error"`
}

ShareAddRequest structure represents the NetrShareAdd operation request

func (*ShareAddRequest) MarshalNDR

func (o *ShareAddRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareAddRequest) UnmarshalNDR

func (o *ShareAddRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareAddResponse

type ShareAddResponse struct {
	// ParmErr: A pointer to a value that receives the index of the first member of the
	// share information structure that caused an ERROR_INVALID_PARAMETER error code, if
	// it occurs.
	ParameterError uint32 `idl:"name:ParmErr;pointer:unique" json:"parameter_error"`
	// Return: The NetrShareAdd return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareAddResponse structure represents the NetrShareAdd operation response

func (*ShareAddResponse) MarshalNDR

func (o *ShareAddResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareAddResponse) UnmarshalNDR

func (o *ShareAddResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareCheckRequest

type ShareCheckRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Device: A pointer to a null-terminated UTF-16 string that specifies the name of the
	// device to check for shared access.
	Device string `idl:"name:Device;string" json:"device"`
}

ShareCheckRequest structure represents the NetrShareCheck operation request

func (*ShareCheckRequest) MarshalNDR

func (o *ShareCheckRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareCheckRequest) UnmarshalNDR

func (o *ShareCheckRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareCheckResponse

type ShareCheckResponse struct {
	// Type: A pointer to a DWORD that receives the type of the shared device. This parameter
	// is set only if the method returns successfully. On success, the server MUST set this
	// parameter as specified in section 2.2.2.4, except that STYPE_SPECIAL is not returned.
	Type uint32 `idl:"name:Type" json:"type"`
	// Return: The NetrShareCheck return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareCheckResponse structure represents the NetrShareCheck operation response

func (*ShareCheckResponse) MarshalNDR

func (o *ShareCheckResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareCheckResponse) UnmarshalNDR

func (o *ShareCheckResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareDeleteCommitRequest

type ShareDeleteCommitRequest struct {
	// ContextHandle: A handle returned by the first phase of a two-phase share delete.
	ContextHandle *ShareDeleteHandle `idl:"name:ContextHandle" json:"context_handle"`
}

ShareDeleteCommitRequest structure represents the NetrShareDelCommit operation request

func (*ShareDeleteCommitRequest) MarshalNDR

func (o *ShareDeleteCommitRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteCommitRequest) UnmarshalNDR

func (o *ShareDeleteCommitRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareDeleteCommitResponse

type ShareDeleteCommitResponse struct {
	// ContextHandle: A handle returned by the first phase of a two-phase share delete.
	ContextHandle *ShareDeleteHandle `idl:"name:ContextHandle" json:"context_handle"`
	// Return: The NetrShareDelCommit return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareDeleteCommitResponse structure represents the NetrShareDelCommit operation response

func (*ShareDeleteCommitResponse) MarshalNDR

func (o *ShareDeleteCommitResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteCommitResponse) UnmarshalNDR

func (o *ShareDeleteCommitResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareDeleteExRequest

type ShareDeleteExRequest struct {
	// ServerName: An SRVSVC_HANDLE pointer that identifies the server. The client MUST
	// map this structure to an RPC binding handle ([C706] sections 4.3.5 and 5.1.5.2).
	// The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. This parameter MUST be one of
	// the following values.
	//
	//	+-------+--------------------+
	//	|       |                    |
	//	| VALUE |      MEANING       |
	//	|       |                    |
	//	+-------+--------------------+
	//	+-------+--------------------+
	//	|   503 | LPSHARE_INFO_503_I |
	//	+-------+--------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// ShareInfo: This parameter is of type LPSHARE_INFO union, as specified in section
	// 2.2.3.6. Its contents are determined by the value of the Level parameter, as shown
	// in the preceding table. This parameter MUST NOT contain a null value.
	ShareInfo *ShareInfo `idl:"name:ShareInfo;switch_is:Level" json:"share_info"`
}

ShareDeleteExRequest structure represents the NetrShareDelEx operation request

func (*ShareDeleteExRequest) MarshalNDR

func (o *ShareDeleteExRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteExRequest) UnmarshalNDR

func (o *ShareDeleteExRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareDeleteExResponse

type ShareDeleteExResponse struct {
	// Return: The NetrShareDelEx return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareDeleteExResponse structure represents the NetrShareDelEx operation response

func (*ShareDeleteExResponse) MarshalNDR

func (o *ShareDeleteExResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteExResponse) UnmarshalNDR

func (o *ShareDeleteExResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareDeleteHandle

type ShareDeleteHandle dcetypes.ContextHandle

ShareDeleteHandle structure represents SHARE_DEL_HANDLE RPC structure.

func (*ShareDeleteHandle) ContextHandle

func (o *ShareDeleteHandle) ContextHandle() *dcetypes.ContextHandle

func (*ShareDeleteHandle) MarshalNDR

func (o *ShareDeleteHandle) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteHandle) UnmarshalNDR

func (o *ShareDeleteHandle) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareDeleteRequest

type ShareDeleteRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle ([C706] sections 4.3.5
	// and 5.1.5.2). If this parameter is NULL, the local computer is used.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// NetName: A pointer to a null-terminated UTF-16 string that specifies the name of
	// the share to delete.
	NetName string `idl:"name:NetName;string" json:"net_name"`
}

ShareDeleteRequest structure represents the NetrShareDel operation request

func (*ShareDeleteRequest) MarshalNDR

func (o *ShareDeleteRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteRequest) UnmarshalNDR

func (o *ShareDeleteRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareDeleteResponse

type ShareDeleteResponse struct {
	// Return: The NetrShareDel return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareDeleteResponse structure represents the NetrShareDel operation response

func (*ShareDeleteResponse) MarshalNDR

func (o *ShareDeleteResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteResponse) UnmarshalNDR

func (o *ShareDeleteResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareDeleteStartRequest

type ShareDeleteStartRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). If this parameter is NULL, the local computer is used.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// NetName: A pointer to a null-terminated UTF-16 string that specifies the name of
	// the share to delete.
	NetName string `idl:"name:NetName;string" json:"net_name"`
}

ShareDeleteStartRequest structure represents the NetrShareDelStart operation request

func (*ShareDeleteStartRequest) MarshalNDR

func (o *ShareDeleteStartRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteStartRequest) UnmarshalNDR

func (o *ShareDeleteStartRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareDeleteStartResponse

type ShareDeleteStartResponse struct {
	// ContextHandle: A handle for the second phase of the two-phase share delete, in the
	// form of a PSHARE_DEL_HANDLE (section 2.2.1.3) data type.
	ContextHandle *ShareDeleteHandle `idl:"name:ContextHandle" json:"context_handle"`
	// Return: The NetrShareDelStart return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareDeleteStartResponse structure represents the NetrShareDelStart operation response

func (*ShareDeleteStartResponse) MarshalNDR

func (o *ShareDeleteStartResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteStartResponse) UnmarshalNDR

func (o *ShareDeleteStartResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareDeleteStickyRequest

type ShareDeleteStickyRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle ([C706] sections 4.3.5
	// and 5.1.5.2). If this parameter is NULL, the local computer is used.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// NetName: A pointer to a null-terminated UTF-16 string that specifies the name of
	// the share to delete.
	NetName string `idl:"name:NetName;string" json:"net_name"`
}

ShareDeleteStickyRequest structure represents the NetrShareDelSticky operation request

func (*ShareDeleteStickyRequest) MarshalNDR

func (o *ShareDeleteStickyRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteStickyRequest) UnmarshalNDR

func (o *ShareDeleteStickyRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareDeleteStickyResponse

type ShareDeleteStickyResponse struct {
	// Return: The NetrShareDelSticky return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareDeleteStickyResponse structure represents the NetrShareDelSticky operation response

func (*ShareDeleteStickyResponse) MarshalNDR

func (o *ShareDeleteStickyResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareDeleteStickyResponse) UnmarshalNDR

func (o *ShareDeleteStickyResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareEnum

type ShareEnum struct {
	// Level:  Specifies the information level of the data. This parameter MUST have one
	// of the following values.
	//
	//	+-------+--------------------------+
	//	|       |                          |
	//	| VALUE |         MEANING          |
	//	|       |                          |
	//	+-------+--------------------------+
	//	+-------+--------------------------+
	//	|     0 | SHARE_INFO_0_CONTAINER   |
	//	+-------+--------------------------+
	//	|     1 | SHARE_INFO_1_CONTAINER   |
	//	+-------+--------------------------+
	//	|     2 | SHARE_INFO_2_CONTAINER   |
	//	+-------+--------------------------+
	//	|   501 | SHARE_INFO_501_CONTAINER |
	//	+-------+--------------------------+
	//	|   502 | SHARE_INFO_502_CONTAINER |
	//	+-------+--------------------------+
	//	|   503 | SHARE_INFO_503_CONTAINER |
	//	+-------+--------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// ShareInfo:  Contains a share information container whose type is specified by the
	// Level parameter as the preceding table shows. The enumerated share entries are returned
	// in this member.
	ShareInfo *ShareEnumUnion `idl:"name:ShareInfo;switch_is:Level" json:"share_info"`
}

ShareEnum structure represents SHARE_ENUM_STRUCT RPC structure.

The SHARE_ENUM_STRUCT structure specifies the information level that the client requests in the NetrShareEnum method and encapsulates the SHARE_ENUM_UNION union that receives the entries enumerated by the server.

func (*ShareEnum) MarshalNDR

func (o *ShareEnum) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnum) UnmarshalNDR

func (o *ShareEnum) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareEnumRequest

type ShareEnumRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). If this parameter is NULL, the local computer is used.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// InfoStruct: A pointer to a structure, in the format of a SHARE_ENUM_STRUCT (section
	// 2.2.4.38), as specified in section 2.2.4.38. The SHARE_ENUM_STRUCT structure has
	// a Level member that specifies the type of structure to return in the ShareInfo member.
	// The Level member MUST be one of the values specified in section 2.2.4.38.
	Info *ShareEnum `idl:"name:InfoStruct" json:"info"`
	// PreferedMaximumLength: Specifies the preferred maximum length, in bytes, of the returned
	// data. If the specified value is MAX_PREFERRED_LENGTH, the method MUST attempt to
	// return all entries.
	PreferredMaximumLength uint32 `idl:"name:PreferedMaximumLength" json:"preferred_maximum_length"`
	// ResumeHandle: A pointer to a value that contains a handle, which is used to continue
	// an existing share search in ShareList. The handle MUST be zero on the first call
	// and remain unchanged for subsequent calls. If the ResumeHandle parameter is NULL,
	// no resume handle MUST be stored. If this parameter is not NULL and the method returns
	// ERROR_MORE_DATA, this parameter receives a nonzero value that can be passed in subsequent
	// calls to this method to continue with the enumeration in ShareList.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
}

ShareEnumRequest structure represents the NetrShareEnum operation request

func (*ShareEnumRequest) MarshalNDR

func (o *ShareEnumRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnumRequest) UnmarshalNDR

func (o *ShareEnumRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareEnumResponse

type ShareEnumResponse struct {
	// InfoStruct: A pointer to a structure, in the format of a SHARE_ENUM_STRUCT (section
	// 2.2.4.38), as specified in section 2.2.4.38. The SHARE_ENUM_STRUCT structure has
	// a Level member that specifies the type of structure to return in the ShareInfo member.
	// The Level member MUST be one of the values specified in section 2.2.4.38.
	Info *ShareEnum `idl:"name:InfoStruct" json:"info"`
	// TotalEntries: The total number of entries that could have been enumerated if the
	// buffer had been big enough to hold all the entries.
	TotalEntries uint32 `idl:"name:TotalEntries" json:"total_entries"`
	// ResumeHandle: A pointer to a value that contains a handle, which is used to continue
	// an existing share search in ShareList. The handle MUST be zero on the first call
	// and remain unchanged for subsequent calls. If the ResumeHandle parameter is NULL,
	// no resume handle MUST be stored. If this parameter is not NULL and the method returns
	// ERROR_MORE_DATA, this parameter receives a nonzero value that can be passed in subsequent
	// calls to this method to continue with the enumeration in ShareList.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
	// Return: The NetrShareEnum return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareEnumResponse structure represents the NetrShareEnum operation response

func (*ShareEnumResponse) MarshalNDR

func (o *ShareEnumResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnumResponse) UnmarshalNDR

func (o *ShareEnumResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareEnumStickyRequest

type ShareEnumStickyRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). If this parameter is NULL, the local computer is used.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// InfoStruct: A pointer to a structure, in the format of a SHARE_ENUM_STRUCT (section
	// 2.2.4.38). The SHARE_ENUM_STRUCT structure has a Level member that specifies the
	// type of structure to return in the ShareInfo member. The Level member MUST be set
	// to one of the values specified in section 2.2.4.38 (excluding SHARE_INFO_501_CONTAINER).
	Info *ShareEnum `idl:"name:InfoStruct" json:"info"`
	// PreferedMaximumLength: Specifies the preferred maximum length, in bytes, of the returned
	// data. If the specified value is MAX_PREFERRED_LENGTH, the method MUST attempt to
	// return all entries.
	PreferredMaximumLength uint32 `idl:"name:PreferedMaximumLength" json:"preferred_maximum_length"`
	// ResumeHandle: A pointer to a value that contains a handle, which is used to continue
	// an existing connection search. The handle MUST be zero on the first call and remain
	// unchanged for subsequent calls. If the ResumeHandle parameter is NULL, a resume handle
	// MUST NOT be stored. If this parameter is not NULL and the method returns ERROR_MORE_DATA,
	// this parameter receives an implementation-specific nonzero value that can be passed
	// in subsequent calls to this method to continue with the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
}

ShareEnumStickyRequest structure represents the NetrShareEnumSticky operation request

func (*ShareEnumStickyRequest) MarshalNDR

func (o *ShareEnumStickyRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnumStickyRequest) UnmarshalNDR

func (o *ShareEnumStickyRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareEnumStickyResponse

type ShareEnumStickyResponse struct {
	// InfoStruct: A pointer to a structure, in the format of a SHARE_ENUM_STRUCT (section
	// 2.2.4.38). The SHARE_ENUM_STRUCT structure has a Level member that specifies the
	// type of structure to return in the ShareInfo member. The Level member MUST be set
	// to one of the values specified in section 2.2.4.38 (excluding SHARE_INFO_501_CONTAINER).
	Info *ShareEnum `idl:"name:InfoStruct" json:"info"`
	// TotalEntries: The total number of entries that could have been enumerated if the
	// buffer had been big enough to hold all the entries.
	TotalEntries uint32 `idl:"name:TotalEntries" json:"total_entries"`
	// ResumeHandle: A pointer to a value that contains a handle, which is used to continue
	// an existing connection search. The handle MUST be zero on the first call and remain
	// unchanged for subsequent calls. If the ResumeHandle parameter is NULL, a resume handle
	// MUST NOT be stored. If this parameter is not NULL and the method returns ERROR_MORE_DATA,
	// this parameter receives an implementation-specific nonzero value that can be passed
	// in subsequent calls to this method to continue with the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
	// Return: The NetrShareEnumSticky return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareEnumStickyResponse structure represents the NetrShareEnumSticky operation response

func (*ShareEnumStickyResponse) MarshalNDR

func (o *ShareEnumStickyResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnumStickyResponse) UnmarshalNDR

func (o *ShareEnumStickyResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareEnumUnion

type ShareEnumUnion struct {
	// Types that are assignable to Value
	//
	// *ShareEnumUnion_Level0
	// *ShareEnumUnion_Level1
	// *ShareEnumUnion_Level2
	// *ShareEnumUnion_Level501
	// *ShareEnumUnion_Level502
	// *ShareEnumUnion_Level503
	Value is_ShareEnumUnion `json:"value"`
}

ShareEnumUnion structure represents SHARE_ENUM_UNION RPC union.

The SHARE_ENUM_UNION union contains information about shares. It is used in the definition of the SHARE_ENUM_STRUCT structure.

func (*ShareEnumUnion) GetValue

func (o *ShareEnumUnion) GetValue() any

func (*ShareEnumUnion) MarshalUnionNDR

func (o *ShareEnumUnion) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*ShareEnumUnion) NDRSwitchValue

func (o *ShareEnumUnion) NDRSwitchValue(sw uint32) uint32

func (*ShareEnumUnion) UnmarshalUnionNDR

func (o *ShareEnumUnion) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type ShareEnumUnion_Level0

type ShareEnumUnion_Level0 struct {
	// Level0:  A pointer to a structure that contains information about shares, as specified
	// in section 2.2.4.32.
	Level0 *ShareInfo0Container `idl:"name:Level0" json:"level0"`
}

ShareEnumUnion_Level0 structure represents SHARE_ENUM_UNION RPC union arm.

It has following labels: 0

func (*ShareEnumUnion_Level0) MarshalNDR

func (o *ShareEnumUnion_Level0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnumUnion_Level0) UnmarshalNDR

func (o *ShareEnumUnion_Level0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareEnumUnion_Level1

type ShareEnumUnion_Level1 struct {
	// Level1:  A pointer to a structure that contains information about shares, as specified
	// in section 2.2.4.33.
	Level1 *ShareInfo1Container `idl:"name:Level1" json:"level1"`
}

ShareEnumUnion_Level1 structure represents SHARE_ENUM_UNION RPC union arm.

It has following labels: 1

func (*ShareEnumUnion_Level1) MarshalNDR

func (o *ShareEnumUnion_Level1) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnumUnion_Level1) UnmarshalNDR

func (o *ShareEnumUnion_Level1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareEnumUnion_Level2

type ShareEnumUnion_Level2 struct {
	// Level2:  A pointer to a structure that contains information about shares, as specified
	// in section 2.2.4.34.
	Level2 *ShareInfo2Container `idl:"name:Level2" json:"level2"`
}

ShareEnumUnion_Level2 structure represents SHARE_ENUM_UNION RPC union arm.

It has following labels: 2

func (*ShareEnumUnion_Level2) MarshalNDR

func (o *ShareEnumUnion_Level2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnumUnion_Level2) UnmarshalNDR

func (o *ShareEnumUnion_Level2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareEnumUnion_Level501

type ShareEnumUnion_Level501 struct {
	// Level501:  A pointer to a structure that contains information about shares, as specified
	// in section 2.2.4.35.
	Level501 *ShareInfo501Container `idl:"name:Level501" json:"level501"`
}

ShareEnumUnion_Level501 structure represents SHARE_ENUM_UNION RPC union arm.

It has following labels: 501

func (*ShareEnumUnion_Level501) MarshalNDR

func (o *ShareEnumUnion_Level501) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnumUnion_Level501) UnmarshalNDR

func (o *ShareEnumUnion_Level501) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareEnumUnion_Level502

type ShareEnumUnion_Level502 struct {
	// Level502:  A pointer to a structure that contains information about shares, as specified
	// in section 2.2.4.36.
	Level502 *ShareInfo502Container `idl:"name:Level502" json:"level502"`
}

ShareEnumUnion_Level502 structure represents SHARE_ENUM_UNION RPC union arm.

It has following labels: 502

func (*ShareEnumUnion_Level502) MarshalNDR

func (o *ShareEnumUnion_Level502) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnumUnion_Level502) UnmarshalNDR

func (o *ShareEnumUnion_Level502) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareEnumUnion_Level503

type ShareEnumUnion_Level503 struct {
	// Level503:  A pointer to a structure that contains information about shares, as specified
	// in section 2.2.4.37.
	Level503 *ShareInfo503Container `idl:"name:Level503" json:"level503"`
}

ShareEnumUnion_Level503 structure represents SHARE_ENUM_UNION RPC union arm.

It has following labels: 503

func (*ShareEnumUnion_Level503) MarshalNDR

func (o *ShareEnumUnion_Level503) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareEnumUnion_Level503) UnmarshalNDR

func (o *ShareEnumUnion_Level503) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareGetInfoRequest

type ShareGetInfoRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle ([C706] sections 4.3.5
	// and 5.1.5.2). If this parameter is NULL, the local computer is used.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// NetName: A pointer to a null-terminated UTF-16 string that specifies the name of
	// the share to return information for.
	NetName string `idl:"name:NetName;string" json:"net_name"`
	// Level: Specifies the information level of the data. This parameter MUST be one of
	// the following values.
	//
	//	+-------+--------------------+
	//	|       |                    |
	//	| VALUE |      MEANING       |
	//	|       |                    |
	//	+-------+--------------------+
	//	+-------+--------------------+
	//	|     0 | LPSHARE_INFO_0     |
	//	+-------+--------------------+
	//	|     1 | LPSHARE_INFO_1     |
	//	+-------+--------------------+
	//	|     2 | LPSHARE_INFO_2     |
	//	+-------+--------------------+
	//	|   501 | LPSHARE_INFO_501   |
	//	+-------+--------------------+
	//	|   502 | LPSHARE_INFO_502_I |
	//	+-------+--------------------+
	//	|   503 | LPSHARE_INFO_503_I |
	//	+-------+--------------------+
	//	|  1005 | LPSHARE_INFO_1005  |
	//	+-------+--------------------+
	Level uint32 `idl:"name:Level" json:"level"`
}

ShareGetInfoRequest structure represents the NetrShareGetInfo operation request

func (*ShareGetInfoRequest) MarshalNDR

func (o *ShareGetInfoRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareGetInfoRequest) UnmarshalNDR

func (o *ShareGetInfoRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareGetInfoResponse

type ShareGetInfoResponse struct {
	// InfoStruct: This parameter is of type LPSHARE_INFO union, as specified in section
	// 2.2.3.6. Its contents are determined by the value of the Level parameter, as shown
	// in the preceding table.
	Info *ShareInfo `idl:"name:InfoStruct;switch_is:Level" json:"info"`
	// Return: The NetrShareGetInfo return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareGetInfoResponse structure represents the NetrShareGetInfo operation response

func (*ShareGetInfoResponse) MarshalNDR

func (o *ShareGetInfoResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareGetInfoResponse) UnmarshalNDR

func (o *ShareGetInfoResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareInfo

type ShareInfo struct {
	// Types that are assignable to Value
	//
	// *ShareInfo_0
	// *ShareInfo_1
	// *ShareInfo_2
	// *ShareInfo_502
	// *ShareInfo_1004
	// *ShareInfo_1006
	// *ShareInfo_1501
	// *ShareInfo_DefaultShareInfo
	// *ShareInfo_1005
	// *ShareInfo_501
	// *ShareInfo_503
	Value is_ShareInfo `json:"value"`
}

ShareInfo structure represents SHARE_INFO RPC union.

The SHARE_INFO union contains information about a share.

func (*ShareInfo) GetValue

func (o *ShareInfo) GetValue() any

func (*ShareInfo) MarshalUnionNDR

func (o *ShareInfo) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*ShareInfo) NDRSwitchValue

func (o *ShareInfo) NDRSwitchValue(sw uint32) uint32

func (*ShareInfo) UnmarshalUnionNDR

func (o *ShareInfo) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type ShareInfo0

type ShareInfo0 struct {
	Shi0NetworkName string `idl:"name:shi0_netname;string" json:"shi0_network_name"`
}

ShareInfo0 structure represents SHARE_INFO_0 RPC structure.

The SHARE_INFO_0 structure contains the name of the shared resource. For a description of the fields in this structure, see the description for the SHARE_INFO_502_I (section 2.2.4.26) structure (shi0_xxx denotes the same information as shi502_xxx).

func (*ShareInfo0) MarshalNDR

func (o *ShareInfo0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo0) UnmarshalNDR

func (o *ShareInfo0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo0Container

type ShareInfo0Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SHARE_INFO_0 entries returned by the method.
	Buffer []*ShareInfo0 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ShareInfo0Container structure represents SHARE_INFO_0_CONTAINER RPC structure.

The SHARE_INFO_0_CONTAINER structure contains a value that indicates the number of entries that the NetrShareEnum method returns and a pointer to the buffer that contains the entries.

func (*ShareInfo0Container) MarshalNDR

func (o *ShareInfo0Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo0Container) UnmarshalNDR

func (o *ShareInfo0Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo1

type ShareInfo1 struct {
	Shi1NetworkName string `idl:"name:shi1_netname;string" json:"shi1_network_name"`
	Shi1Type        uint32 `idl:"name:shi1_type" json:"shi1_type"`
	Shi1Remark      string `idl:"name:shi1_remark;string" json:"shi1_remark"`
}

ShareInfo1 structure represents SHARE_INFO_1 RPC structure.

The SHARE_INFO_1 structure contains information about the shared resource, including the name and type of the resource and a comment associated with the resource. For a description of the fields in this structure, see the description for the SHARE_INFO_502_I (section 2.2.4.26) structure (shi1_xxx denotes the same information as shi502_xxx).

func (*ShareInfo1) MarshalNDR

func (o *ShareInfo1) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo1) UnmarshalNDR

func (o *ShareInfo1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo1004

type ShareInfo1004 struct {
	Shi1004Remark string `idl:"name:shi1004_remark;string" json:"shi1004_remark"`
}

ShareInfo1004 structure represents SHARE_INFO_1004 RPC structure.

The SHARE_INFO_1004 structure contains a comment that is associated with the shared resource. For a description of the fields in this structure, see the description for the SHARE_INFO_502_I (section 2.2.4.26) structure (shi1004_xxx denotes the same information as shi502_xxx).

func (*ShareInfo1004) MarshalNDR

func (o *ShareInfo1004) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo1004) UnmarshalNDR

func (o *ShareInfo1004) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo1005

type ShareInfo1005 struct {
	// shi1005_flags:   Specifies a DWORD bitmask value that MUST contain zero or more of
	// the following values. The bit locations that are named CSC_MASK in the following
	// table MUST contain a client-side caching state value as given in section 2.2.2.5.
	// The server MUST ignore SHI1005_FLAGS_DFS and SHI1005_FLAGS_DFS_ROOT as it processes
	// the NetrShareSetInfo method.
	//
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	|                                                      |                                                                                  |
	//	|                        VALUE                         |                                     MEANING                                      |
	//	|                                                      |                                                                                  |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_DFS 0x00000001                         | The specified share is present in a DFS tree structure.                          |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_DFS_ROOT 0x00000002                    | The specified share is present in a DFS tree structure.                          |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| CSC_MASK 0x00000030                                  | Provides a mask for one of the four possible client-side caching (CSC) (section  |
	//	|                                                      | 2.2.2.5) states.                                                                 |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS 0x00000100    | The specified share disallows exclusive file opens that deny reads to an open    |
	//	|                                                      | file.                                                                            |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_FORCE_SHARED_DELETE 0x00000200         | The specified share disallows clients from opening files on the share in an      |
	//	|                                                      | exclusive mode that prevents the file from being deleted until the client closes |
	//	|                                                      | the file.                                                                        |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING 0x00000400     | Clients are allowed to cache the namespace of the specified share.               |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM 0x00000800 | The server filters directory entries based on the access permissions of the      |
	//	|                                                      | client.<11>                                                                      |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_FORCE_LEVELII_OPLOCK 0x00001000        | The server does not issue exclusive caching rights on this share.<12>            |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_ENABLE_HASH 0x00002000                 | The share supports hash generation for branch cache retrieval of data. It is     |
	//	|                                                      | only valid if the server supports the branch cache capability and the branch     |
	//	|                                                      | cache component is installed.<13>                                                |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_ENABLE_CA 0x00004000                   | A highly available share.<14>                                                    |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_ENCRYPT_DATA 0x00008000                | A share on which remote file access is encrypted.<15>                            |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	//	| SHI1005_FLAGS_COMPRESS_DATA 0x00100000               | A share on which remote file access is requested to be compressed.               |
	//	+------------------------------------------------------+----------------------------------------------------------------------------------+
	Flags uint32 `idl:"name:shi1005_flags" json:"flags"`
}

ShareInfo1005 structure represents SHARE_INFO_1005 RPC structure.

The SHARE_INFO_1005 structure contains information about the shared resource.

func (*ShareInfo1005) MarshalNDR

func (o *ShareInfo1005) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo1005) UnmarshalNDR

func (o *ShareInfo1005) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo1006

type ShareInfo1006 struct {
	MaxUses uint32 `idl:"name:shi1006_max_uses" json:"max_uses"`
}

ShareInfo1006 structure represents SHARE_INFO_1006 RPC structure.

The SHARE_INFO_1006 structure specifies the maximum number of concurrent connections that the shared resource can accommodate. For a description of the fields in this structure, see the description for the SHARE_INFO_502_I (section 2.2.4.26) structure (shi1006_xxx denotes the same information as shi502_xxx).

func (*ShareInfo1006) MarshalNDR

func (o *ShareInfo1006) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo1006) UnmarshalNDR

func (o *ShareInfo1006) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo1501I

type ShareInfo1501I struct {
	SecurityDescriptor []byte `idl:"name:shi1501_security_descriptor;size_is:(shi1501_reserved)" json:"security_descriptor"`
	// contains filtered or unexported fields
}

ShareInfo1501I structure represents SHARE_INFO_1501_I RPC structure.

The SHARE_INFO_1501_I structure contains a security descriptor in self-relative format and a DWORD that contains its length.<16> For a description of the fields in this structure, see the description for the SHARE_INFO_502_I (section 2.2.4.26) structure (shi1501_xxx denotes the same information as shi502_xxx).

func (*ShareInfo1501I) MarshalNDR

func (o *ShareInfo1501I) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo1501I) UnmarshalNDR

func (o *ShareInfo1501I) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo1Container

type ShareInfo1Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SHARE_INFO_1 entries returned by the method.
	Buffer []*ShareInfo1 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ShareInfo1Container structure represents SHARE_INFO_1_CONTAINER RPC structure.

The SHARE_INFO_1_CONTAINER structure contains a value that indicates the number of entries that the NetrShareEnum method returns and a pointer to the buffer that contains the entries.

func (*ShareInfo1Container) MarshalNDR

func (o *ShareInfo1Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo1Container) UnmarshalNDR

func (o *ShareInfo1Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo2

type ShareInfo2 struct {
	NetworkName string `idl:"name:shi2_netname;string" json:"network_name"`
	Type        uint32 `idl:"name:shi2_type" json:"type"`
	Remark      string `idl:"name:shi2_remark;string" json:"remark"`
	Permissions uint32 `idl:"name:shi2_permissions" json:"permissions"`
	MaxUses     uint32 `idl:"name:shi2_max_uses" json:"max_uses"`
	CurrentUses uint32 `idl:"name:shi2_current_uses" json:"current_uses"`
	Path        string `idl:"name:shi2_path;string" json:"path"`
	Password    string `idl:"name:shi2_passwd;string" json:"password"`
}

ShareInfo2 structure represents SHARE_INFO_2 RPC structure.

The SHARE_INFO_2 structure contains information about the shared resource, including the name, type, and permissions of the resource, comments associated with the resource, the maximum number of concurrent connections, the number of current connections, the local path for the resource, and a password for the current connection. For a description of the fields in this structure, see the description for the SHARE_INFO_502_I (section 2.2.4.26) structure (shi2_xxx denotes the same information as shi502_xxx).

func (*ShareInfo2) MarshalNDR

func (o *ShareInfo2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo2) UnmarshalNDR

func (o *ShareInfo2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo2Container

type ShareInfo2Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SHARE_INFO_2 entries returned by the method.
	Buffer []*ShareInfo2 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ShareInfo2Container structure represents SHARE_INFO_2_CONTAINER RPC structure.

The SHARE_INFO_2_CONTAINER structure contains a value that indicates the number of entries that the NetrShareEnum method returns and a pointer to the buffer that contains the entries.

func (*ShareInfo2Container) MarshalNDR

func (o *ShareInfo2Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo2Container) UnmarshalNDR

func (o *ShareInfo2Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo501

type ShareInfo501 struct {
	NetworkName string `idl:"name:shi501_netname;string" json:"network_name"`
	Type        uint32 `idl:"name:shi501_type" json:"type"`
	Remark      string `idl:"name:shi501_remark;string" json:"remark"`
	Flags       uint32 `idl:"name:shi501_flags" json:"flags"`
}

ShareInfo501 structure represents SHARE_INFO_501 RPC structure.

The SHARE_INFO_501 structure contains information about the shared resource, including the name and type of the resource and a comment that is associated with the resource. For a description of the fields in this structure, see the description for the SHARE_INFO_502_I (section 2.2.4.26) structure (shi501_netname, shi501_type, and shi501_remark denote the same information as shi502_xxx in section 2.2.4.26, and shi501_flags denotes the same information as shi1005_flags in section 2.2.4.29).

func (*ShareInfo501) MarshalNDR

func (o *ShareInfo501) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo501) UnmarshalNDR

func (o *ShareInfo501) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo501Container

type ShareInfo501Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SHARE_INFO_501 entries returned by the method.
	Buffer []*ShareInfo501 `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ShareInfo501Container structure represents SHARE_INFO_501_CONTAINER RPC structure.

The SHARE_INFO_501_CONTAINER structure contains a value that indicates the number of entries that the NetrShareEnum method returns and a pointer to the buffer that contains the entries.

func (*ShareInfo501Container) MarshalNDR

func (o *ShareInfo501Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo501Container) UnmarshalNDR

func (o *ShareInfo501Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo502Container

type ShareInfo502Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SHARE_INFO_502_I entries returned by the method.
	Buffer []*ShareInfo502I `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ShareInfo502Container structure represents SHARE_INFO_502_CONTAINER RPC structure.

The SHARE_INFO_502_CONTAINER structure contains a value that indicates the number of entries that the NetrShareEnum method returns and a pointer to the buffer that contains the entries.

func (*ShareInfo502Container) MarshalNDR

func (o *ShareInfo502Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo502Container) UnmarshalNDR

func (o *ShareInfo502Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo502I

type ShareInfo502I struct {
	// shi502_netname:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// the name of a shared resource. The server MUST ignore this member when processing
	// the NetrShareSetInfo (section 3.1.4.11) method.
	NetworkName string `idl:"name:shi502_netname;string" json:"network_name"`
	// shi502_type:  Specifies a DWORD value that indicates the type of share. The server
	// MUST ignore this member when processing the NetrShareSetInfo method; otherwise, it
	// MUST be one of the values that are listed in section 2.2.2.4.
	Type uint32 `idl:"name:shi502_type" json:"type"`
	// shi502_remark:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// an optional comment about the shared resource.
	Remark string `idl:"name:shi502_remark;string" json:"remark"`
	// shi502_permissions:  This field is not used. The server MUST ignore the value of
	// this parameter on receipt.
	Permissions uint32 `idl:"name:shi502_permissions" json:"permissions"`
	// shi502_max_uses:  Specifies a DWORD value that indicates the maximum number of concurrent
	// connections that the shared resource can accommodate. If the value that is specified
	// by shi502_max_uses is 0xFFFFFFFF, the maximum number of connections MUST be unlimited.
	MaxUses uint32 `idl:"name:shi502_max_uses" json:"max_uses"`
	// shi502_current_uses:  Specifies a DWORD value that indicates the number of current
	// connections to the resource. The server MUST ignore this member on receipt.
	CurrentUses uint32 `idl:"name:shi502_current_uses" json:"current_uses"`
	// shi502_path:  A pointer to a null-terminated Unicode UTF-16 string that contains
	// the local path for the shared resource. For disks, shi502_path is the path that is
	// being shared. For print queues, shi502_path is the name of the print queue that is
	// being shared. For communication devices, shi502_path is the name of the communication
	// device that is being shared. For interprocess communications (IPC), shi502_path is
	// the name of the interprocess communication that is being shared. The server MUST
	// ignore this member when processing the NetrShareSetInfo method.
	Path string `idl:"name:shi502_path;string" json:"path"`
	// shi502_passwd:  This field is not used. The client MUST send a NULL (zero-length)
	// string and the server MUST ignore the value of this parameter on receipt.
	Password string `idl:"name:shi502_passwd;string" json:"password"`

	// shi502_security_descriptor:  Specifies the SECURITY_DESCRIPTOR, as described in [MS-DTYP]
	// section 2.4.6, that is associated with this share.
	SecurityDescriptor []byte `idl:"name:shi502_security_descriptor;size_is:(shi502_reserved)" json:"security_descriptor"`
	// contains filtered or unexported fields
}

ShareInfo502I structure represents SHARE_INFO_502_I RPC structure.

The SHARE_INFO_502_I structure contains information about the shared resource, including the name of the resource, type, and permissions, the number of connections, and other pertinent information.

func (*ShareInfo502I) MarshalNDR

func (o *ShareInfo502I) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo502I) UnmarshalNDR

func (o *ShareInfo502I) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo503Container

type ShareInfo503Container struct {
	// EntriesRead:  The number of entries returned by the method.
	EntriesRead uint32 `idl:"name:EntriesRead" json:"entries_read"`
	// Buffer:  A pointer to the SHARE_INFO_503_I entries returned by the method.
	Buffer []*ShareInfo503I `idl:"name:Buffer;size_is:(EntriesRead)" json:"buffer"`
}

ShareInfo503Container structure represents SHARE_INFO_503_CONTAINER RPC structure.

The SHARE_INFO_503_CONTAINER structure contains a value that indicates the number of entries the NetrShareEnum method returns and a pointer to the buffer that contains the entries.

func (*ShareInfo503Container) MarshalNDR

func (o *ShareInfo503Container) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo503Container) UnmarshalNDR

func (o *ShareInfo503Container) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo503I

type ShareInfo503I struct {
	// shi503_netname:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// the name of a shared resource. The server MUST ignore this member when processing
	// the NetrShareSetInfo (section 3.1.4.11) method.
	NetworkName string `idl:"name:shi503_netname;string" json:"network_name"`
	// shi503_type:  Specifies a DWORD value that indicates the type of share. The server
	// MUST ignore this member when processing the NetrShareSetInfo method. Otherwise, it
	// MUST be one of the values listed in section 2.2.2.4.
	Type uint32 `idl:"name:shi503_type" json:"type"`
	// shi503_remark:  A pointer to a null-terminated Unicode UTF-16 string that specifies
	// an optional comment about the shared resource.
	Remark string `idl:"name:shi503_remark;string" json:"remark"`
	// shi503_permissions:  This field is not used. The server MUST ignore the value of
	// this parameter on receipt.
	Permissions uint32 `idl:"name:shi503_permissions" json:"permissions"`
	// shi503_max_uses:  Specifies a DWORD value that indicates the maximum number of concurrent
	// connections that the shared resource can accommodate. If the value is 0xFFFFFFFF,
	// the maximum number of connections MUST be unlimited.
	MaxUses uint32 `idl:"name:shi503_max_uses" json:"max_uses"`
	// shi503_current_uses:  Specifies a DWORD value that indicates the number of current
	// connections to the resource. The server MUST ignore this member on receipt.
	CurrentUses uint32 `idl:"name:shi503_current_uses" json:"current_uses"`
	// shi503_path:  A pointer to a null-terminated Unicode UTF-16 string that contains
	// the local path for the shared resource. For disks, it is the path being shared. For
	// print queues, it is the name of the print queue being shared. The server MUST ignore
	// this member when processing the NetrShareSetInfo method.
	Path string `idl:"name:shi503_path;string" json:"path"`
	// shi503_passwd:  This field is not used. The client MUST send a NULL (zero-length)
	// string, and the server MUST ignore the value of this parameter on receipt.
	Password string `idl:"name:shi503_passwd;string" json:"password"`
	// shi503_servername:  A pointer to a string that specifies the DNS or NetBIOS name
	// of the server on which the shared resource resides. It SHOULD be either "*" or the
	// string matching one of the server names. Otherwise, the default server name will
	// be used in <shi503_netname, default server name> to locate a scoped share as specified
	// in section 2.2.4.102. A value of "*" indicates that there is no configured server
	// name.
	Servername string `idl:"name:shi503_servername;string" json:"servername"`

	// shi503_security_descriptor:  Specifies the SECURITY_DESCRIPTOR, as described in [MS-DTYP]
	// section 2.4.6, that is associated with this share.
	SecurityDescriptor []byte `idl:"name:shi503_security_descriptor;size_is:(shi503_reserved)" json:"security_descriptor"`
	// contains filtered or unexported fields
}

ShareInfo503I structure represents SHARE_INFO_503_I RPC structure.

The SHARE_INFO_503_I structure contains information about the shared resource, including the name of the resource, type, and permissions, the number of connections, and other pertinent information.

func (*ShareInfo503I) MarshalNDR

func (o *ShareInfo503I) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo503I) UnmarshalNDR

func (o *ShareInfo503I) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_0

type ShareInfo_0 struct {
	// ShareInfo0:  A pointer to a structure that contains information about a share, as
	// specified in section 2.2.4.22.
	ShareInfo0 *ShareInfo0 `idl:"name:ShareInfo0" json:"share_info0"`
}

ShareInfo_0 structure represents SHARE_INFO RPC union arm.

It has following labels: 0

func (*ShareInfo_0) MarshalNDR

func (o *ShareInfo_0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_0) UnmarshalNDR

func (o *ShareInfo_0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_1

type ShareInfo_1 struct {
	// ShareInfo1:  A pointer to a structure that contains information about a share, as
	// specified in section 2.2.4.23.
	ShareInfo1 *ShareInfo1 `idl:"name:ShareInfo1" json:"share_info1"`
}

ShareInfo_1 structure represents SHARE_INFO RPC union arm.

It has following labels: 1

func (*ShareInfo_1) MarshalNDR

func (o *ShareInfo_1) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_1) UnmarshalNDR

func (o *ShareInfo_1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_1004

type ShareInfo_1004 struct {
	// ShareInfo1004:  A pointer to a structure that contains information about a share,
	// as specified in section 2.2.4.28.
	ShareInfo1004 *ShareInfo1004 `idl:"name:ShareInfo1004" json:"share_info1004"`
}

ShareInfo_1004 structure represents SHARE_INFO RPC union arm.

It has following labels: 1004

func (*ShareInfo_1004) MarshalNDR

func (o *ShareInfo_1004) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_1004) UnmarshalNDR

func (o *ShareInfo_1004) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_1005

type ShareInfo_1005 struct {
	// ShareInfo1005:  A pointer to a structure that contains information about a share,
	// as specified in section 2.2.4.29.
	ShareInfo1005 *ShareInfo1005 `idl:"name:ShareInfo1005" json:"share_info1005"`
}

ShareInfo_1005 structure represents SHARE_INFO RPC union arm.

It has following labels: 1005

func (*ShareInfo_1005) MarshalNDR

func (o *ShareInfo_1005) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_1005) UnmarshalNDR

func (o *ShareInfo_1005) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_1006

type ShareInfo_1006 struct {
	// ShareInfo1006:  A pointer to a structure that contains information about a share,
	// as specified in section 2.2.4.30.
	ShareInfo1006 *ShareInfo1006 `idl:"name:ShareInfo1006" json:"share_info1006"`
}

ShareInfo_1006 structure represents SHARE_INFO RPC union arm.

It has following labels: 1006

func (*ShareInfo_1006) MarshalNDR

func (o *ShareInfo_1006) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_1006) UnmarshalNDR

func (o *ShareInfo_1006) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_1501

type ShareInfo_1501 struct {
	// ShareInfo1501:  A pointer to a structure that contains information about a share,
	// as specified in section 2.2.4.31.
	ShareInfo1501 *ShareInfo1501I `idl:"name:ShareInfo1501" json:"share_info1501"`
}

ShareInfo_1501 structure represents SHARE_INFO RPC union arm.

It has following labels: 1501

func (*ShareInfo_1501) MarshalNDR

func (o *ShareInfo_1501) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_1501) UnmarshalNDR

func (o *ShareInfo_1501) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_2

type ShareInfo_2 struct {
	// ShareInfo2:  A pointer to a structure that contains information about a share, as
	// specified in section 2.2.4.24.
	ShareInfo2 *ShareInfo2 `idl:"name:ShareInfo2" json:"share_info2"`
}

ShareInfo_2 structure represents SHARE_INFO RPC union arm.

It has following labels: 2

func (*ShareInfo_2) MarshalNDR

func (o *ShareInfo_2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_2) UnmarshalNDR

func (o *ShareInfo_2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_501

type ShareInfo_501 struct {
	// ShareInfo501:  A pointer to a structure that contains information about a share,
	// as specified in section 2.2.4.25.
	ShareInfo501 *ShareInfo501 `idl:"name:ShareInfo501" json:"share_info501"`
}

ShareInfo_501 structure represents SHARE_INFO RPC union arm.

It has following labels: 501

func (*ShareInfo_501) MarshalNDR

func (o *ShareInfo_501) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_501) UnmarshalNDR

func (o *ShareInfo_501) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_502

type ShareInfo_502 struct {
	// ShareInfo502:  A pointer to a structure that contains information about a share,
	// as specified in section 2.2.4.26.
	ShareInfo502 *ShareInfo502I `idl:"name:ShareInfo502" json:"share_info502"`
}

ShareInfo_502 structure represents SHARE_INFO RPC union arm.

It has following labels: 502

func (*ShareInfo_502) MarshalNDR

func (o *ShareInfo_502) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_502) UnmarshalNDR

func (o *ShareInfo_502) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_503

type ShareInfo_503 struct {
	// ShareInfo503:  A pointer to a structure that contains information about a share,
	// as specified in section 2.2.4.27.
	ShareInfo503 *ShareInfo503I `idl:"name:ShareInfo503" json:"share_info503"`
}

ShareInfo_503 structure represents SHARE_INFO RPC union arm.

It has following labels: 503

func (*ShareInfo_503) MarshalNDR

func (o *ShareInfo_503) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_503) UnmarshalNDR

func (o *ShareInfo_503) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareInfo_DefaultShareInfo

type ShareInfo_DefaultShareInfo struct {
}

ShareInfo_DefaultShareInfo structure represents SHARE_INFO RPC default union arm.

func (*ShareInfo_DefaultShareInfo) MarshalNDR

func (o *ShareInfo_DefaultShareInfo) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareInfo_DefaultShareInfo) UnmarshalNDR

func (o *ShareInfo_DefaultShareInfo) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ShareSetInfoRequest

type ShareSetInfoRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle ([C706] sections 4.3.5
	// and 5.1.5.2). If this parameter is NULL, the local computer is used.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// NetName: A pointer to a null-terminated UTF-16 string that specifies the name of
	// the share to set information for.
	NetName string `idl:"name:NetName;string" json:"net_name"`
	// Level: Specifies the information level of the data. This parameter MUST be one of
	// the following values.
	//
	//	+-------+---------------------+
	//	|       |                     |
	//	| VALUE |       MEANING       |
	//	|       |                     |
	//	+-------+---------------------+
	//	+-------+---------------------+
	//	|     1 | LPSHARE_INFO_1      |
	//	+-------+---------------------+
	//	|     2 | LPSHARE_INFO_2      |
	//	+-------+---------------------+
	//	|   502 | SHARE_INFO_502_I    |
	//	+-------+---------------------+
	//	|   503 | SHARE_INFO_503_I    |
	//	+-------+---------------------+
	//	|  1004 | LPSHARE_INFO_1004   |
	//	+-------+---------------------+
	//	|  1005 | LPSHARE_INFO_1005   |
	//	+-------+---------------------+
	//	|  1006 | LPSHARE_INFO_1006   |
	//	+-------+---------------------+
	//	|  1501 | LPSHARE_INFO_1501_I |
	//	+-------+---------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// ShareInfo: This parameter is of type LPSHARE_INFO union, as specified in section
	// 2.2.3.6. Its contents are determined by the value of the Level parameter, as shown
	// in the preceding table. This parameter MUST NOT contain a null value. If the Level
	// parameter is equal to 1, 2, 502, or 503, the client MUST set the STYPE_CLUSTER_FS,
	// STYPE_CLUSTER_SOFS, and STYPE_CLUSTER_DFS bits in the shi*_type field of the SHARE_INFO
	// union to zero; the server MUST ignore them on receipt.
	ShareInfo *ShareInfo `idl:"name:ShareInfo;switch_is:Level" json:"share_info"`
	// ParmErr: A pointer to a value that receives the index of the first member of the
	// share information structure that caused the ERROR_INVALID_PARAMETER error, if it
	// occurs.
	ParameterError uint32 `idl:"name:ParmErr;pointer:unique" json:"parameter_error"`
}

ShareSetInfoRequest structure represents the NetrShareSetInfo operation request

func (*ShareSetInfoRequest) MarshalNDR

func (o *ShareSetInfoRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareSetInfoRequest) UnmarshalNDR

func (o *ShareSetInfoRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShareSetInfoResponse

type ShareSetInfoResponse struct {
	// ParmErr: A pointer to a value that receives the index of the first member of the
	// share information structure that caused the ERROR_INVALID_PARAMETER error, if it
	// occurs.
	ParameterError uint32 `idl:"name:ParmErr;pointer:unique" json:"parameter_error"`
	// Return: The NetrShareSetInfo return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ShareSetInfoResponse structure represents the NetrShareSetInfo operation response

func (*ShareSetInfoResponse) MarshalNDR

func (o *ShareSetInfoResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShareSetInfoResponse) UnmarshalNDR

func (o *ShareSetInfoResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type SiteListInfo

type SiteListInfo struct {
	// cSites:  A count of site array entries returned by the method.
	SitesCount uint32 `idl:"name:cSites" json:"sites_count"`
	// Site:  An array of DFS_SITENAME_INFO entries that the method returns.
	Site []*SiteNameInfo `idl:"name:Site;size_is:(cSites)" json:"site"`
}

SiteListInfo structure represents DFS_SITELIST_INFO RPC structure.

The DFS_SITELIST_INFO structure contains a value that indicates the count of entries and an array of DFS_SITELIST_INFO entries that the NetrDfsManagerReportSiteInfo method returns.

func (*SiteListInfo) MarshalNDR

func (o *SiteListInfo) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SiteListInfo) NDRSizeInfo

func (o *SiteListInfo) NDRSizeInfo() []uint64

func (*SiteListInfo) UnmarshalNDR

func (o *SiteListInfo) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SiteNameInfo

type SiteNameInfo struct {
	// SiteFlags:  This member MUST be a combination of zero or more of the following values.
	//
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	|                             |                                                                                  |
	//	|            VALUE            |                                     MEANING                                      |
	//	|                             |                                                                                  |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| DFS_SITE_PRIMARY 0x00000001 | The site name was returned by the DsrGetSiteName method, as specified in         |
	//	|                             | [MS-NRPC] section 3.5.4.3.6.                                                     |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	SiteFlags uint32 `idl:"name:SiteFlags" json:"site_flags"`
	// SiteName:  A pointer to a null-terminated Unicode UTF-16 string that specifies a
	// unique site name.
	SiteName string `idl:"name:SiteName;string;pointer:unique" json:"site_name"`
}

SiteNameInfo structure represents DFS_SITENAME_INFO RPC structure.

The DFS_SITENAME_INFO structure specifies a site name.

func (*SiteNameInfo) MarshalNDR

func (o *SiteNameInfo) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SiteNameInfo) UnmarshalNDR

func (o *SiteNameInfo) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type SrvsvcClient

type SrvsvcClient interface {

	// The NetrConnectionEnum method lists all the treeconnects made to a shared resource
	// on the server or all treeconnects established from a particular computer.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	ConnectionEnum(context.Context, *ConnectionEnumRequest, ...dcerpc.CallOption) (*ConnectionEnumResponse, error)

	// The NetrFileEnum method MUST return information about some or all open files on a
	// server, depending on the parameters specified, or return an error code.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA         | The client request succeeded. More entries are available. Not all entries could  |
	//	|                                    | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall        | The client request succeeded. More entries are available. The buffer size that   |
	//	|                                    | is specified by PreferedMaximumLength was too small to fit even a single entry.  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	FileEnum(context.Context, *FileEnumRequest, ...dcerpc.CallOption) (*FileEnumResponse, error)

	// The NetrFileGetInfo method MUST retrieve information about a particular open server
	// resource or return an error code.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                        |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000002 ERROR_FILE_NOT_FOUND    | The system cannot find the file specified.               |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                    |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall        | The supplied buffer is too small.                        |
	//	+------------------------------------+----------------------------------------------------------+
	FileGetInfo(context.Context, *FileGetInfoRequest, ...dcerpc.CallOption) (*FileGetInfoResponse, error)

	// The server receives the NetrFileClose method in an RPC_REQUEST packet. In response,
	// the server MUST force an open resource instance (for example, file, device, or named
	// pipe) on the server to close. This message can be used when an error prevents closure
	// by any other means.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+--------------------------------+-----------------------------------------------------------------+
	//	|             RETURN             |                                                                 |
	//	|           VALUE/CODE           |                           DESCRIPTION                           |
	//	|                                |                                                                 |
	//	+--------------------------------+-----------------------------------------------------------------+
	//	+--------------------------------+-----------------------------------------------------------------+
	//	| 0x00000000 NERR_Success        | The client request succeeded.                                   |
	//	+--------------------------------+-----------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED | Access is denied.                                               |
	//	+--------------------------------+-----------------------------------------------------------------+
	//	| 0x0000090A NERR_FileIdNotFound | There is no open file with the specified identification number. |
	//	+--------------------------------+-----------------------------------------------------------------+
	//
	// This message can be used when an error prevents closure by any other means.
	//
	// The FileId parameter specifies the file identifier of the Open in FileList to close.
	// The value of the FileId parameter MUST correspond to a FileId that is returned in
	// a previous NetrFileEnum message response by the server. The server MUST look up Open
	// in the FileList where FileId matches Open.GlobalFileId. If no match is found, the
	// server MUST return NERR_FileIdNotFound. If a match is found, the server MUST close
	// the Open by invoking an underlying server event as specified in [MS-CIFS] section
	// 3.3.4.13 or [MS-SMB2] section 3.3.4.17, providing FileId as the input parameter.
	//
	// If either CIFS or SMB2 servers return STATUS_SUCCESS, the server MUST return NERR_Success.
	// Otherwise, the server MUST fail the call with a NERR_FileIdNotFound error code.
	//
	// The server SHOULD<49> enforce security measures to verify that the caller has the
	// required permissions to execute this routine. If the caller does not have the required
	// credentials, the server SHOULD<50> fail the call.
	FileClose(context.Context, *FileCloseRequest, ...dcerpc.CallOption) (*FileCloseResponse, error)

	// The NetrSessionEnum method MUST return information about sessions that are established
	// on a server or return an error code.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                                                      |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA         | The client request succeeded. More entries are available. Not all entries could  |
	//	|                                    | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000908 NERR_ClientNameNotFound | A session does not exist with the computer name.                                 |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000092F NERR_InvalidComputer    | The computer name is not valid.                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000008AD NERR_UserNotFound       | The user name could not be found.                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	SessionEnum(context.Context, *SessionEnumRequest, ...dcerpc.CallOption) (*SessionEnumResponse, error)

	// The NetrSessionDel method MUST end one or more network sessions between a server
	// and a client.
	//
	// Return Values: This method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. This method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                        |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                              |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000908 NERR_ClientNameNotFound | A session does not exist with the computer name.         |
	//	+------------------------------------+----------------------------------------------------------+
	SessionDelete(context.Context, *SessionDeleteRequest, ...dcerpc.CallOption) (*SessionDeleteResponse, error)

	// The NetrShareAdd method shares a server resource.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007B ERROR_INVALID_NAME      | The file name, directory name, or volume label syntax is incorrect.              |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. For        |
	//	|                                    | details, see the description that follows for the ParmErr parameter.             |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000846 NERR_DuplicateShare     | The share name is already in use on this server.                                 |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000844 NERR_UnknownDevDir      | The device or directory does not exist.                                          |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	ShareAdd(context.Context, *ShareAddRequest, ...dcerpc.CallOption) (*ShareAddResponse, error)

	// The NetrShareEnum method retrieves information about each shared resource on a server.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	|             RETURN             |                                                                                  |
	//	|           VALUE/CODE           |                                   DESCRIPTION                                    |
	//	|                                |                                                                                  |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success        | The client request succeeded.                                                    |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA     | The client request succeeded. More entries are available. Not all entries could  |
	//	|                                | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL | The system call level is not correct.                                            |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//
	// If ServerName does not match any Transport.ServerName in TransportList with the SVTI2_SCOPED_NAME
	// bit set in Transport.Flags, the server MUST reset ServerName as "*".
	ShareEnum(context.Context, *ShareEnumRequest, ...dcerpc.CallOption) (*ShareEnumResponse, error)

	// The NetrShareGetInfo method retrieves information about a particular shared resource
	// on the server from the ShareList.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                 |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall        | The supplied buffer is too small.                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000906 NERR_NetNameNotFound    | The share name does not exist.                                        |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//
	// If ServerName does not match any Transport.ServerName in TransportList with the SVTI2_SCOPED_NAME
	// bit set in Transport.Flags, the server MUST reset ServerName as "*".
	ShareGetInfo(context.Context, *ShareGetInfoRequest, ...dcerpc.CallOption) (*ShareGetInfoResponse, error)

	// The NetrShareSetInfo method sets the parameters of a shared resource in a ShareList.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	|                 RETURN                  |                                                                                  |
	//	|               VALUE/CODE                |                                   DESCRIPTION                                    |
	//	|                                         |                                                                                  |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success                 | The client request succeeded.                                                    |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED          | Access is denied.                                                                |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER      | The client request failed because the specified parameter is invalid. For        |
	//	|                                         | details, see the description that follows for the ParmErr parameter.             |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY      | Not enough storage is available to process this command.                         |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000906 NERR_NetNameNotFound         | The share name does not exist.                                                   |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000032 ERROR_NOT_SUPPORTED          | The server does not support branch cache. <62>                                   |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000424 ERROR_SERVICE_DOES_NOT_EXIST | The branch cache component does not exist as an installed service. <63>          |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL          | The system call level is not correct.                                            |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	ShareSetInfo(context.Context, *ShareSetInfoRequest, ...dcerpc.CallOption) (*ShareSetInfoResponse, error)

	// The NetrShareDel method deletes a share name from the ShareList, which disconnects
	// all connections to the shared resource. If the share is sticky, all information about
	// the share is also deleted from permanent storage.<67>
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000906 NERR_NetNameNotFound    | The share name does not exist.                                        |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//
	// If ServerName does not match any Transport.ServerName in TransportList with the SVTI2_SCOPED_NAME
	// bit set in Transport.Flags, the server MUST reset ServerName as "*".
	ShareDelete(context.Context, *ShareDeleteRequest, ...dcerpc.CallOption) (*ShareDeleteResponse, error)

	// The NetrShareDelSticky method marks the share as nonpersistent by clearing the IsPersistent
	// member of a Share in the ShareList.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	//
	// The primary use of this method is to delete a sticky share whose root directory has
	// been deleted (thus preventing actual re-creation of the share) but whose entry still
	// exists in permanent storage.<72> This method can also be used to remove the persistence
	// of a share without deleting the current incarnation of the share.
	//
	// If ServerName does not match any Transport.ServerName in TransportList with the SVTI2_SCOPED_NAME
	// bit set in Transport.Flags, the server MUST reset ServerName as "*".
	ShareDeleteSticky(context.Context, *ShareDeleteStickyRequest, ...dcerpc.CallOption) (*ShareDeleteStickyResponse, error)

	// The NetrShareCheck method checks whether a server is sharing a device.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000907 NERR_DeviceNotShared    | The device is not shared.                                |
	//	+------------------------------------+----------------------------------------------------------+
	ShareCheck(context.Context, *ShareCheckRequest, ...dcerpc.CallOption) (*ShareCheckResponse, error)

	// The NetrServerGetInfo method retrieves current configuration information for CIFS
	// and SMB Version 1.0 servers.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                 |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	GetInfo(context.Context, *GetInfoRequest, ...dcerpc.CallOption) (*GetInfoResponse, error)

	// The NetrServerSetInfo method sets server operating parameters for CIFS and SMB Version
	// 1.0 file servers; it can set them individually or collectively. The information is
	// stored in a way that allows it to remain in effect after the system is reinitialized.<81>
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. For        |
	//	|                                    | details see the description that follows for the ParmErr parameter.              |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	SetInfo(context.Context, *SetInfoRequest, ...dcerpc.CallOption) (*SetInfoResponse, error)

	// The NetrServerDiskEnum method retrieves a list of disk drives on a server. The method
	// returns an array of three-character strings (a drive letter, a colon, and a terminating
	// null character).
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+--------------------------------------------------------------------+
	//	|               RETURN               |                                                                    |
	//	|             VALUE/CODE             |                            DESCRIPTION                             |
	//	|                                    |                                                                    |
	//	+------------------------------------+--------------------------------------------------------------------+
	//	+------------------------------------+--------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                      |
	//	+------------------------------------+--------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                              |
	//	+------------------------------------+--------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.           |
	//	+------------------------------------+--------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | The caller does not have the permissions to perform the operation. |
	//	+------------------------------------+--------------------------------------------------------------------+
	DiskEnum(context.Context, *DiskEnumRequest, ...dcerpc.CallOption) (*DiskEnumResponse, error)

	// The NetrServerStatisticsGet method retrieves the operating statistics for a service.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	StatisticsGet(context.Context, *StatisticsGetRequest, ...dcerpc.CallOption) (*StatisticsGetResponse, error)

	// The NetrServerTransportAdd method binds the server to the transport protocol.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                        |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000034 ERROR_DUP_NAME          | A duplicate name exists on the network.                  |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                    |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                              |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//
	// The NetrServerTransportAdd message MUST be processed in the same way as the NetrServerTransportAddEx
	// message, except that it MUST allow only level 0 (that is, SERVER_TRANSPORT_INFO_0).
	// The NetrServerTransportAddEx message is specified in section 3.1.4.23.
	//
	// The server MAY<91> enforce security measures to verify that the caller has the required
	// permissions to execute this call. If the server enforces these security measures
	// and the caller does not have the required credentials, the server SHOULD<92> fail
	// the call.
	TransportAdd(context.Context, *TransportAddRequest, ...dcerpc.CallOption) (*TransportAddResponse, error)

	// The NetrServerTransportEnum method enumerates the information about transport protocols
	// that the server manages in TransportList.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA         | The client request succeeded. More entries are available. Not all entries could  |
	//	|                                    | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall        | The client request succeeded. More entries are available. The buffer size that   |
	//	|                                    | is specified by PreferedMaximumLength was too small to fit even a single entry.  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	TransportEnum(context.Context, *TransportEnumRequest, ...dcerpc.CallOption) (*TransportEnumResponse, error)

	// The NetrServerTransportDel method unbinds (or disconnects) the transport protocol
	// from the server. If this method succeeds, the server can no longer communicate with
	// clients by using the specified transport protocol (such as TCP or XNS).
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                        |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                              |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//
	// The NetrServerTransportDel message MUST be processed in the same way as the NetrServerTransportDelEx
	// message, except that it MUST allow only level 0 (that is, SERVER_TRANSPORT_INFO_0).
	// The processing for this message is specified in section 3.1.4.26.
	//
	// The server MAY<97> enforce security measures to verify that the caller has the required
	// permissions to execute this call. If the server enforces these security measures
	// and the caller does not have the required credentials, the server SHOULD<98> fail
	// the call.
	TransportDelete(context.Context, *TransportDeleteRequest, ...dcerpc.CallOption) (*TransportDeleteResponse, error)

	// The NetrRemoteTOD method returns the time of day information on a server.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	RemoteToD(context.Context, *RemoteToDRequest, ...dcerpc.CallOption) (*RemoteToDResponse, error)

	// The NetprPathType method checks a path name to determine its type.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	PathType(context.Context, *PathTypeRequest, ...dcerpc.CallOption) (*PathTypeResponse, error)

	// The NetprPathCanonicalize method converts a path name to the canonical format.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	//
	// If the Flags parameter is not equal to zero, the server SHOULD fail the call with
	// an implementation-specific error code.<110>
	PathCanonicalize(context.Context, *PathCanonicalizeRequest, ...dcerpc.CallOption) (*PathCanonicalizeResponse, error)

	// The NetprPathCompare method performs comparison of two paths.
	//
	// Return Values: Upon successful processing, the server MUST return 0 if both paths
	// are the same, –1 if the first is less than the second, and 1 otherwise. If the
	// method fails, it can return any specific error code value as specified in [MS-ERREF]
	// section 2.2.
	PathCompare(context.Context, *PathCompareRequest, ...dcerpc.CallOption) (*PathCompareResponse, error)

	// The NetprNameValidate method performs checks to ensure that the specified name is
	// a valid name for the specified type.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	//
	// If the Flags parameter is not equal to zero, the server SHOULD fail the call with
	// an implementation-specific error code.<119>
	NameValidate(context.Context, *NameValidateRequest, ...dcerpc.CallOption) (*NameValidateResponse, error)

	// The NetprNameCanonicalize method converts a name to the canonical format for the
	// specified type.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	NameCanonicalize(context.Context, *NameCanonicalizeRequest, ...dcerpc.CallOption) (*NameCanonicalizeResponse, error)

	// The NetprNameCompare method does comparison of two names of a specific name type.
	//
	// Return Values: MUST return 0 if both paths are the same. Other values indicate that
	// either the paths are different or an error occurred when the client request was processed.
	NameCompare(context.Context, *NameCompareRequest, ...dcerpc.CallOption) (*NameCompareResponse, error)

	// The NetrShareEnumSticky method retrieves information about each sticky shared resource
	// whose IsPersistent setting is set in a ShareList.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	|           RETURN            |                                                                                  |
	//	|         VALUE/CODE          |                                   DESCRIPTION                                    |
	//	|                             |                                                                                  |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success     | The client request succeeded.                                                    |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA  | The client request succeeded. More entries are available. Not all entries could  |
	//	|                             | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall | The client request succeeded. More entries are available. The buffer size that   |
	//	|                             | is specified by PreferedMaximumLength was too small to fit even a single entry.  |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	ShareEnumSticky(context.Context, *ShareEnumStickyRequest, ...dcerpc.CallOption) (*ShareEnumStickyResponse, error)

	// The NetrShareDelStart method performs the initial phase of a two-phase share delete.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	ShareDeleteStart(context.Context, *ShareDeleteStartRequest, ...dcerpc.CallOption) (*ShareDeleteStartResponse, error)

	// The NetrShareDelCommit method performs the final phase of a two-phase share delete.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success.
	// Otherwise, the method returns a nonzero error code unless the share being deleted
	// is IPC$. If the share being deleted is IPC$, the return value is not meaningful.
	// The method can take any specific error code value, as specified in [MS-ERREF] section
	// 2.2.
	//
	// The NetrShareDelCommit message is the continuation of the NetrShareDelStart message
	// and MUST cause the share to be actually deleted, which disconnects all connections
	// to the share, or MUST return an error code.
	//
	// This method can be used to delete the IPC$ share as well as other shares. When the
	// share is not IPC$, only a return value of 0 indicates success.
	//
	// This two-phase deletion MUST be used to delete IPC$, which is the share that is used
	// for named pipes. Deleting IPC$ results in the closing of the pipe on which the RPC
	// is being executed. Thus, the client never receives the response to the RPC. The two-phase
	// delete offers a positive response in phase 1 and then an expected error in phase
	// 2.
	//
	// ContextHandle MUST reference the share to be deleted in the NetrShareDelStart method.
	// If a share is not found, the server MUST fail the call with an ERROR_INVALID_PARAMETER
	// error code.
	//
	// If a share is found, but the IsMarkedForDeletion member of the Share is not set,
	// the server MUST fail the call with an ERROR_INVALID_PARAMETER error code.
	//
	// Otherwise, the server MUST delete the share by invoking the underlying server event,
	// as specified in [MS-CIFS] section 3.3.4.11and [MS-SMB2] section 3.3.4.15, providing
	// tuple <ServerName, NetName> as input parameters.
	//
	// The server does not enforce any security measures when processing this call.
	ShareDeleteCommit(context.Context, *ShareDeleteCommitRequest, ...dcerpc.CallOption) (*ShareDeleteCommitResponse, error)

	// The NetrpGetFileSecurity method returns to the caller a copy of the security descriptor
	// that protects a file or directory.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	GetFileSecurity(context.Context, *GetFileSecurityRequest, ...dcerpc.CallOption) (*GetFileSecurityResponse, error)

	// The NetrpSetFileSecurity method sets the security of a file or directory.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	SetFileSecurity(context.Context, *SetFileSecurityRequest, ...dcerpc.CallOption) (*SetFileSecurityResponse, error)

	// The NetrServerTransportAddEx method binds the specified server to the transport protocol.
	// This extended method allows the caller to specify information levels 1, 2, and 3
	// beyond what the NetrServerTransportAdd method allows.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                        |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000034 ERROR_DUP_NAME          | A duplicate name exists on the network.                  |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                    |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                              |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//
	// The server SHOULD<93> enforce security measures to verify that the caller has the
	// required permissions to execute this call. If the caller does not have the required
	// credentials, the server SHOULD<94> fail the call.
	//
	// The Level parameter determines the type of structure that the client has used to
	// specify information about the new transport. The value MUST be 0, 1, 2, or 3. If
	// the Level parameter is not equal to one of the valid values, the server MUST fail
	// the call with an ERROR_INVALID_LEVEL error code.
	//
	// If the Level parameter is 0, the Buffer parameter points to a SERVER_TRANSPORT_INFO_0
	// structure.
	//
	// If the Level parameter is 1, the Buffer parameter points to a SERVER_TRANSPORT_INFO_1
	// structure.
	//
	// If the Level parameter is 2, the Buffer parameter points to a SERVER_TRANSPORT_INFO_2
	// structure.
	//
	// If the Level parameter is 3, the Buffer parameter points to a SERVER_TRANSPORT_INFO_3
	// structure.
	TransportAddEx(context.Context, *TransportAddExRequest, ...dcerpc.CallOption) (*TransportAddExResponse, error)

	// The NetrDfsGetVersion method checks whether the server is a DFS server and if so,
	// returns the DFS version. An implementation MAY<127> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	GetVersion(context.Context, *GetVersionRequest, ...dcerpc.CallOption) (*GetVersionResponse, error)

	// The NetrDfsCreateLocalPartition method marks a share as being a DFS share. In addition,
	// if the RelationInfo parameter is non-NULL, it creates DFS links, as specified in
	// [MS-DFSC], for each of the entries in the RelationInfo parameter. An implementation
	// MAY<132> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	CreateLocalPartition(context.Context, *CreateLocalPartitionRequest, ...dcerpc.CallOption) (*CreateLocalPartitionResponse, error)

	// The NetrDfsDeleteLocalPartition method deletes a DFS share (Prefix) on the server.
	// An implementation MAY<138> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	DeleteLocalPartition(context.Context, *DeleteLocalPartitionRequest, ...dcerpc.CallOption) (*DeleteLocalPartitionResponse, error)

	// The NetrDfsSetLocalVolumeState method sets a local DFS share online or offline. An
	// implementation MAY<142> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	SetLocalVolumeState(context.Context, *SetLocalVolumeStateRequest, ...dcerpc.CallOption) (*SetLocalVolumeStateResponse, error)

	// The NetrDfsCreateExitPoint method creates a DFS link on the server. An implementation
	// MAY<146> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	CreateExitPoint(context.Context, *CreateExitPointRequest, ...dcerpc.CallOption) (*CreateExitPointResponse, error)

	// The NetrDfsDeleteExitPoint method deletes a DFS link on the server. An implementation
	// MAY<155> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	DeleteExitPoint(context.Context, *DeleteExitPointRequest, ...dcerpc.CallOption) (*DeleteExitPointResponse, error)

	// The NetrDfsModifyPrefix method changes the path that corresponds to a DFS link on
	// the server. An implementation MAY<151> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	ModifyPrefix(context.Context, *ModifyPrefixRequest, ...dcerpc.CallOption) (*ModifyPrefixResponse, error)

	// The NetrDfsFixLocalVolume method provides knowledge of a new DFS share on the server.
	// An implementation MAY<159> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	FixLocalVolume(context.Context, *FixLocalVolumeRequest, ...dcerpc.CallOption) (*FixLocalVolumeResponse, error)

	// The NetrDfsManagerReportSiteInfo method obtains a list of names that SHOULD<165>
	// correspond to the Active Directory sites covered by the specified server. An implementation
	// MAY<166> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	//
	// The ppSiteInfo parameter is a pointer to a LPDFS_SITELIST_INFO member, which in turn
	// points to the location of a DFS_SITELIST_INFO structure in which the information
	// is returned. That structure has a cSites member that the server SHOULD set to the
	// number of sites returned. The information about the sites themselves MUST be returned
	// in the Site member, which is an array of DFS_SITENAME_INFO structures. The sites
	// the server returns are implementation-specific.<167>
	//
	// The server MAY<168> enforce security measures to verify that the caller has the required
	// permissions to execute this call. If the server enforces these security measures
	// and the caller does not have the required credentials, the server SHOULD<169> fail
	// the call.
	ManagerReportSiteInfo(context.Context, *ManagerReportSiteInfoRequest, ...dcerpc.CallOption) (*ManagerReportSiteInfoResponse, error)

	// The server receives the NetrServerTransportDelEx method in an RPC_REQUEST packet.
	// In response, the server unbinds (or disconnects) the transport protocol from the
	// server. If this method succeeds, the server can no longer communicate with clients
	// by using the specified transport protocol (such as TCP or XNS). This extended method
	// allows level 1 beyond what the NetrServerTransportDel method allows.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.<99>
	//
	// The Level parameter determines the type of structure the client has used to specify
	// information about the new transport. Valid values are 0 and 1. If the Level parameter
	// is not equal to one of the valid values, the server MUST fail the call with an ERROR_INVALID_LEVEL
	// error code.
	//
	// If the Level parameter is 0, the Buffer parameter points to a SERVER_TRANSPORT_INFO_0
	// structure. If the Level parameter is 1, the Buffer parameter points to a SERVER_TRANSPORT_INFO_1
	// structure.
	TransportDeleteEx(context.Context, *TransportDeleteExRequest, ...dcerpc.CallOption) (*TransportDeleteExResponse, error)

	// The NetrServerAliasAdd method attaches an alias name to an existing server name and
	// inserts Alias objects into AliasList, through which the shared resource can be accessed
	// either with server name or alias name. An alias is used to identify which resources
	// are visible to an SMB client based on the server name presented in each tree connect
	// request.
	//
	// );
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000846 NERR_DuplicateShare     | The alias already exists.                                             |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                 |
	//	+------------------------------------+-----------------------------------------------------------------------+
	AliasAdd(context.Context, *AliasAddRequest, ...dcerpc.CallOption) (*AliasAddResponse, error)

	// The NetrServerAliasEnum method retrieves alias information for a server based on
	// specified alias name or server name.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid.            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall        | The allocated buffer is too small to hold single entry.                          |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA         | The client request succeeded. More entries are available. Not all entries could  |
	//	|                                    | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	AliasEnum(context.Context, *AliasEnumRequest, ...dcerpc.CallOption) (*AliasEnumResponse, error)

	// The NetrServerAliasDel method deletes an alias name from a server alias list based
	// on specified alias name.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000906 NERR_NetNameNotFound    | The alias does not exist.                                             |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                 |
	//	+------------------------------------+-----------------------------------------------------------------------+
	AliasDelete(context.Context, *AliasDeleteRequest, ...dcerpc.CallOption) (*AliasDeleteResponse, error)

	// The NetrShareDelEx method deletes a share from the ShareList, which disconnects all
	// connections to the shared resource. If the share is sticky, all information about
	// the share is also deleted from permanent storage.<176>
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000906 NERR_NetNameNotFound    | The share name does not exist.                                        |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                 |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//
	// The ShareInfo.shi503_netname parameter specifies the name of the share to delete
	// from the ShareList. This MUST be a nonempty null-terminated UTF-16 string; otherwise,
	// the server MUST fail the call with an ERROR_INVALID_PARAMETER error code.
	ShareDeleteEx(context.Context, *ShareDeleteExRequest, ...dcerpc.CallOption) (*ShareDeleteExResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error
}

srvsvc interface.

func NewSrvsvcClient

func NewSrvsvcClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (SrvsvcClient, error)

type SrvsvcServer

type SrvsvcServer interface {

	// The NetrConnectionEnum method lists all the treeconnects made to a shared resource
	// on the server or all treeconnects established from a particular computer.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	ConnectionEnum(context.Context, *ConnectionEnumRequest) (*ConnectionEnumResponse, error)

	// The NetrFileEnum method MUST return information about some or all open files on a
	// server, depending on the parameters specified, or return an error code.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA         | The client request succeeded. More entries are available. Not all entries could  |
	//	|                                    | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall        | The client request succeeded. More entries are available. The buffer size that   |
	//	|                                    | is specified by PreferedMaximumLength was too small to fit even a single entry.  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	FileEnum(context.Context, *FileEnumRequest) (*FileEnumResponse, error)

	// The NetrFileGetInfo method MUST retrieve information about a particular open server
	// resource or return an error code.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                        |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000002 ERROR_FILE_NOT_FOUND    | The system cannot find the file specified.               |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                    |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall        | The supplied buffer is too small.                        |
	//	+------------------------------------+----------------------------------------------------------+
	FileGetInfo(context.Context, *FileGetInfoRequest) (*FileGetInfoResponse, error)

	// The server receives the NetrFileClose method in an RPC_REQUEST packet. In response,
	// the server MUST force an open resource instance (for example, file, device, or named
	// pipe) on the server to close. This message can be used when an error prevents closure
	// by any other means.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+--------------------------------+-----------------------------------------------------------------+
	//	|             RETURN             |                                                                 |
	//	|           VALUE/CODE           |                           DESCRIPTION                           |
	//	|                                |                                                                 |
	//	+--------------------------------+-----------------------------------------------------------------+
	//	+--------------------------------+-----------------------------------------------------------------+
	//	| 0x00000000 NERR_Success        | The client request succeeded.                                   |
	//	+--------------------------------+-----------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED | Access is denied.                                               |
	//	+--------------------------------+-----------------------------------------------------------------+
	//	| 0x0000090A NERR_FileIdNotFound | There is no open file with the specified identification number. |
	//	+--------------------------------+-----------------------------------------------------------------+
	//
	// This message can be used when an error prevents closure by any other means.
	//
	// The FileId parameter specifies the file identifier of the Open in FileList to close.
	// The value of the FileId parameter MUST correspond to a FileId that is returned in
	// a previous NetrFileEnum message response by the server. The server MUST look up Open
	// in the FileList where FileId matches Open.GlobalFileId. If no match is found, the
	// server MUST return NERR_FileIdNotFound. If a match is found, the server MUST close
	// the Open by invoking an underlying server event as specified in [MS-CIFS] section
	// 3.3.4.13 or [MS-SMB2] section 3.3.4.17, providing FileId as the input parameter.
	//
	// If either CIFS or SMB2 servers return STATUS_SUCCESS, the server MUST return NERR_Success.
	// Otherwise, the server MUST fail the call with a NERR_FileIdNotFound error code.
	//
	// The server SHOULD<49> enforce security measures to verify that the caller has the
	// required permissions to execute this routine. If the caller does not have the required
	// credentials, the server SHOULD<50> fail the call.
	FileClose(context.Context, *FileCloseRequest) (*FileCloseResponse, error)

	// The NetrSessionEnum method MUST return information about sessions that are established
	// on a server or return an error code.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                                                      |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA         | The client request succeeded. More entries are available. Not all entries could  |
	//	|                                    | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000908 NERR_ClientNameNotFound | A session does not exist with the computer name.                                 |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000092F NERR_InvalidComputer    | The computer name is not valid.                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000008AD NERR_UserNotFound       | The user name could not be found.                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	SessionEnum(context.Context, *SessionEnumRequest) (*SessionEnumResponse, error)

	// The NetrSessionDel method MUST end one or more network sessions between a server
	// and a client.
	//
	// Return Values: This method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. This method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                        |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                              |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000908 NERR_ClientNameNotFound | A session does not exist with the computer name.         |
	//	+------------------------------------+----------------------------------------------------------+
	SessionDelete(context.Context, *SessionDeleteRequest) (*SessionDeleteResponse, error)

	// The NetrShareAdd method shares a server resource.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007B ERROR_INVALID_NAME      | The file name, directory name, or volume label syntax is incorrect.              |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. For        |
	//	|                                    | details, see the description that follows for the ParmErr parameter.             |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000846 NERR_DuplicateShare     | The share name is already in use on this server.                                 |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000844 NERR_UnknownDevDir      | The device or directory does not exist.                                          |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	ShareAdd(context.Context, *ShareAddRequest) (*ShareAddResponse, error)

	// The NetrShareEnum method retrieves information about each shared resource on a server.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	|             RETURN             |                                                                                  |
	//	|           VALUE/CODE           |                                   DESCRIPTION                                    |
	//	|                                |                                                                                  |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success        | The client request succeeded.                                                    |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA     | The client request succeeded. More entries are available. Not all entries could  |
	//	|                                | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL | The system call level is not correct.                                            |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//
	// If ServerName does not match any Transport.ServerName in TransportList with the SVTI2_SCOPED_NAME
	// bit set in Transport.Flags, the server MUST reset ServerName as "*".
	ShareEnum(context.Context, *ShareEnumRequest) (*ShareEnumResponse, error)

	// The NetrShareGetInfo method retrieves information about a particular shared resource
	// on the server from the ShareList.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                 |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall        | The supplied buffer is too small.                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000906 NERR_NetNameNotFound    | The share name does not exist.                                        |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//
	// If ServerName does not match any Transport.ServerName in TransportList with the SVTI2_SCOPED_NAME
	// bit set in Transport.Flags, the server MUST reset ServerName as "*".
	ShareGetInfo(context.Context, *ShareGetInfoRequest) (*ShareGetInfoResponse, error)

	// The NetrShareSetInfo method sets the parameters of a shared resource in a ShareList.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	|                 RETURN                  |                                                                                  |
	//	|               VALUE/CODE                |                                   DESCRIPTION                                    |
	//	|                                         |                                                                                  |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success                 | The client request succeeded.                                                    |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED          | Access is denied.                                                                |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER      | The client request failed because the specified parameter is invalid. For        |
	//	|                                         | details, see the description that follows for the ParmErr parameter.             |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY      | Not enough storage is available to process this command.                         |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000906 NERR_NetNameNotFound         | The share name does not exist.                                                   |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000032 ERROR_NOT_SUPPORTED          | The server does not support branch cache. <62>                                   |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000424 ERROR_SERVICE_DOES_NOT_EXIST | The branch cache component does not exist as an installed service. <63>          |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL          | The system call level is not correct.                                            |
	//	+-----------------------------------------+----------------------------------------------------------------------------------+
	ShareSetInfo(context.Context, *ShareSetInfoRequest) (*ShareSetInfoResponse, error)

	// The NetrShareDel method deletes a share name from the ShareList, which disconnects
	// all connections to the shared resource. If the share is sticky, all information about
	// the share is also deleted from permanent storage.<67>
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000906 NERR_NetNameNotFound    | The share name does not exist.                                        |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//
	// If ServerName does not match any Transport.ServerName in TransportList with the SVTI2_SCOPED_NAME
	// bit set in Transport.Flags, the server MUST reset ServerName as "*".
	ShareDelete(context.Context, *ShareDeleteRequest) (*ShareDeleteResponse, error)

	// The NetrShareDelSticky method marks the share as nonpersistent by clearing the IsPersistent
	// member of a Share in the ShareList.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	//
	// The primary use of this method is to delete a sticky share whose root directory has
	// been deleted (thus preventing actual re-creation of the share) but whose entry still
	// exists in permanent storage.<72> This method can also be used to remove the persistence
	// of a share without deleting the current incarnation of the share.
	//
	// If ServerName does not match any Transport.ServerName in TransportList with the SVTI2_SCOPED_NAME
	// bit set in Transport.Flags, the server MUST reset ServerName as "*".
	ShareDeleteSticky(context.Context, *ShareDeleteStickyRequest) (*ShareDeleteStickyResponse, error)

	// The NetrShareCheck method checks whether a server is sharing a device.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000907 NERR_DeviceNotShared    | The device is not shared.                                |
	//	+------------------------------------+----------------------------------------------------------+
	ShareCheck(context.Context, *ShareCheckRequest) (*ShareCheckResponse, error)

	// The NetrServerGetInfo method retrieves current configuration information for CIFS
	// and SMB Version 1.0 servers.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                 |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)

	// The NetrServerSetInfo method sets server operating parameters for CIFS and SMB Version
	// 1.0 file servers; it can set them individually or collectively. The information is
	// stored in a way that allows it to remain in effect after the system is reinitialized.<81>
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. For        |
	//	|                                    | details see the description that follows for the ParmErr parameter.              |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	SetInfo(context.Context, *SetInfoRequest) (*SetInfoResponse, error)

	// The NetrServerDiskEnum method retrieves a list of disk drives on a server. The method
	// returns an array of three-character strings (a drive letter, a colon, and a terminating
	// null character).
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+--------------------------------------------------------------------+
	//	|               RETURN               |                                                                    |
	//	|             VALUE/CODE             |                            DESCRIPTION                             |
	//	|                                    |                                                                    |
	//	+------------------------------------+--------------------------------------------------------------------+
	//	+------------------------------------+--------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                      |
	//	+------------------------------------+--------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                              |
	//	+------------------------------------+--------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.           |
	//	+------------------------------------+--------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | The caller does not have the permissions to perform the operation. |
	//	+------------------------------------+--------------------------------------------------------------------+
	DiskEnum(context.Context, *DiskEnumRequest) (*DiskEnumResponse, error)

	// The NetrServerStatisticsGet method retrieves the operating statistics for a service.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	StatisticsGet(context.Context, *StatisticsGetRequest) (*StatisticsGetResponse, error)

	// The NetrServerTransportAdd method binds the server to the transport protocol.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                        |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000034 ERROR_DUP_NAME          | A duplicate name exists on the network.                  |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                    |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                              |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//
	// The NetrServerTransportAdd message MUST be processed in the same way as the NetrServerTransportAddEx
	// message, except that it MUST allow only level 0 (that is, SERVER_TRANSPORT_INFO_0).
	// The NetrServerTransportAddEx message is specified in section 3.1.4.23.
	//
	// The server MAY<91> enforce security measures to verify that the caller has the required
	// permissions to execute this call. If the server enforces these security measures
	// and the caller does not have the required credentials, the server SHOULD<92> fail
	// the call.
	TransportAdd(context.Context, *TransportAddRequest) (*TransportAddResponse, error)

	// The NetrServerTransportEnum method enumerates the information about transport protocols
	// that the server manages in TransportList.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA         | The client request succeeded. More entries are available. Not all entries could  |
	//	|                                    | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall        | The client request succeeded. More entries are available. The buffer size that   |
	//	|                                    | is specified by PreferedMaximumLength was too small to fit even a single entry.  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	TransportEnum(context.Context, *TransportEnumRequest) (*TransportEnumResponse, error)

	// The NetrServerTransportDel method unbinds (or disconnects) the transport protocol
	// from the server. If this method succeeds, the server can no longer communicate with
	// clients by using the specified transport protocol (such as TCP or XNS).
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                        |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                              |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//
	// The NetrServerTransportDel message MUST be processed in the same way as the NetrServerTransportDelEx
	// message, except that it MUST allow only level 0 (that is, SERVER_TRANSPORT_INFO_0).
	// The processing for this message is specified in section 3.1.4.26.
	//
	// The server MAY<97> enforce security measures to verify that the caller has the required
	// permissions to execute this call. If the server enforces these security measures
	// and the caller does not have the required credentials, the server SHOULD<98> fail
	// the call.
	TransportDelete(context.Context, *TransportDeleteRequest) (*TransportDeleteResponse, error)

	// The NetrRemoteTOD method returns the time of day information on a server.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	RemoteToD(context.Context, *RemoteToDRequest) (*RemoteToDResponse, error)

	// The NetprPathType method checks a path name to determine its type.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	PathType(context.Context, *PathTypeRequest) (*PathTypeResponse, error)

	// The NetprPathCanonicalize method converts a path name to the canonical format.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	//
	// If the Flags parameter is not equal to zero, the server SHOULD fail the call with
	// an implementation-specific error code.<110>
	PathCanonicalize(context.Context, *PathCanonicalizeRequest) (*PathCanonicalizeResponse, error)

	// The NetprPathCompare method performs comparison of two paths.
	//
	// Return Values: Upon successful processing, the server MUST return 0 if both paths
	// are the same, –1 if the first is less than the second, and 1 otherwise. If the
	// method fails, it can return any specific error code value as specified in [MS-ERREF]
	// section 2.2.
	PathCompare(context.Context, *PathCompareRequest) (*PathCompareResponse, error)

	// The NetprNameValidate method performs checks to ensure that the specified name is
	// a valid name for the specified type.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	//
	// If the Flags parameter is not equal to zero, the server SHOULD fail the call with
	// an implementation-specific error code.<119>
	NameValidate(context.Context, *NameValidateRequest) (*NameValidateResponse, error)

	// The NetprNameCanonicalize method converts a name to the canonical format for the
	// specified type.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	NameCanonicalize(context.Context, *NameCanonicalizeRequest) (*NameCanonicalizeResponse, error)

	// The NetprNameCompare method does comparison of two names of a specific name type.
	//
	// Return Values: MUST return 0 if both paths are the same. Other values indicate that
	// either the paths are different or an error occurred when the client request was processed.
	NameCompare(context.Context, *NameCompareRequest) (*NameCompareResponse, error)

	// The NetrShareEnumSticky method retrieves information about each sticky shared resource
	// whose IsPersistent setting is set in a ShareList.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	|           RETURN            |                                                                                  |
	//	|         VALUE/CODE          |                                   DESCRIPTION                                    |
	//	|                             |                                                                                  |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success     | The client request succeeded.                                                    |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA  | The client request succeeded. More entries are available. Not all entries could  |
	//	|                             | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall | The client request succeeded. More entries are available. The buffer size that   |
	//	|                             | is specified by PreferedMaximumLength was too small to fit even a single entry.  |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	ShareEnumSticky(context.Context, *ShareEnumStickyRequest) (*ShareEnumStickyResponse, error)

	// The NetrShareDelStart method performs the initial phase of a two-phase share delete.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	ShareDeleteStart(context.Context, *ShareDeleteStartRequest) (*ShareDeleteStartResponse, error)

	// The NetrShareDelCommit method performs the final phase of a two-phase share delete.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success.
	// Otherwise, the method returns a nonzero error code unless the share being deleted
	// is IPC$. If the share being deleted is IPC$, the return value is not meaningful.
	// The method can take any specific error code value, as specified in [MS-ERREF] section
	// 2.2.
	//
	// The NetrShareDelCommit message is the continuation of the NetrShareDelStart message
	// and MUST cause the share to be actually deleted, which disconnects all connections
	// to the share, or MUST return an error code.
	//
	// This method can be used to delete the IPC$ share as well as other shares. When the
	// share is not IPC$, only a return value of 0 indicates success.
	//
	// This two-phase deletion MUST be used to delete IPC$, which is the share that is used
	// for named pipes. Deleting IPC$ results in the closing of the pipe on which the RPC
	// is being executed. Thus, the client never receives the response to the RPC. The two-phase
	// delete offers a positive response in phase 1 and then an expected error in phase
	// 2.
	//
	// ContextHandle MUST reference the share to be deleted in the NetrShareDelStart method.
	// If a share is not found, the server MUST fail the call with an ERROR_INVALID_PARAMETER
	// error code.
	//
	// If a share is found, but the IsMarkedForDeletion member of the Share is not set,
	// the server MUST fail the call with an ERROR_INVALID_PARAMETER error code.
	//
	// Otherwise, the server MUST delete the share by invoking the underlying server event,
	// as specified in [MS-CIFS] section 3.3.4.11and [MS-SMB2] section 3.3.4.15, providing
	// tuple <ServerName, NetName> as input parameters.
	//
	// The server does not enforce any security measures when processing this call.
	ShareDeleteCommit(context.Context, *ShareDeleteCommitRequest) (*ShareDeleteCommitResponse, error)

	// The NetrpGetFileSecurity method returns to the caller a copy of the security descriptor
	// that protects a file or directory.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	GetFileSecurity(context.Context, *GetFileSecurityRequest) (*GetFileSecurityResponse, error)

	// The NetrpSetFileSecurity method sets the security of a file or directory.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	SetFileSecurity(context.Context, *SetFileSecurityRequest) (*SetFileSecurityResponse, error)

	// The NetrServerTransportAddEx method binds the specified server to the transport protocol.
	// This extended method allows the caller to specify information levels 1, 2, and 3
	// beyond what the NetrServerTransportAdd method allows.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------+
	//	|               RETURN               |                                                          |
	//	|             VALUE/CODE             |                       DESCRIPTION                        |
	//	|                                    |                                                          |
	//	+------------------------------------+----------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                            |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                        |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000034 ERROR_DUP_NAME          | A duplicate name exists on the network.                  |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                    |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                              |
	//	+------------------------------------+----------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command. |
	//	+------------------------------------+----------------------------------------------------------+
	//
	// The server SHOULD<93> enforce security measures to verify that the caller has the
	// required permissions to execute this call. If the caller does not have the required
	// credentials, the server SHOULD<94> fail the call.
	//
	// The Level parameter determines the type of structure that the client has used to
	// specify information about the new transport. The value MUST be 0, 1, 2, or 3. If
	// the Level parameter is not equal to one of the valid values, the server MUST fail
	// the call with an ERROR_INVALID_LEVEL error code.
	//
	// If the Level parameter is 0, the Buffer parameter points to a SERVER_TRANSPORT_INFO_0
	// structure.
	//
	// If the Level parameter is 1, the Buffer parameter points to a SERVER_TRANSPORT_INFO_1
	// structure.
	//
	// If the Level parameter is 2, the Buffer parameter points to a SERVER_TRANSPORT_INFO_2
	// structure.
	//
	// If the Level parameter is 3, the Buffer parameter points to a SERVER_TRANSPORT_INFO_3
	// structure.
	TransportAddEx(context.Context, *TransportAddExRequest) (*TransportAddExResponse, error)

	// The NetrDfsGetVersion method checks whether the server is a DFS server and if so,
	// returns the DFS version. An implementation MAY<127> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)

	// The NetrDfsCreateLocalPartition method marks a share as being a DFS share. In addition,
	// if the RelationInfo parameter is non-NULL, it creates DFS links, as specified in
	// [MS-DFSC], for each of the entries in the RelationInfo parameter. An implementation
	// MAY<132> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	CreateLocalPartition(context.Context, *CreateLocalPartitionRequest) (*CreateLocalPartitionResponse, error)

	// The NetrDfsDeleteLocalPartition method deletes a DFS share (Prefix) on the server.
	// An implementation MAY<138> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	DeleteLocalPartition(context.Context, *DeleteLocalPartitionRequest) (*DeleteLocalPartitionResponse, error)

	// The NetrDfsSetLocalVolumeState method sets a local DFS share online or offline. An
	// implementation MAY<142> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	SetLocalVolumeState(context.Context, *SetLocalVolumeStateRequest) (*SetLocalVolumeStateResponse, error)

	// The NetrDfsCreateExitPoint method creates a DFS link on the server. An implementation
	// MAY<146> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	CreateExitPoint(context.Context, *CreateExitPointRequest) (*CreateExitPointResponse, error)

	// The NetrDfsDeleteExitPoint method deletes a DFS link on the server. An implementation
	// MAY<155> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	DeleteExitPoint(context.Context, *DeleteExitPointRequest) (*DeleteExitPointResponse, error)

	// The NetrDfsModifyPrefix method changes the path that corresponds to a DFS link on
	// the server. An implementation MAY<151> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	ModifyPrefix(context.Context, *ModifyPrefixRequest) (*ModifyPrefixResponse, error)

	// The NetrDfsFixLocalVolume method provides knowledge of a new DFS share on the server.
	// An implementation MAY<159> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	FixLocalVolume(context.Context, *FixLocalVolumeRequest) (*FixLocalVolumeResponse, error)

	// The NetrDfsManagerReportSiteInfo method obtains a list of names that SHOULD<165>
	// correspond to the Active Directory sites covered by the specified server. An implementation
	// MAY<166> choose to support this method.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.
	//
	// The ppSiteInfo parameter is a pointer to a LPDFS_SITELIST_INFO member, which in turn
	// points to the location of a DFS_SITELIST_INFO structure in which the information
	// is returned. That structure has a cSites member that the server SHOULD set to the
	// number of sites returned. The information about the sites themselves MUST be returned
	// in the Site member, which is an array of DFS_SITENAME_INFO structures. The sites
	// the server returns are implementation-specific.<167>
	//
	// The server MAY<168> enforce security measures to verify that the caller has the required
	// permissions to execute this call. If the server enforces these security measures
	// and the caller does not have the required credentials, the server SHOULD<169> fail
	// the call.
	ManagerReportSiteInfo(context.Context, *ManagerReportSiteInfoRequest) (*ManagerReportSiteInfoResponse, error)

	// The server receives the NetrServerTransportDelEx method in an RPC_REQUEST packet.
	// In response, the server unbinds (or disconnects) the transport protocol from the
	// server. If this method succeeds, the server can no longer communicate with clients
	// by using the specified transport protocol (such as TCP or XNS). This extended method
	// allows level 1 beyond what the NetrServerTransportDel method allows.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2.<99>
	//
	// The Level parameter determines the type of structure the client has used to specify
	// information about the new transport. Valid values are 0 and 1. If the Level parameter
	// is not equal to one of the valid values, the server MUST fail the call with an ERROR_INVALID_LEVEL
	// error code.
	//
	// If the Level parameter is 0, the Buffer parameter points to a SERVER_TRANSPORT_INFO_0
	// structure. If the Level parameter is 1, the Buffer parameter points to a SERVER_TRANSPORT_INFO_1
	// structure.
	TransportDeleteEx(context.Context, *TransportDeleteExRequest) (*TransportDeleteExResponse, error)

	// The NetrServerAliasAdd method attaches an alias name to an existing server name and
	// inserts Alias objects into AliasList, through which the shared resource can be accessed
	// either with server name or alias name. An alias is used to identify which resources
	// are visible to an SMB client based on the server name presented in each tree connect
	// request.
	//
	// );
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000846 NERR_DuplicateShare     | The alias already exists.                                             |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                 |
	//	+------------------------------------+-----------------------------------------------------------------------+
	AliasAdd(context.Context, *AliasAddRequest) (*AliasAddResponse, error)

	// The NetrServerAliasEnum method retrieves alias information for a server based on
	// specified alias name or server name.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|               RETURN               |                                                                                  |
	//	|             VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                                    |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                                |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid.            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.                         |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000084B NERR_BufTooSmall        | The allocated buffer is too small to hold single entry.                          |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                            |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x000000EA ERROR_MORE_DATA         | The client request succeeded. More entries are available. Not all entries could  |
	//	|                                    | be returned in the buffer size that is specified by PreferedMaximumLength.       |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	AliasEnum(context.Context, *AliasEnumRequest) (*AliasEnumResponse, error)

	// The NetrServerAliasDel method deletes an alias name from a server alias list based
	// on specified alias name.
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000906 NERR_NetNameNotFound    | The alias does not exist.                                             |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                 |
	//	+------------------------------------+-----------------------------------------------------------------------+
	AliasDelete(context.Context, *AliasDeleteRequest) (*AliasDeleteResponse, error)

	// The NetrShareDelEx method deletes a share from the ShareList, which disconnects all
	// connections to the shared resource. If the share is sticky, all information about
	// the share is also deleted from permanent storage.<176>
	//
	// Return Values: The method returns 0x00000000 (NERR_Success) to indicate success;
	// otherwise, it returns a nonzero error code. The method can take any specific error
	// code value, as specified in [MS-ERREF] section 2.2. The most common error codes are
	// listed in the following table.
	//
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	|               RETURN               |                                                                       |
	//	|             VALUE/CODE             |                              DESCRIPTION                              |
	//	|                                    |                                                                       |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000000 NERR_Success            | The client request succeeded.                                         |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                     |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The client request failed because the specified parameter is invalid. |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough storage is available to process this command.              |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x00000906 NERR_NetNameNotFound    | The share name does not exist.                                        |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//	| 0x0000007C ERROR_INVALID_LEVEL     | The system call level is not correct.                                 |
	//	+------------------------------------+-----------------------------------------------------------------------+
	//
	// The ShareInfo.shi503_netname parameter specifies the name of the share to delete
	// from the ShareList. This MUST be a nonempty null-terminated UTF-16 string; otherwise,
	// the server MUST fail the call with an ERROR_INVALID_PARAMETER error code.
	ShareDeleteEx(context.Context, *ShareDeleteExRequest) (*ShareDeleteExResponse, error)
}

srvsvc server interface.

type StatServer0

type StatServer0 struct {
	// sts0_start:  Specifies a DWORD value that indicates the time when statistics collection
	// started (or when the statistics were last cleared). The value MUST be stored as the
	// number of seconds that have elapsed since 00:00:00, January 1, 1970, Greenwich Mean
	// Time (GMT). To calculate the length of time that statistics have been collected,
	// subtract the value of this member from the present time.
	Start uint32 `idl:"name:sts0_start" json:"start"`
	// sts0_fopens:  Specifies a DWORD value that indicates the number of Opens that have
	// been created on a server. This MUST include the number of times named pipes are opened.
	FileOpens uint32 `idl:"name:sts0_fopens" json:"file_opens"`
	// sts0_devopens:  Specifies a DWORD value that indicates the number of times a server
	// device has been opened. This field MUST be set to 0.
	DeviceOpens uint32 `idl:"name:sts0_devopens" json:"device_opens"`
	// sts0_jobsqueued:  Specifies a DWORD value that indicates the number of server print
	// jobs that are spooled.
	JobsQueued uint32 `idl:"name:sts0_jobsqueued" json:"jobs_queued"`
	// sts0_sopens:  Specifies a DWORD value that indicates the number of sessions that
	// have been established to a server.
	SessOpens uint32 `idl:"name:sts0_sopens" json:"sess_opens"`
	// sts0_stimedout:  Specifies a DWORD value that indicates the number of times a session
	// is disconnected.
	SessTimeouts uint32 `idl:"name:sts0_stimedout" json:"sess_timeouts"`
	// sts0_serrorout:  Specifies a DWORD value that indicates the number of times a session
	// failed with an error. This field MUST be set to 0.
	SessErrors uint32 `idl:"name:sts0_serrorout" json:"sess_errors"`
	// sts0_pwerrors:  Specifies a DWORD value that indicates the number of password violations
	// that the server has detected.
	PasswordErrors uint32 `idl:"name:sts0_pwerrors" json:"password_errors"`
	// sts0_permerrors:  Specifies a DWORD value that indicates the number of access permission
	// errors that have occurred on the server.
	PermErrors uint32 `idl:"name:sts0_permerrors" json:"perm_errors"`
	// sts0_syserrors:  Specifies a DWORD value that indicates the number of system errors
	// that have occurred on the server. This field MUST be set to 0.
	SystemErrors uint32 `idl:"name:sts0_syserrors" json:"system_errors"`
	// sts0_bytessent_low:  Specifies the low-order DWORD of the number of server bytes
	// sent on the network.
	BytesSentLow uint32 `idl:"name:sts0_bytessent_low" json:"bytes_sent_low"`
	// sts0_bytessent_high:  Specifies the high-order DWORD of the number of server bytes
	// sent on the network.
	BytesSentHigh uint32 `idl:"name:sts0_bytessent_high" json:"bytes_sent_high"`
	// sts0_bytesrcvd_low:  Specifies the low-order DWORD of the number of server bytes
	// received from the network.
	BytesReceivedLow uint32 `idl:"name:sts0_bytesrcvd_low" json:"bytes_received_low"`
	// sts0_bytesrcvd_high:  Specifies the high-order DWORD of the number of server bytes
	// received from the network.
	BytesReceivedHigh uint32 `idl:"name:sts0_bytesrcvd_high" json:"bytes_received_high"`
	// sts0_avresponse:  Specifies a DWORD value that indicates the average server response
	// time, in milliseconds. This field MUST be set to 0.
	AvgResponse uint32 `idl:"name:sts0_avresponse" json:"avg_response"`
	// sts0_reqbufneed:  Specifies a DWORD value that indicates the number of times the
	// server required a request buffer but failed to allocate one. This field MUST be set
	// to 0.
	RequestBufferNeed uint32 `idl:"name:sts0_reqbufneed" json:"request_buffer_need"`
	// sts0_bigbufneed:  Specifies a DWORD value that indicates the number of times the
	// server required a large buffer but failed to allocate one. This field MUST be set
	// to 0.
	BigBufferNeed uint32 `idl:"name:sts0_bigbufneed" json:"big_buffer_need"`
}

StatServer0 structure represents STAT_SERVER_0 RPC structure.

The STAT_SERVER_0 structure contains statistical information about the server.

func (*StatServer0) MarshalNDR

func (o *StatServer0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*StatServer0) UnmarshalNDR

func (o *StatServer0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type StatisticsGetRequest

type StatisticsGetRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Service: A pointer to a null-terminated UTF-16 string. This parameter MUST be ignored
	// on receipt.
	Service string `idl:"name:Service;string;pointer:unique" json:"service"`
	// Level: Specifies the information level of the data. This MUST be set to 0.
	Level uint32 `idl:"name:Level" json:"level"`
	// Options: Reserved; MUST be 0.
	Options uint32 `idl:"name:Options" json:"options"`
}

StatisticsGetRequest structure represents the NetrServerStatisticsGet operation request

func (*StatisticsGetRequest) MarshalNDR

func (o *StatisticsGetRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*StatisticsGetRequest) UnmarshalNDR

func (o *StatisticsGetRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type StatisticsGetResponse

type StatisticsGetResponse struct {
	// InfoStruct: A pointer to the buffer that receives the data, as specified in section
	// 2.2.4.39. This pointer is in the format of STAT_SERVER_0.
	Info *StatServer0 `idl:"name:InfoStruct" json:"info"`
	// Return: The NetrServerStatisticsGet return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

StatisticsGetResponse structure represents the NetrServerStatisticsGet operation response

func (*StatisticsGetResponse) MarshalNDR

func (o *StatisticsGetResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*StatisticsGetResponse) UnmarshalNDR

func (o *StatisticsGetResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TimeOfDayInfo

type TimeOfDayInfo struct {
	// tod_elapsedt:  Specifies a DWORD value that contains the number of seconds since
	// 00:00:00, January 1, 1970, GMT.
	ElapsedTime uint32 `idl:"name:tod_elapsedt" json:"elapsed_time"`
	// tod_msecs:  Specifies a DWORD value that contains the number of milliseconds from
	// an arbitrary starting point (system reset).
	Msecs uint32 `idl:"name:tod_msecs" json:"msecs"`
	// tod_hours:  Specifies a DWORD value that contains the current hour. This value MUST
	// be in the range 0 through 23, inclusive.
	Hours uint32 `idl:"name:tod_hours" json:"hours"`
	// tod_mins:  Specifies a DWORD value that contains the current minute. This value MUST
	// be in the range 0 through 59, inclusive.
	Mins uint32 `idl:"name:tod_mins" json:"mins"`
	// tod_secs:  Specifies a DWORD value that contains the current second. This value MUST
	// be in the range 0 through 59, inclusive.
	Secs uint32 `idl:"name:tod_secs" json:"secs"`
	// tod_hunds:  Specifies a DWORD value that contains the current hundredth second (0.01
	// second). This value MUST be in the range 0 through 99, inclusive.
	Hunds uint32 `idl:"name:tod_hunds" json:"hunds"`
	// tod_timezone:  Specifies the time zone of the server. This value MUST be calculated,
	// in minutes, from Greenwich Mean Time (GMT). For time zones that are west of Greenwich,
	// the value MUST be positive; for time zones that are east of Greenwich, the value
	// MUST be negative. A value of –1 MUST indicate that the time zone is undefined.
	Timezone int32 `idl:"name:tod_timezone" json:"timezone"`
	// tod_tinterval:  Specifies a DWORD value that contains the time interval for each
	// tick of the clock. Each integral integer MUST represent one ten-thousandth second
	// (0.0001 second).
	Tinterval uint32 `idl:"name:tod_tinterval" json:"tinterval"`
	// tod_day:   Specifies a DWORD value that contains the day of the month. This value
	// MUST be in the range 1 through 31, inclusive.
	Day uint32 `idl:"name:tod_day" json:"day"`
	// tod_month:  Specifies a DWORD value that contains the month of the year. This value
	// MUST be in the range 1 through 12, inclusive.
	Month uint32 `idl:"name:tod_month" json:"month"`
	// tod_year:  Specifies a DWORD value that contains the year.
	Year uint32 `idl:"name:tod_year" json:"year"`
	// tod_weekday:  Specifies a DWORD value that contains the day of the week. This value
	// MUST be in the range 0 through 6, inclusive, where 0 is Sunday, 1 is Monday, and
	// so on.
	Weekday uint32 `idl:"name:tod_weekday" json:"weekday"`
}

TimeOfDayInfo structure represents TIME_OF_DAY_INFO RPC structure.

The TIME_OF_DAY_INFO structure contains information about the time of day from a remote server.

func (*TimeOfDayInfo) MarshalNDR

func (o *TimeOfDayInfo) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TimeOfDayInfo) UnmarshalNDR

func (o *TimeOfDayInfo) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type TransportAddExRequest

type TransportAddExRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. This parameter MUST be the following
	// value.
	//
	//	+-------+------------------------------------------------+
	//	|       |                                                |
	//	| VALUE |                    MEANING                     |
	//	|       |                                                |
	//	+-------+------------------------------------------------+
	//	+-------+------------------------------------------------+
	//	|     0 | The buffer is of type SERVER_TRANSPORT_INFO_0. |
	//	+-------+------------------------------------------------+
	//	|     1 | The buffer is of type SERVER_TRANSPORT_INFO_1. |
	//	+-------+------------------------------------------------+
	//	|     2 | The buffer is of type SERVER_TRANSPORT_INFO_2. |
	//	+-------+------------------------------------------------+
	//	|     3 | The buffer is of type SERVER_TRANSPORT_INFO_3. |
	//	+-------+------------------------------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// Buffer: A pointer to the TRANSPORT_INFO union that describes the data. The type of
	// data depends on the value of the Level parameter, as the preceding table shows.
	Buffer *TransportInfo `idl:"name:Buffer;switch_is:Level" json:"buffer"`
}

TransportAddExRequest structure represents the NetrServerTransportAddEx operation request

func (*TransportAddExRequest) MarshalNDR

func (o *TransportAddExRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportAddExRequest) UnmarshalNDR

func (o *TransportAddExRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TransportAddExResponse

type TransportAddExResponse struct {
	// Return: The NetrServerTransportAddEx return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

TransportAddExResponse structure represents the NetrServerTransportAddEx operation response

func (*TransportAddExResponse) MarshalNDR

func (o *TransportAddExResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportAddExResponse) UnmarshalNDR

func (o *TransportAddExResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TransportAddRequest

type TransportAddRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. This parameter MUST be zero.
	Level uint32 `idl:"name:Level" json:"level"`
	// Buffer: A pointer to the SERVER_TRANSPORT_INFO_0 structure that describes the data.
	Buffer *ServerTransportInfo0 `idl:"name:Buffer" json:"buffer"`
}

TransportAddRequest structure represents the NetrServerTransportAdd operation request

func (*TransportAddRequest) MarshalNDR

func (o *TransportAddRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportAddRequest) UnmarshalNDR

func (o *TransportAddRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TransportAddResponse

type TransportAddResponse struct {
	// Return: The NetrServerTransportAdd return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

TransportAddResponse structure represents the NetrServerTransportAdd operation response

func (*TransportAddResponse) MarshalNDR

func (o *TransportAddResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportAddResponse) UnmarshalNDR

func (o *TransportAddResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TransportDeleteExRequest

type TransportDeleteExRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. It MUST be one of the following
	// values.
	//
	//	+-------+------------------------------------------------------+
	//	|       |                                                      |
	//	| VALUE |                       MEANING                        |
	//	|       |                                                      |
	//	+-------+------------------------------------------------------+
	//	+-------+------------------------------------------------------+
	//	|     0 | The buffer is of type SERVER_XPORT_INFO_0_CONTAINER. |
	//	+-------+------------------------------------------------------+
	//	|     1 | The buffer is of type SERVER_XPORT_INFO_1_CONTAINER. |
	//	+-------+------------------------------------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// Buffer: A pointer to the TRANSPORT_INFO union that contains information about the
	// transport. The value of the Level parameter determines the type of the contents of
	// the Buffer parameter, as the preceding table shows.
	Buffer *TransportInfo `idl:"name:Buffer;switch_is:Level" json:"buffer"`
}

TransportDeleteExRequest structure represents the NetrServerTransportDelEx operation request

func (*TransportDeleteExRequest) MarshalNDR

func (o *TransportDeleteExRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportDeleteExRequest) UnmarshalNDR

func (o *TransportDeleteExRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TransportDeleteExResponse

type TransportDeleteExResponse struct {
	// Return: The NetrServerTransportDelEx return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

TransportDeleteExResponse structure represents the NetrServerTransportDelEx operation response

func (*TransportDeleteExResponse) MarshalNDR

func (o *TransportDeleteExResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportDeleteExResponse) UnmarshalNDR

func (o *TransportDeleteExResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TransportDeleteRequest

type TransportDeleteRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// Level: Specifies the information level of the data. This SHOULD be zero and MUST
	// be ignored on receipt.
	//
	//	+-------+------------------------------------------------+
	//	|       |                                                |
	//	| VALUE |                    MEANING                     |
	//	|       |                                                |
	//	+-------+------------------------------------------------+
	//	+-------+------------------------------------------------+
	//	|     0 | The buffer is of type SERVER_TRANSPORT_INFO_0. |
	//	+-------+------------------------------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
	// Buffer: A pointer to the SERVER_TRANSPORT_INFO_0 structure that contains information
	// about the transport.
	Buffer *ServerTransportInfo0 `idl:"name:Buffer" json:"buffer"`
}

TransportDeleteRequest structure represents the NetrServerTransportDel operation request

func (*TransportDeleteRequest) MarshalNDR

func (o *TransportDeleteRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportDeleteRequest) UnmarshalNDR

func (o *TransportDeleteRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TransportDeleteResponse

type TransportDeleteResponse struct {
	// Return: The NetrServerTransportDel return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

TransportDeleteResponse structure represents the NetrServerTransportDel operation response

func (*TransportDeleteResponse) MarshalNDR

func (o *TransportDeleteResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportDeleteResponse) UnmarshalNDR

func (o *TransportDeleteResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TransportEnumRequest

type TransportEnumRequest struct {
	// ServerName: An SRVSVC_HANDLE (section 2.2.1.1) pointer that identifies the server.
	// The client MUST map this structure to an RPC binding handle (see [C706] sections
	// 4.3.5 and 5.1.5.2). The server MUST ignore this parameter.
	ServerName string `idl:"name:ServerName;string;pointer:unique" json:"server_name"`
	// InfoStruct: A pointer to a structure, in the format of a SERVER_XPORT_ENUM_STRUCT
	// structure that receives the data. The SERVER_XPORT_ENUM_STRUCT structure has a Level
	// member that specifies the type of the structure to return in the XportInfo member.
	// The Level member MUST be set to one of the values in section 2.2.4.101 (excluding
	// SERVER_XPORT_INFO_3_CONTAINER).
	Info *ServerXportEnum `idl:"name:InfoStruct" json:"info"`
	// PreferedMaximumLength: Specifies the preferred maximum length, in bytes, of returned
	// data. If the value that is specified is MAX_PREFERRED_LENGTH (section 2.2.2.2), the
	// method MUST attempt to return all entries.
	PreferredMaximumLength uint32 `idl:"name:PreferedMaximumLength" json:"preferred_maximum_length"`
	// ResumeHandle: A pointer to a value that contains a handle that is used to continue
	// an existing connection search. The handle MUST be zero on the first call and remain
	// unchanged for subsequent calls. If the ResumeHandle parameter is NULL, no resume
	// handle MUST be stored. If this parameter is not NULL and the method returns ERROR_MORE_DATA,
	// this parameter receives an implementation-specific nonzero value that can be passed
	// in subsequent calls to this method to continue with the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
}

TransportEnumRequest structure represents the NetrServerTransportEnum operation request

func (*TransportEnumRequest) MarshalNDR

func (o *TransportEnumRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportEnumRequest) UnmarshalNDR

func (o *TransportEnumRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TransportEnumResponse

type TransportEnumResponse struct {
	// InfoStruct: A pointer to a structure, in the format of a SERVER_XPORT_ENUM_STRUCT
	// structure that receives the data. The SERVER_XPORT_ENUM_STRUCT structure has a Level
	// member that specifies the type of the structure to return in the XportInfo member.
	// The Level member MUST be set to one of the values in section 2.2.4.101 (excluding
	// SERVER_XPORT_INFO_3_CONTAINER).
	Info *ServerXportEnum `idl:"name:InfoStruct" json:"info"`
	// TotalEntries: The total number of entries that can be enumerated if the buffer is
	// large enough to hold all the entries.
	TotalEntries uint32 `idl:"name:TotalEntries" json:"total_entries"`
	// ResumeHandle: A pointer to a value that contains a handle that is used to continue
	// an existing connection search. The handle MUST be zero on the first call and remain
	// unchanged for subsequent calls. If the ResumeHandle parameter is NULL, no resume
	// handle MUST be stored. If this parameter is not NULL and the method returns ERROR_MORE_DATA,
	// this parameter receives an implementation-specific nonzero value that can be passed
	// in subsequent calls to this method to continue with the enumeration.
	Resume uint32 `idl:"name:ResumeHandle;pointer:unique" json:"resume"`
	// Return: The NetrServerTransportEnum return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

TransportEnumResponse structure represents the NetrServerTransportEnum operation response

func (*TransportEnumResponse) MarshalNDR

func (o *TransportEnumResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportEnumResponse) UnmarshalNDR

func (o *TransportEnumResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type TransportInfo

type TransportInfo struct {
	// Types that are assignable to Value
	//
	// *TransportInfo_Transport0
	// *TransportInfo_Transport1
	// *TransportInfo_Transport2
	// *TransportInfo_Transport3
	Value is_TransportInfo `json:"value"`
}

TransportInfo structure represents TRANSPORT_INFO RPC union.

The TRANSPORT_INFO union contains information about a transport over which a file server is operational.

func (*TransportInfo) GetValue

func (o *TransportInfo) GetValue() any

func (*TransportInfo) MarshalUnionNDR

func (o *TransportInfo) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*TransportInfo) NDRSwitchValue

func (o *TransportInfo) NDRSwitchValue(sw uint32) uint32

func (*TransportInfo) UnmarshalUnionNDR

func (o *TransportInfo) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

type TransportInfo_Transport0

type TransportInfo_Transport0 struct {
	// Transport0:  A pointer to a structure containing information about a file server
	// transport, as specified in section 2.2.4.93.
	Transport0 *ServerTransportInfo0 `idl:"name:Transport0" json:"transport0"`
}

TransportInfo_Transport0 structure represents TRANSPORT_INFO RPC union arm.

It has following labels: 0

func (*TransportInfo_Transport0) MarshalNDR

func (o *TransportInfo_Transport0) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportInfo_Transport0) UnmarshalNDR

func (o *TransportInfo_Transport0) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type TransportInfo_Transport1

type TransportInfo_Transport1 struct {
	// Transport1:  A pointer to a structure containing information about a file server
	// transport, as specified in section 2.2.4.94.
	Transport1 *ServerTransportInfo1 `idl:"name:Transport1" json:"transport1"`
}

TransportInfo_Transport1 structure represents TRANSPORT_INFO RPC union arm.

It has following labels: 1

func (*TransportInfo_Transport1) MarshalNDR

func (o *TransportInfo_Transport1) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportInfo_Transport1) UnmarshalNDR

func (o *TransportInfo_Transport1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type TransportInfo_Transport2

type TransportInfo_Transport2 struct {
	// Transport2:  A pointer to a structure containing information about a file server
	// transport, as specified in section 2.2.4.95.
	Transport2 *ServerTransportInfo2 `idl:"name:Transport2" json:"transport2"`
}

TransportInfo_Transport2 structure represents TRANSPORT_INFO RPC union arm.

It has following labels: 2

func (*TransportInfo_Transport2) MarshalNDR

func (o *TransportInfo_Transport2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportInfo_Transport2) UnmarshalNDR

func (o *TransportInfo_Transport2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type TransportInfo_Transport3

type TransportInfo_Transport3 struct {
	// Transport3:  A pointer to a structure containing information about a file server
	// transport, as specified in section 2.2.4.96.
	Transport3 *ServerTransportInfo3 `idl:"name:Transport3" json:"transport3"`
}

TransportInfo_Transport3 structure represents TRANSPORT_INFO RPC union arm.

It has following labels: 3

func (*TransportInfo_Transport3) MarshalNDR

func (o *TransportInfo_Transport3) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*TransportInfo_Transport3) UnmarshalNDR

func (o *TransportInfo_Transport3) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL