msgsvcsend

package
v0.1.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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	MsgsvcsendSyntaxUUID = &uuid.UUID{TimeLow: 0x5a7b91f8, TimeMid: 0xff00, TimeHiAndVersion: 0x11d0, ClockSeqHiAndReserved: 0xa9, ClockSeqLow: 0xb2, Node: [6]uint8{0x0, 0xc0, 0x4f, 0xb6, 0xe6, 0xfc}}
	// Syntax ID
	MsgsvcsendSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: MsgsvcsendSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "msrp"
)

Functions

func MsgsvcsendServerHandle

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

func NewMsgsvcsendServerHandle

func NewMsgsvcsendServerHandle(o MsgsvcsendServer) dcerpc.ServerHandle

func RegisterMsgsvcsendServer

func RegisterMsgsvcsendServer(conn dcerpc.Conn, o MsgsvcsendServer, opts ...dcerpc.Option)

Types

type MsgsvcsendClient

type MsgsvcsendClient interface {

	// The NetrSendMessage (Opnum 0) method is used to send a text message to a message
	// server.
	//
	// Return Values: An error_status_t value that indicates return status. If the method
	// returns a negative value, the method has failed. If the 12-bit facility code (bits
	// 16–27) is set to 0x007, the value contains a Win32 error code (defined in [MS-ERREF])
	// in the lower 16 bits. Zero or positive values indicate success, with the lower 16
	// bits in positive nonzero values containing warnings or flags defined in the method
	// implementation.
	//
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	|               RETURN               |                                                                           |
	//	|             VALUE/CODE             |                                DESCRIPTION                                |
	//	|                                    |                                                                           |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x00000000 ERROR_SUCCESS           | The operation completed successfully.                                     |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                         |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x00000032 ERROR_NOT_SUPPORTED     | The request is not supported.<22>                                         |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                                               |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x00000858 NERR_NetworkError       | A general network error occurred.                                         |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008E1 NERR_NameNotFound       | The message alias could not be found on the network.                      |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008E8 NERR_GrpMsgProcessor    | An error occurred in the domain message processor.                        |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008E9 NERR_PausedRemote       | The message was sent, but the recipient has paused the Messenger service. |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008EA NERR_BadReceive         | The message was sent but not received.                                    |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008EB NERR_NameInUse          | The message alias is currently in use. Try again later.                   |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008ED NERR_NotLocalName       | The name is not on the local computer.                                    |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008F1 NERR_TruncatedBroadcast | The broadcast message was truncated.                                      |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008F9 NERR_DuplicateName      | A duplicate message alias exists on the network.                          |
	//	+------------------------------------+---------------------------------------------------------------------------+
	SendMessage(context.Context, *SendMessageRequest, ...dcerpc.CallOption) (*SendMessageResponse, error)

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

msgsvcsend interface.

func NewMsgsvcsendClient

func NewMsgsvcsendClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (MsgsvcsendClient, error)

type MsgsvcsendServer

type MsgsvcsendServer interface {

	// The NetrSendMessage (Opnum 0) method is used to send a text message to a message
	// server.
	//
	// Return Values: An error_status_t value that indicates return status. If the method
	// returns a negative value, the method has failed. If the 12-bit facility code (bits
	// 16–27) is set to 0x007, the value contains a Win32 error code (defined in [MS-ERREF])
	// in the lower 16 bits. Zero or positive values indicate success, with the lower 16
	// bits in positive nonzero values containing warnings or flags defined in the method
	// implementation.
	//
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	|               RETURN               |                                                                           |
	//	|             VALUE/CODE             |                                DESCRIPTION                                |
	//	|                                    |                                                                           |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x00000000 ERROR_SUCCESS           | The operation completed successfully.                                     |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED     | Access is denied.                                                         |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x00000032 ERROR_NOT_SUPPORTED     | The request is not supported.<22>                                         |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x00000057 ERROR_INVALID_PARAMETER | The parameter is incorrect.                                               |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x00000858 NERR_NetworkError       | A general network error occurred.                                         |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008E1 NERR_NameNotFound       | The message alias could not be found on the network.                      |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008E8 NERR_GrpMsgProcessor    | An error occurred in the domain message processor.                        |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008E9 NERR_PausedRemote       | The message was sent, but the recipient has paused the Messenger service. |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008EA NERR_BadReceive         | The message was sent but not received.                                    |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008EB NERR_NameInUse          | The message alias is currently in use. Try again later.                   |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008ED NERR_NotLocalName       | The name is not on the local computer.                                    |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008F1 NERR_TruncatedBroadcast | The broadcast message was truncated.                                      |
	//	+------------------------------------+---------------------------------------------------------------------------+
	//	| 0x000008F9 NERR_DuplicateName      | A duplicate message alias exists on the network.                          |
	//	+------------------------------------+---------------------------------------------------------------------------+
	SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
}

msgsvcsend server interface.

type SendMessageRequest

type SendMessageRequest struct {
	// From: A null-terminated string that MUST denote the name of the sender of the message.
	// The name is not guaranteed to be unique or reachable by this method. The string MUST
	// be expressed in the original equipment manufacturer (OEM) character set, as specified
	// in [MS-UCODEREF] section 2.2.1, of the invoker of this method.
	From string `idl:"name:From;string" json:"from"`
	// To: A null-terminated string that MUST represent the name of the intended recipient
	// of the message. The name is not guaranteed to be unique or reachable by this method.
	// The string is expressed in the OEM character set, as specified in [MS-UCODEREF] section
	// 2.2.1, of the invoker of this method.
	To string `idl:"name:To;string" json:"to"`
	// Text: A null-terminated string that MUST contain the message that is being sent to
	// the recipient in the To parameter. The string is expressed in the OEM character set,
	// as specified in [MS-UCODEREF] section 2.2.1.
	Text string `idl:"name:Text;string" json:"text"`
}

SendMessageRequest structure represents the NetrSendMessage operation request

func (*SendMessageRequest) MarshalNDR

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

func (*SendMessageRequest) UnmarshalNDR

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

type SendMessageResponse

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

SendMessageResponse structure represents the NetrSendMessage operation response

func (*SendMessageResponse) MarshalNDR

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

func (*SendMessageResponse) UnmarshalNDR

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