iexport2

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IExport2 interface identifier f131ea3e-b7be-480e-a60d-51cb2785779e
	Export2IID = &dcom.IID{Data1: 0xf131ea3e, Data2: 0xb7be, Data3: 0x480e, Data4: []byte{0xa6, 0x0d, 0x51, 0xcb, 0x27, 0x85, 0x77, 0x9e}}
	// Syntax UUID
	Export2SyntaxUUID = &uuid.UUID{TimeLow: 0xf131ea3e, TimeMid: 0xb7be, TimeHiAndVersion: 0x480e, ClockSeqHiAndReserved: 0xa6, ClockSeqLow: 0xd, Node: [6]uint8{0x51, 0xcb, 0x27, 0x85, 0x77, 0x9e}}
	// Syntax ID
	Export2SyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: Export2SyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/coma"
)

Functions

func Export2ServerHandle

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

func NewExport2ServerHandle

func NewExport2ServerHandle(o Export2Server) dcerpc.ServerHandle

func RegisterExport2Server

func RegisterExport2Server(conn dcerpc.Conn, o Export2Server, opts ...dcerpc.Option)

Types

type Export2Client

type Export2Client interface {

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

	// This method is called by a client to export all conglomerations in a partition at
	// once to an installer package file.
	//
	// 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.
	//
	//	+-------------------+--------------------------+
	//	|      RETURN       |                          |
	//	|    VALUE/CODE     |       DESCRIPTION        |
	//	|                   |                          |
	//	+-------------------+--------------------------+
	//	+-------------------+--------------------------+
	//	| 0x00000000 S_OK   | The call was successful. |
	//	+-------------------+--------------------------+
	ExportPartition(context.Context, *ExportPartitionRequest, ...dcerpc.CallOption) (*ExportPartitionResponse, error)

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

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

IExport2 interface.

func NewExport2Client

func NewExport2Client(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (Export2Client, error)

type Export2Server

type Export2Server interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// This method is called by a client to export all conglomerations in a partition at
	// once to an installer package file.
	//
	// 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.
	//
	//	+-------------------+--------------------------+
	//	|      RETURN       |                          |
	//	|    VALUE/CODE     |       DESCRIPTION        |
	//	|                   |                          |
	//	+-------------------+--------------------------+
	//	+-------------------+--------------------------+
	//	| 0x00000000 S_OK   | The call was successful. |
	//	+-------------------+--------------------------+
	ExportPartition(context.Context, *ExportPartitionRequest) (*ExportPartitionResponse, error)
}

IExport2 server interface.

type ExportPartitionRequest

type ExportPartitionRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pPartitionIdentifier: The partition identifier of a partition other than the global
	// partition on the server.
	PartitionID *dtyp.GUID `idl:"name:pPartitionIdentifier" json:"partition_id"`
	// pwszInstallerPackage:  A path in UNC that is to be used as the location for the
	// server to create an installer package file.
	InstallerPackage string `idl:"name:pwszInstallerPackage" json:"installer_package"`
	// dwFlags:  MUST be a combination of zero or more of the following flags.
	//
	//	+------------------------------+----------------------------------------------------------------------------------+
	//	|                              |                                                                                  |
	//	|             FLAG             |                                     MEANING                                      |
	//	|                              |                                                                                  |
	//	+------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------+----------------------------------------------------------------------------------+
	//	| fEXPORT_OVERWRITE 0x00000001 | The server SHOULD mark the installer package file with a directive that existing |
	//	|                              | files be overwritten on import (section 3.1.4.12.1).                             |
	//	+------------------------------+----------------------------------------------------------------------------------+
	//	| fEXPORT_WITHUSERS 0x00000010 | The server SHOULD include user account information in the installer package      |
	//	|                              | file.                                                                            |
	//	+------------------------------+----------------------------------------------------------------------------------+
	//	| fEXPORT_PROXY 0x00000020     | The server SHOULD mark the exported conglomeration as a proxy conglomeration by  |
	//	|                              | setting the IsProxyApp property is set to TRUE (0x00000001).                     |
	//	+------------------------------+----------------------------------------------------------------------------------+
	Flags uint32 `idl:"name:dwFlags" json:"flags"`
}

ExportPartitionRequest structure represents the ExportPartition operation request

func (*ExportPartitionRequest) MarshalNDR

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

func (*ExportPartitionRequest) UnmarshalNDR

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

type ExportPartitionResponse

type ExportPartitionResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The ExportPartition return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ExportPartitionResponse structure represents the ExportPartition operation response

func (*ExportPartitionResponse) MarshalNDR

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

func (*ExportPartitionResponse) UnmarshalNDR

func (o *ExportPartitionResponse) 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