ipchservice

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IPCHService interface identifier 833e4200-aff7-4ac3-aac2-9f24c1457bce
	PCHServiceIID = &dcom.IID{Data1: 0x833e4200, Data2: 0xaff7, Data3: 0x4ac3, Data4: []byte{0xaa, 0xc2, 0x9f, 0x24, 0xc1, 0x45, 0x7b, 0xce}}
	// Syntax UUID
	PCHServiceSyntaxUUID = &uuid.UUID{TimeLow: 0x833e4200, TimeMid: 0xaff7, TimeHiAndVersion: 0x4ac3, ClockSeqHiAndReserved: 0xaa, ClockSeqLow: 0xc2, Node: [6]uint8{0x9f, 0x24, 0xc1, 0x45, 0x7b, 0xce}}
	// Syntax ID
	PCHServiceSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: PCHServiceSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/rai"
)

Functions

func NewPCHServiceServerHandle

func NewPCHServiceServerHandle(o PCHServiceServer) dcerpc.ServerHandle

func PCHServiceServerHandle

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

func RegisterPCHServiceServer

func RegisterPCHServiceServer(conn dcerpc.Conn, o PCHServiceServer, opts ...dcerpc.Option)

Types

type PCHServiceClient

type PCHServiceClient interface {

	// IDispatch retrieval method.
	Dispatch() idispatch.DispatchClient

	// The RemoteConnectionParms method gets the Remote Assistance connection parameters
	// for a specific UserName, DomainName, and SessionID triple.
	//
	// Return Values: A signed 32-bit value indicating return status. This method MUST return
	// zero to indicate success, or an HRESULT error value (as specified in [MS-ERREF] section
	// 2.1.1) to indicate failure. If the UserName and DomainName are valid BSTRs, the return
	// code is one listed in the following table. If the UserName and DomainName are invalid
	// BSTRs, the HRESULT value returned is the corresponding HRESULT to the system error
	// code ERROR_NONE_MAPPED.
	//
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	|                   RETURN                   |                                                                                  |
	//	|                 VALUE/CODE                 |                                   DESCRIPTION                                    |
	//	|                                            |                                                                                  |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 S_OK                            | The call was successful.                                                         |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                  | General access denied error. <8>                                                 |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8007000E E_OUTOFMEMORY                   | Out of memory.                                                                   |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x800704EC ERROR_ACCESS_DISABLED_BY_POLICY | The program cannot be opened because of a software restriction policy. For more  |
	//	|                                            | information, contact the system administrator.                                   |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].
	RemoteConnectionParameters(context.Context, *RemoteConnectionParametersRequest, ...dcerpc.CallOption) (*RemoteConnectionParametersResponse, error)

	// The RemoteUserSessionInfo method returns the collection of the terminal services
	// sessions on the remote novice machine. All the terminal services session information
	// is returned as a standard IPCHCollection interface. The members of this collection
	// are objects of type ISAFSession. ISAFSession includes the DomainName, SessionID,
	// SessionState, and UserName for each session.
	//
	// Return Values: A signed 32-bit value indicating return status. This method MUST return
	// zero to indicate success, or an HRESULT error value (as specified in [MS-ERREF] section
	// 2.1.1) to indicate failure.
	//
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	|                   RETURN                   |                                                                                  |
	//	|                 VALUE/CODE                 |                                   DESCRIPTION                                    |
	//	|                                            |                                                                                  |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 S_OK                            | The call was successful.                                                         |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                  | General access denied error. <9>                                                 |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8007000E E_OUTOFMEMORY                   | Out of memory.                                                                   |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x800704EC ERROR_ACCESS_DISABLED_BY_POLICY | The program cannot be opened because of a software restriction policy. For more  |
	//	|                                            | information, contact the system administrator.                                   |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].
	RemoteUserSessionInfo(context.Context, *RemoteUserSessionInfoRequest, ...dcerpc.CallOption) (*RemoteUserSessionInfoResponse, error)

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

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

IPCHService interface.

func NewPCHServiceClient

func NewPCHServiceClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (PCHServiceClient, error)

type PCHServiceServer

type PCHServiceServer interface {

	// IDispatch base class.
	idispatch.DispatchServer

	// The RemoteConnectionParms method gets the Remote Assistance connection parameters
	// for a specific UserName, DomainName, and SessionID triple.
	//
	// Return Values: A signed 32-bit value indicating return status. This method MUST return
	// zero to indicate success, or an HRESULT error value (as specified in [MS-ERREF] section
	// 2.1.1) to indicate failure. If the UserName and DomainName are valid BSTRs, the return
	// code is one listed in the following table. If the UserName and DomainName are invalid
	// BSTRs, the HRESULT value returned is the corresponding HRESULT to the system error
	// code ERROR_NONE_MAPPED.
	//
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	|                   RETURN                   |                                                                                  |
	//	|                 VALUE/CODE                 |                                   DESCRIPTION                                    |
	//	|                                            |                                                                                  |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 S_OK                            | The call was successful.                                                         |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                  | General access denied error. <8>                                                 |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8007000E E_OUTOFMEMORY                   | Out of memory.                                                                   |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x800704EC ERROR_ACCESS_DISABLED_BY_POLICY | The program cannot be opened because of a software restriction policy. For more  |
	//	|                                            | information, contact the system administrator.                                   |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].
	RemoteConnectionParameters(context.Context, *RemoteConnectionParametersRequest) (*RemoteConnectionParametersResponse, error)

	// The RemoteUserSessionInfo method returns the collection of the terminal services
	// sessions on the remote novice machine. All the terminal services session information
	// is returned as a standard IPCHCollection interface. The members of this collection
	// are objects of type ISAFSession. ISAFSession includes the DomainName, SessionID,
	// SessionState, and UserName for each session.
	//
	// Return Values: A signed 32-bit value indicating return status. This method MUST return
	// zero to indicate success, or an HRESULT error value (as specified in [MS-ERREF] section
	// 2.1.1) to indicate failure.
	//
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	|                   RETURN                   |                                                                                  |
	//	|                 VALUE/CODE                 |                                   DESCRIPTION                                    |
	//	|                                            |                                                                                  |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 S_OK                            | The call was successful.                                                         |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                  | General access denied error. <9>                                                 |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8007000E E_OUTOFMEMORY                   | Out of memory.                                                                   |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x800704EC ERROR_ACCESS_DISABLED_BY_POLICY | The program cannot be opened because of a software restriction policy. For more  |
	//	|                                            | information, contact the system administrator.                                   |
	//	+--------------------------------------------+----------------------------------------------------------------------------------+
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].
	RemoteUserSessionInfo(context.Context, *RemoteUserSessionInfoRequest) (*RemoteUserSessionInfoResponse, error)
}

IPCHService server interface.

type RemoteConnectionParametersRequest

type RemoteConnectionParametersRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// bstrUserName: The UserName part of the DomainName\UserName string corresponding to
	// the terminal services session for which the client is requesting a Remote Assistance
	// Connection String.
	UserName *oaut.String `idl:"name:bstrUserName" json:"user_name"`
	// bstrDomainName: The DomainName part of the DomainName\UserName string corresponding
	// to the terminal services session for which the client is requesting a Remote Assistance
	// Connection String.
	DomainName *oaut.String `idl:"name:bstrDomainName" json:"domain_name"`
	// lSessionID: Identifier of the terminal services session for which the client is requesting
	// a Remote Assistance Connection String.
	SessionID int32 `idl:"name:lSessionID" json:"session_id"`
	// bstrUserHelpBlob: A semicolon-delimited string that contains the domain and user
	// names of the expert requesting a Remote Assistance Connection String. The format
	// of the string is as follows.
	//
	// The following is an example.
	UserHelpBlob *oaut.String `idl:"name:bstrUserHelpBlob" json:"user_help_blob"`
}

RemoteConnectionParametersRequest structure represents the RemoteConnectionParms operation request

func (*RemoteConnectionParametersRequest) MarshalNDR

func (*RemoteConnectionParametersRequest) UnmarshalNDR

type RemoteConnectionParametersResponse

type RemoteConnectionParametersResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pbstrConnectionString: A pointer to a Remote Assistance Connection String for the
	// requested session.
	ConnectionString *oaut.String `idl:"name:pbstrConnectionString" json:"connection_string"`
	// Return: The RemoteConnectionParms return value.
	Return int32 `idl:"name:Return" json:"return"`
}

RemoteConnectionParametersResponse structure represents the RemoteConnectionParms operation response

func (*RemoteConnectionParametersResponse) MarshalNDR

func (*RemoteConnectionParametersResponse) UnmarshalNDR

type RemoteUserSessionInfoRequest

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

RemoteUserSessionInfoRequest structure represents the RemoteUserSessionInfo operation request

func (*RemoteUserSessionInfoRequest) MarshalNDR

func (*RemoteUserSessionInfoRequest) UnmarshalNDR

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

type RemoteUserSessionInfoResponse

type RemoteUserSessionInfoResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pVal: A pointer to an IPCHCollection interface containing terminal services sessions
	// information on the server.
	Value *rai.PCHCollection `idl:"name:pVal" json:"value"`
	// Return: The RemoteUserSessionInfo return value.
	Return int32 `idl:"name:Return" json:"return"`
}

RemoteUserSessionInfoResponse structure represents the RemoteUserSessionInfo operation response

func (*RemoteUserSessionInfoResponse) MarshalNDR

func (*RemoteUserSessionInfoResponse) UnmarshalNDR

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