iapphostmethodinstance

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IAppHostMethodInstance interface identifier b80f3c42-60e0-4ae0-9007-f52852d3dbed
	AppHostMethodInstanceIID = &dcom.IID{Data1: 0xb80f3c42, Data2: 0x60e0, Data3: 0x4ae0, Data4: []byte{0x90, 0x07, 0xf5, 0x28, 0x52, 0xd3, 0xdb, 0xed}}
	// Syntax UUID
	AppHostMethodInstanceSyntaxUUID = &uuid.UUID{TimeLow: 0xb80f3c42, TimeMid: 0x60e0, TimeHiAndVersion: 0x4ae0, ClockSeqHiAndReserved: 0x90, ClockSeqLow: 0x7, Node: [6]uint8{0xf5, 0x28, 0x52, 0xd3, 0xdb, 0xed}}
	// Syntax ID
	AppHostMethodInstanceSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: AppHostMethodInstanceSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/iisa"
)

Functions

func AppHostMethodInstanceServerHandle

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

func NewAppHostMethodInstanceServerHandle

func NewAppHostMethodInstanceServerHandle(o AppHostMethodInstanceServer) dcerpc.ServerHandle

func RegisterAppHostMethodInstanceServer

func RegisterAppHostMethodInstanceServer(conn dcerpc.Conn, o AppHostMethodInstanceServer, opts ...dcerpc.Option)

Types

type AppHostMethodInstanceClient

type AppHostMethodInstanceClient interface {

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

	// The Input method is received by the server in an RPC_REQUEST packet. In response,
	// the server returns an IAppHostElement in which input parameters can be specified
	// for the specified method instance call. If the method does not support input parameters,
	// no IAppHostElement is returned.
	//
	// Return Values: The server MUST return zero if it successfully processes the message
	// that is received from the client. If processing fails, the server MUST return a nonzero
	// HRESULT code as defined in [MS-ERREF]. The following table describes the error conditions
	// that MUST be handled and the corresponding error codes. A server MAY return additional
	// implementation-specific error codes.
	//
	//	+------------------------------------+-----------------------------------------------+
	//	|               RETURN               |                                               |
	//	|             VALUE/CODE             |                  DESCRIPTION                  |
	//	|                                    |                                               |
	//	+------------------------------------+-----------------------------------------------+
	//	+------------------------------------+-----------------------------------------------+
	//	| 0X00000000 NO_ERROR                | The operation completed successfully.         |
	//	+------------------------------------+-----------------------------------------------+
	//	| 0X80070057 ERROR_INVALID_PARAMETER | One or more parameters are incorrect or null. |
	//	+------------------------------------+-----------------------------------------------+
	GetInput(context.Context, *GetInputRequest, ...dcerpc.CallOption) (*GetInputResponse, error)

	// The Output method is received by the server in an RPC_REQUEST packet. In response,
	// the server returns an IAppHostElement from which output parameters are retrieved
	// after the specified method instance has been executed. If the method does not support
	// output parameters, no IAppHostElement is returned.
	//
	// Return Values: The server MUST return zero if it successfully processes the message
	// that is received from the client. If processing fails, the server MUST return a nonzero
	// HRESULT code as defined in [MS-ERREF]. The following table describes the error conditions
	// that MUST be handled and the corresponding error codes. A server MAY return additional
	// implementation-specific error codes.
	//
	//	+------------------------------------+-----------------------------------------------+
	//	|               RETURN               |                                               |
	//	|             VALUE/CODE             |                  DESCRIPTION                  |
	//	|                                    |                                               |
	//	+------------------------------------+-----------------------------------------------+
	//	+------------------------------------+-----------------------------------------------+
	//	| 0X00000000 NO_ERROR                | The operation completed successfully.         |
	//	+------------------------------------+-----------------------------------------------+
	//	| 0X80070057 ERROR_INVALID_PARAMETER | One or more parameters are incorrect or null. |
	//	+------------------------------------+-----------------------------------------------+
	GetOutput(context.Context, *GetOutputRequest, ...dcerpc.CallOption) (*GetOutputResponse, error)

	// The Execute method is received by the server in an RPC_REQUEST packet. In response,
	// the server actually executes the specified custom method.
	//
	// This method has no parameters.
	//
	// Return Values: The server MUST return zero if it successfully processes the message
	// that is received from the client. If processing fails, the server MUST return a nonzero
	// HRESULT code as defined in [MS-ERREF]. The following table describes the error conditions
	// that MUST be handled and the corresponding error codes. A server MAY return additional
	// implementation-specific error codes.
	//
	//	+---------------------+---------------------------------------+
	//	|       RETURN        |                                       |
	//	|     VALUE/CODE      |              DESCRIPTION              |
	//	|                     |                                       |
	//	+---------------------+---------------------------------------+
	//	+---------------------+---------------------------------------+
	//	| 0X00000000 NO_ERROR | The operation completed successfully. |
	//	+---------------------+---------------------------------------+
	Execute(context.Context, *ExecuteRequest, ...dcerpc.CallOption) (*ExecuteResponse, error)

	// GetMetadata operation.
	GetMetadata(context.Context, *GetMetadataRequest, ...dcerpc.CallOption) (*GetMetadataResponse, error)

	// SetMetadata operation.
	SetMetadata(context.Context, *SetMetadataRequest, ...dcerpc.CallOption) (*SetMetadataResponse, error)

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

	// Conn returns the client connection (unsafe)
	Conn() dcerpc.Conn

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

IAppHostMethodInstance interface.

func NewAppHostMethodInstanceClient

func NewAppHostMethodInstanceClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (AppHostMethodInstanceClient, error)

type AppHostMethodInstanceServer

type AppHostMethodInstanceServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The Input method is received by the server in an RPC_REQUEST packet. In response,
	// the server returns an IAppHostElement in which input parameters can be specified
	// for the specified method instance call. If the method does not support input parameters,
	// no IAppHostElement is returned.
	//
	// Return Values: The server MUST return zero if it successfully processes the message
	// that is received from the client. If processing fails, the server MUST return a nonzero
	// HRESULT code as defined in [MS-ERREF]. The following table describes the error conditions
	// that MUST be handled and the corresponding error codes. A server MAY return additional
	// implementation-specific error codes.
	//
	//	+------------------------------------+-----------------------------------------------+
	//	|               RETURN               |                                               |
	//	|             VALUE/CODE             |                  DESCRIPTION                  |
	//	|                                    |                                               |
	//	+------------------------------------+-----------------------------------------------+
	//	+------------------------------------+-----------------------------------------------+
	//	| 0X00000000 NO_ERROR                | The operation completed successfully.         |
	//	+------------------------------------+-----------------------------------------------+
	//	| 0X80070057 ERROR_INVALID_PARAMETER | One or more parameters are incorrect or null. |
	//	+------------------------------------+-----------------------------------------------+
	GetInput(context.Context, *GetInputRequest) (*GetInputResponse, error)

	// The Output method is received by the server in an RPC_REQUEST packet. In response,
	// the server returns an IAppHostElement from which output parameters are retrieved
	// after the specified method instance has been executed. If the method does not support
	// output parameters, no IAppHostElement is returned.
	//
	// Return Values: The server MUST return zero if it successfully processes the message
	// that is received from the client. If processing fails, the server MUST return a nonzero
	// HRESULT code as defined in [MS-ERREF]. The following table describes the error conditions
	// that MUST be handled and the corresponding error codes. A server MAY return additional
	// implementation-specific error codes.
	//
	//	+------------------------------------+-----------------------------------------------+
	//	|               RETURN               |                                               |
	//	|             VALUE/CODE             |                  DESCRIPTION                  |
	//	|                                    |                                               |
	//	+------------------------------------+-----------------------------------------------+
	//	+------------------------------------+-----------------------------------------------+
	//	| 0X00000000 NO_ERROR                | The operation completed successfully.         |
	//	+------------------------------------+-----------------------------------------------+
	//	| 0X80070057 ERROR_INVALID_PARAMETER | One or more parameters are incorrect or null. |
	//	+------------------------------------+-----------------------------------------------+
	GetOutput(context.Context, *GetOutputRequest) (*GetOutputResponse, error)

	// The Execute method is received by the server in an RPC_REQUEST packet. In response,
	// the server actually executes the specified custom method.
	//
	// This method has no parameters.
	//
	// Return Values: The server MUST return zero if it successfully processes the message
	// that is received from the client. If processing fails, the server MUST return a nonzero
	// HRESULT code as defined in [MS-ERREF]. The following table describes the error conditions
	// that MUST be handled and the corresponding error codes. A server MAY return additional
	// implementation-specific error codes.
	//
	//	+---------------------+---------------------------------------+
	//	|       RETURN        |                                       |
	//	|     VALUE/CODE      |              DESCRIPTION              |
	//	|                     |                                       |
	//	+---------------------+---------------------------------------+
	//	+---------------------+---------------------------------------+
	//	| 0X00000000 NO_ERROR | The operation completed successfully. |
	//	+---------------------+---------------------------------------+
	Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)

	// GetMetadata operation.
	GetMetadata(context.Context, *GetMetadataRequest) (*GetMetadataResponse, error)

	// SetMetadata operation.
	SetMetadata(context.Context, *SetMetadataRequest) (*SetMetadataResponse, error)
}

IAppHostMethodInstance server interface.

type ExecuteRequest

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

ExecuteRequest structure represents the Execute operation request

func (*ExecuteRequest) MarshalNDR

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

func (*ExecuteRequest) UnmarshalNDR

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

type ExecuteResponse

type ExecuteResponse 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 Execute return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ExecuteResponse structure represents the Execute operation response

func (*ExecuteResponse) MarshalNDR

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

func (*ExecuteResponse) UnmarshalNDR

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

type GetInputRequest

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

GetInputRequest structure represents the Input operation request

func (*GetInputRequest) MarshalNDR

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

func (*GetInputRequest) UnmarshalNDR

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

type GetInputResponse

type GetInputResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppInputElement: Contains the IAppHostElement that represents the input parameters.
	InputElement *iisa.AppHostElement `idl:"name:ppInputElement" json:"input_element"`
	// Return: The Input return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetInputResponse structure represents the Input operation response

func (*GetInputResponse) MarshalNDR

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

func (*GetInputResponse) UnmarshalNDR

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

type GetMetadataRequest

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

GetMetadataRequest structure represents the GetMetadata operation request

func (*GetMetadataRequest) MarshalNDR

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

func (*GetMetadataRequest) UnmarshalNDR

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

type GetMetadataResponse

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

GetMetadataResponse structure represents the GetMetadata operation response

func (*GetMetadataResponse) MarshalNDR

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

func (*GetMetadataResponse) UnmarshalNDR

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

type GetOutputRequest

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

GetOutputRequest structure represents the Output operation request

func (*GetOutputRequest) MarshalNDR

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

func (*GetOutputRequest) UnmarshalNDR

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

type GetOutputResponse

type GetOutputResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppOutputElement: Contains the IAppHostElement that represents the output parameters.
	OutputElement *iisa.AppHostElement `idl:"name:ppOutputElement" json:"output_element"`
	// Return: The Output return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetOutputResponse structure represents the Output operation response

func (*GetOutputResponse) MarshalNDR

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

func (*GetOutputResponse) UnmarshalNDR

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

type SetMetadataRequest

type SetMetadataRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This         *dcom.ORPCThis `idl:"name:This" json:"this"`
	MetadataType *oaut.String   `idl:"name:bstrMetadataType" json:"metadata_type"`
	Value        *oaut.Variant  `idl:"name:value" json:"value"`
}

SetMetadataRequest structure represents the SetMetadata operation request

func (*SetMetadataRequest) MarshalNDR

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

func (*SetMetadataRequest) UnmarshalNDR

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

type SetMetadataResponse

type SetMetadataResponse 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 SetMetadata return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetMetadataResponse structure represents the SetMetadata operation response

func (*SetMetadataResponse) MarshalNDR

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

func (*SetMetadataResponse) UnmarshalNDR

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

type UnimplementedAppHostMethodInstanceServer added in v1.1.5

type UnimplementedAppHostMethodInstanceServer struct {
	iunknown.UnimplementedUnknownServer
}

Unimplemented IAppHostMethodInstance

func (UnimplementedAppHostMethodInstanceServer) Execute added in v1.1.5

func (UnimplementedAppHostMethodInstanceServer) GetInput added in v1.1.5

func (UnimplementedAppHostMethodInstanceServer) GetMetadata added in v1.1.5

func (UnimplementedAppHostMethodInstanceServer) GetOutput added in v1.1.5

func (UnimplementedAppHostMethodInstanceServer) SetMetadata added in v1.1.5

Jump to

Keyboard shortcuts

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