ipchcollection

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 (
	// IPCHCollection interface identifier 833e4100-aff7-4ac3-aac2-9f24c1457bce
	PCHCollectionIID = &dcom.IID{Data1: 0x833e4100, Data2: 0xaff7, Data3: 0x4ac3, Data4: []byte{0xaa, 0xc2, 0x9f, 0x24, 0xc1, 0x45, 0x7b, 0xce}}
	// Syntax UUID
	PCHCollectionSyntaxUUID = &uuid.UUID{TimeLow: 0x833e4100, TimeMid: 0xaff7, TimeHiAndVersion: 0x4ac3, ClockSeqHiAndReserved: 0xaa, ClockSeqLow: 0xc2, Node: [6]uint8{0x9f, 0x24, 0xc1, 0x45, 0x7b, 0xce}}
	// Syntax ID
	PCHCollectionSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: PCHCollectionSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/rai"
)

Functions

func NewPCHCollectionServerHandle

func NewPCHCollectionServerHandle(o PCHCollectionServer) dcerpc.ServerHandle

func PCHCollectionServerHandle

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

func RegisterPCHCollectionServer

func RegisterPCHCollectionServer(conn dcerpc.Conn, o PCHCollectionServer, opts ...dcerpc.Option)

Types

type GetCountRequest

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

GetCountRequest structure represents the Count operation request

func (*GetCountRequest) MarshalNDR

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

func (*GetCountRequest) UnmarshalNDR

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

type GetCountResponse

type GetCountResponse 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 the number of elements in the collection.
	Value int32 `idl:"name:pVal" json:"value"`
	// Return: The Count return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetCountResponse structure represents the Count operation response

func (*GetCountResponse) MarshalNDR

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

func (*GetCountResponse) UnmarshalNDR

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

type GetItemRequest

type GetItemRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// vIndex: One-indexed number of the element to retrieve.
	VIndex int32 `idl:"name:vIndex" json:"v_index"`
}

GetItemRequest structure represents the Item operation request

func (*GetItemRequest) MarshalNDR

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

func (*GetItemRequest) UnmarshalNDR

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

type GetItemResponse

type GetItemResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppEntry: A pointer to the element at vIndex, of type VARIANT as defined in [MS-OAUT]
	// section 2.2.29.2.
	Entry *oaut.Variant `idl:"name:ppEntry" json:"entry"`
	// Return: The Item return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetItemResponse structure represents the Item operation response

func (*GetItemResponse) MarshalNDR

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

func (*GetItemResponse) UnmarshalNDR

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

type Get_NewEnumRequest

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

Get_NewEnumRequest structure represents the _NewEnum operation request

func (*Get_NewEnumRequest) MarshalNDR

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

func (*Get_NewEnumRequest) UnmarshalNDR

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

type Get_NewEnumResponse

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

Get_NewEnumResponse structure represents the _NewEnum operation response

func (*Get_NewEnumResponse) MarshalNDR

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

func (*Get_NewEnumResponse) UnmarshalNDR

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

type PCHCollectionClient

type PCHCollectionClient interface {

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

	// _NewEnum operation.
	Get_NewEnum(context.Context, *Get_NewEnumRequest, ...dcerpc.CallOption) (*Get_NewEnumResponse, error)

	// The Item method retrieves an element.
	//
	// 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.                           |
	//	+--------------------------+----------------------------------------------------+
	//	| 0x80004003 E_POINTER     | The method failed due to an invalid pointer.       |
	//	+--------------------------+----------------------------------------------------+
	//	| 0x8007000E E_OUTOFMEMORY | The method was unable to allocate required memory. |
	//	+--------------------------+----------------------------------------------------+
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].
	GetItem(context.Context, *GetItemRequest, ...dcerpc.CallOption) (*GetItemResponse, error)

	// The Count method retrieves the number of elements in the collection.
	//
	// 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.                           |
	//	+--------------------------+----------------------------------------------------+
	//	| 0x80004003 E_POINTER     | The method failed due to an invalid pointer.       |
	//	+--------------------------+----------------------------------------------------+
	//	| 0x8007000E E_OUTOFMEMORY | The method was unable to allocate required memory. |
	//	+--------------------------+----------------------------------------------------+
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].
	GetCount(context.Context, *GetCountRequest, ...dcerpc.CallOption) (*GetCountResponse, error)

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

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

IPCHCollection interface.

func NewPCHCollectionClient

func NewPCHCollectionClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (PCHCollectionClient, error)

type PCHCollectionServer

type PCHCollectionServer interface {

	// IDispatch base class.
	idispatch.DispatchServer

	// _NewEnum operation.
	Get_NewEnum(context.Context, *Get_NewEnumRequest) (*Get_NewEnumResponse, error)

	// The Item method retrieves an element.
	//
	// 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.                           |
	//	+--------------------------+----------------------------------------------------+
	//	| 0x80004003 E_POINTER     | The method failed due to an invalid pointer.       |
	//	+--------------------------+----------------------------------------------------+
	//	| 0x8007000E E_OUTOFMEMORY | The method was unable to allocate required memory. |
	//	+--------------------------+----------------------------------------------------+
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].
	GetItem(context.Context, *GetItemRequest) (*GetItemResponse, error)

	// The Count method retrieves the number of elements in the collection.
	//
	// 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.                           |
	//	+--------------------------+----------------------------------------------------+
	//	| 0x80004003 E_POINTER     | The method failed due to an invalid pointer.       |
	//	+--------------------------+----------------------------------------------------+
	//	| 0x8007000E E_OUTOFMEMORY | The method was unable to allocate required memory. |
	//	+--------------------------+----------------------------------------------------+
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].
	GetCount(context.Context, *GetCountRequest) (*GetCountResponse, error)
}

IPCHCollection server interface.

Jump to

Keyboard shortcuts

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