Documentation
¶
Index ¶
- Variables
- func AppHostMethodServerHandle(ctx context.Context, o AppHostMethodServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewAppHostMethodServerHandle(o AppHostMethodServer) dcerpc.ServerHandle
- func RegisterAppHostMethodServer(conn dcerpc.Conn, o AppHostMethodServer, opts ...dcerpc.Option)
- type AppHostMethodClient
- type AppHostMethodServer
- type CreateInstanceRequest
- type CreateInstanceResponse
- type GetNameRequest
- type GetNameResponse
- type GetSchemaRequest
- type GetSchemaResponse
- type UnimplementedAppHostMethodServer
- func (UnimplementedAppHostMethodServer) CreateInstance(context.Context, *CreateInstanceRequest) (*CreateInstanceResponse, error)
- func (UnimplementedAppHostMethodServer) GetName(context.Context, *GetNameRequest) (*GetNameResponse, error)
- func (UnimplementedAppHostMethodServer) GetSchema(context.Context, *GetSchemaRequest) (*GetSchemaResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IAppHostMethod interface identifier 7883ca1c-1112-4447-84c3-52fbeb38069d AppHostMethodIID = &dcom.IID{Data1: 0x7883ca1c, Data2: 0x1112, Data3: 0x4447, Data4: []byte{0x84, 0xc3, 0x52, 0xfb, 0xeb, 0x38, 0x06, 0x9d}} // Syntax UUID AppHostMethodSyntaxUUID = &uuid.UUID{TimeLow: 0x7883ca1c, TimeMid: 0x1112, TimeHiAndVersion: 0x4447, ClockSeqHiAndReserved: 0x84, ClockSeqLow: 0xc3, Node: [6]uint8{0x52, 0xfb, 0xeb, 0x38, 0x6, 0x9d}} // Syntax ID AppHostMethodSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: AppHostMethodSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
View Source
var (
// import guard
GoPackage = "dcom/iisa"
)
Functions ¶
func NewAppHostMethodServerHandle ¶
func NewAppHostMethodServerHandle(o AppHostMethodServer) dcerpc.ServerHandle
func RegisterAppHostMethodServer ¶
func RegisterAppHostMethodServer(conn dcerpc.Conn, o AppHostMethodServer, opts ...dcerpc.Option)
Types ¶
type AppHostMethodClient ¶
type AppHostMethodClient interface {
// IUnknown retrieval method.
Unknown() iunknown.UnknownClient
// Name operation.
GetName(context.Context, *GetNameRequest, ...dcerpc.CallOption) (*GetNameResponse, error)
// Schema operation.
GetSchema(context.Context, *GetSchemaRequest, ...dcerpc.CallOption) (*GetSchemaResponse, error)
// The CreateInstance method is received by the server in an RPC_REQUEST packet. In
// response, the server creates an instance object of the method that can be executed.
// This behavior is analogous to the stack frame of a native method call.
//
// Return Values: The server MUST return zero if it successfully processes the message
// that is received from the client. In this case, *ppMethodInstance is not NULL. 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. |
// +------------------------------------+---------------------------------------------------------+
// | 0X00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough memory is available to process this command. |
// +------------------------------------+---------------------------------------------------------+
CreateInstance(context.Context, *CreateInstanceRequest, ...dcerpc.CallOption) (*CreateInstanceResponse, 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) AppHostMethodClient
}
IAppHostMethod interface.
func NewAppHostMethodClient ¶
type AppHostMethodServer ¶
type AppHostMethodServer interface {
// IUnknown base class.
iunknown.UnknownServer
// Name operation.
GetName(context.Context, *GetNameRequest) (*GetNameResponse, error)
// Schema operation.
GetSchema(context.Context, *GetSchemaRequest) (*GetSchemaResponse, error)
// The CreateInstance method is received by the server in an RPC_REQUEST packet. In
// response, the server creates an instance object of the method that can be executed.
// This behavior is analogous to the stack frame of a native method call.
//
// Return Values: The server MUST return zero if it successfully processes the message
// that is received from the client. In this case, *ppMethodInstance is not NULL. 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. |
// +------------------------------------+---------------------------------------------------------+
// | 0X00000008 ERROR_NOT_ENOUGH_MEMORY | Not enough memory is available to process this command. |
// +------------------------------------+---------------------------------------------------------+
CreateInstance(context.Context, *CreateInstanceRequest) (*CreateInstanceResponse, error)
}
IAppHostMethod server interface.
type CreateInstanceRequest ¶
type CreateInstanceRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
}
CreateInstanceRequest structure represents the CreateInstance operation request
func (*CreateInstanceRequest) MarshalNDR ¶
func (*CreateInstanceRequest) UnmarshalNDR ¶
type CreateInstanceResponse ¶
type CreateInstanceResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppMethodInstance: Contains the method instance.
MethodInstance *iisa.AppHostMethodInstance `idl:"name:ppMethodInstance" json:"method_instance"`
// Return: The CreateInstance return value.
Return int32 `idl:"name:Return" json:"return"`
}
CreateInstanceResponse structure represents the CreateInstance operation response
func (*CreateInstanceResponse) MarshalNDR ¶
func (*CreateInstanceResponse) UnmarshalNDR ¶
type GetNameRequest ¶
type GetNameRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
}
GetNameRequest structure represents the Name operation request
func (*GetNameRequest) MarshalNDR ¶
func (*GetNameRequest) UnmarshalNDR ¶
type GetNameResponse ¶
type GetNameResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
Name *oaut.String `idl:"name:pbstrName" json:"name"`
// Return: The Name return value.
Return int32 `idl:"name:Return" json:"return"`
}
GetNameResponse structure represents the Name operation response
func (*GetNameResponse) MarshalNDR ¶
func (*GetNameResponse) UnmarshalNDR ¶
type GetSchemaRequest ¶
type GetSchemaRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
}
GetSchemaRequest structure represents the Schema operation request
func (*GetSchemaRequest) MarshalNDR ¶
func (*GetSchemaRequest) UnmarshalNDR ¶
type GetSchemaResponse ¶
type GetSchemaResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
MethodSchema *iisa.AppHostMethodSchema `idl:"name:ppMethodSchema" json:"method_schema"`
// Return: The Schema return value.
Return int32 `idl:"name:Return" json:"return"`
}
GetSchemaResponse structure represents the Schema operation response
func (*GetSchemaResponse) MarshalNDR ¶
func (*GetSchemaResponse) UnmarshalNDR ¶
type UnimplementedAppHostMethodServer ¶ added in v1.1.5
type UnimplementedAppHostMethodServer struct {
iunknown.UnimplementedUnknownServer
}
Unimplemented IAppHostMethod
func (UnimplementedAppHostMethodServer) CreateInstance ¶ added in v1.1.5
func (UnimplementedAppHostMethodServer) CreateInstance(context.Context, *CreateInstanceRequest) (*CreateInstanceResponse, error)
func (UnimplementedAppHostMethodServer) GetName ¶ added in v1.1.5
func (UnimplementedAppHostMethodServer) GetName(context.Context, *GetNameRequest) (*GetNameResponse, error)
func (UnimplementedAppHostMethodServer) GetSchema ¶ added in v1.1.5
func (UnimplementedAppHostMethodServer) GetSchema(context.Context, *GetSchemaRequest) (*GetSchemaResponse, error)
Click to show internal directories.
Click to hide internal directories.