icatalogsession

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ICatalogSession interface identifier 182c40fa-32e4-11d0-818b-00a0c9231c29
	CatalogSessionIID = &dcom.IID{Data1: 0x182c40fa, Data2: 0x32e4, Data3: 0x11d0, Data4: []byte{0x81, 0x8b, 0x00, 0xa0, 0xc9, 0x23, 0x1c, 0x29}}
	// Syntax UUID
	CatalogSessionSyntaxUUID = &uuid.UUID{TimeLow: 0x182c40fa, TimeMid: 0x32e4, TimeHiAndVersion: 0x11d0, ClockSeqHiAndReserved: 0x81, ClockSeqLow: 0x8b, Node: [6]uint8{0x0, 0xa0, 0xc9, 0x23, 0x1c, 0x29}}
	// Syntax ID
	CatalogSessionSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: CatalogSessionSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/coma"
)

Functions

func CatalogSessionServerHandle

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

func NewCatalogSessionServerHandle

func NewCatalogSessionServerHandle(o CatalogSessionServer) dcerpc.ServerHandle

func RegisterCatalogSessionServer

func RegisterCatalogSessionServer(conn dcerpc.Conn, o CatalogSessionServer, opts ...dcerpc.Option)

Types

type CatalogSessionClient

type CatalogSessionClient interface {

	// IUnknown retrieval method.
	Unknown() iunknown.UnknownClient

	// This method is called by a client to perform Catalog Version Negotiation (section
	// 3.1.4.1).
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success and a failure
	// result, as specified in [MS-ERREF] section 2.1 on failure. All failure results MUST
	// be treated identically.
	InitializeSession(context.Context, *InitializeSessionRequest, ...dcerpc.CallOption) (*InitializeSessionResponse, error)

	// This method is called by a client to perform capability negotiation for the Multiple-partition
	// Support Capability Negotiation (section 3.1.4.3).
	//
	// Return Values:  This method MUST return S_OK (0x00000000) on success and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	//
	// A server that does not support catalog version 4.00 or catalog version 5.00 SHOULD
	// immediately return E_NOTIMPL (0x80004001) instead of implementing this method.
	//
	// Otherwise, the server MUST attempt to set the value referenced by plMultiplePartitionSupport
	// to the previously specified value that indicates its support of multiple partitions,
	// and fail the call if it cannot set the value.
	GetServerInformation(context.Context, *GetServerInformationRequest, ...dcerpc.CallOption) (*GetServerInformationResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error

	// IPID sets the object interface identifier.
	IPID(context.Context, *dcom.IPID) CatalogSessionClient
}

ICatalogSession interface.

func NewCatalogSessionClient

func NewCatalogSessionClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (CatalogSessionClient, error)

type CatalogSessionServer

type CatalogSessionServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// This method is called by a client to perform Catalog Version Negotiation (section
	// 3.1.4.1).
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success and a failure
	// result, as specified in [MS-ERREF] section 2.1 on failure. All failure results MUST
	// be treated identically.
	InitializeSession(context.Context, *InitializeSessionRequest) (*InitializeSessionResponse, error)

	// This method is called by a client to perform capability negotiation for the Multiple-partition
	// Support Capability Negotiation (section 3.1.4.3).
	//
	// Return Values:  This method MUST return S_OK (0x00000000) on success and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	//
	// A server that does not support catalog version 4.00 or catalog version 5.00 SHOULD
	// immediately return E_NOTIMPL (0x80004001) instead of implementing this method.
	//
	// Otherwise, the server MUST attempt to set the value referenced by plMultiplePartitionSupport
	// to the previously specified value that indicates its support of multiple partitions,
	// and fail the call if it cannot set the value.
	GetServerInformation(context.Context, *GetServerInformationRequest) (*GetServerInformationResponse, error)
}

ICatalogSession server interface.

type GetServerInformationRequest

type GetServerInformationRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetServerInformationRequest structure represents the GetServerInformation operation request

func (*GetServerInformationRequest) MarshalNDR

func (*GetServerInformationRequest) UnmarshalNDR

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

type GetServerInformationResponse

type GetServerInformationResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// plMultiplePartitionSupport: A pointer to a value that, upon successful completion,
	// MUST be set to one of the following values indicating support of multiple partitions.
	//
	//	+-------+----------------------------------------------------------------------------------+
	//	|       |                                                                                  |
	//	| VALUE |                                     MEANING                                      |
	//	|       |                                                                                  |
	//	+-------+----------------------------------------------------------------------------------+
	//	+-------+----------------------------------------------------------------------------------+
	//	|     1 | The server does not support multiple partitions.                                 |
	//	+-------+----------------------------------------------------------------------------------+
	//	|     2 | The server supports multiple partitions.                                         |
	//	+-------+----------------------------------------------------------------------------------+
	//	|     3 | The server supports multiple partitions and is also capable of managing the      |
	//	|       | domain-controlled PartitionRoles (section 3.1.1.3.17), PartitionRoleMembers      |
	//	|       | (section 3.1.1.3.18), and PartitionUsers (section 3.1.1.3.16) tables for other   |
	//	|       | servers. This value SHOULD be treated the same as 2, because it does not affect  |
	//	|       | interoperability.                                                                |
	//	+-------+----------------------------------------------------------------------------------+
	MultiplePartitionSupport int32 `idl:"name:plMultiplePartitionSupport" json:"multiple_partition_support"`
	// Return: The GetServerInformation return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetServerInformationResponse structure represents the GetServerInformation operation response

func (*GetServerInformationResponse) MarshalNDR

func (*GetServerInformationResponse) UnmarshalNDR

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

type InitializeSessionRequest

type InitializeSessionRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// flVerLower:  The lowest catalog version supported by the client.
	VerLower float32 `idl:"name:flVerLower" json:"ver_lower"`
	// flVerUpper:  The highest catalog version supported by the client.
	VerUpper float32 `idl:"name:flVerUpper" json:"ver_upper"`
}

InitializeSessionRequest structure represents the InitializeSession operation request

func (*InitializeSessionRequest) MarshalNDR

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

func (*InitializeSessionRequest) UnmarshalNDR

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

type InitializeSessionResponse

type InitializeSessionResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pflVerSession: A pointer to a variable that, upon successful completion, MUST be
	// set to the negotiated catalog version.
	VerSession float32 `idl:"name:pflVerSession" json:"ver_session"`
	// Return: The InitializeSession return value.
	Return int32 `idl:"name:Return" json:"return"`
}

InitializeSessionResponse structure represents the InitializeSession operation response

func (*InitializeSessionResponse) MarshalNDR

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

func (*InitializeSessionResponse) UnmarshalNDR

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL