Documentation ¶
Index ¶
- Variables
- func IrpcRemoteObjectServerHandle(ctx context.Context, o IrpcRemoteObjectServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewIrpcRemoteObjectServerHandle(o IrpcRemoteObjectServer) dcerpc.ServerHandle
- func RegisterIrpcRemoteObjectServer(conn dcerpc.Conn, o IrpcRemoteObjectServer, opts ...dcerpc.Option)
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type IrpcRemoteObjectClient
- type IrpcRemoteObjectServer
- type RemoteObject
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Syntax UUID IrpcRemoteObjectSyntaxUUID = &uuid.UUID{TimeLow: 0xae33069b, TimeMid: 0xa2a8, TimeHiAndVersion: 0x46ee, ClockSeqHiAndReserved: 0xa2, ClockSeqLow: 0x35, Node: [6]uint8{0xdd, 0xfd, 0x33, 0x9b, 0xe2, 0x81}} // Syntax ID IrpcRemoteObjectSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: IrpcRemoteObjectSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0} )
View Source
var (
// import guard
GoPackage = "pan"
)
Functions ¶
func NewIrpcRemoteObjectServerHandle ¶
func NewIrpcRemoteObjectServerHandle(o IrpcRemoteObjectServer) dcerpc.ServerHandle
func RegisterIrpcRemoteObjectServer ¶
func RegisterIrpcRemoteObjectServer(conn dcerpc.Conn, o IrpcRemoteObjectServer, opts ...dcerpc.Option)
Types ¶
type CreateRequest ¶
type CreateRequest struct { }
CreateRequest structure represents the IRPCRemoteObject_Create operation request
func (*CreateRequest) MarshalNDR ¶
func (*CreateRequest) UnmarshalNDR ¶
type CreateResponse ¶
type CreateResponse struct { // ppRemoteObj: MUST be a remote object context handle returned by the server. It MUST // be a non-NULL value. RemoteObject *RemoteObject `idl:"name:ppRemoteObj" json:"remote_object"` // Return: The IRPCRemoteObject_Create return value. Return int32 `idl:"name:Return" json:"return"` }
CreateResponse structure represents the IRPCRemoteObject_Create operation response
func (*CreateResponse) MarshalNDR ¶
func (*CreateResponse) UnmarshalNDR ¶
type DeleteRequest ¶
type DeleteRequest struct { // ppRemoteObj: MUST be the remote object to delete. The handle MUST have been returned // by the server in the ppRemoteObj output parameter of a prior call to IRPCRemoteObject_Create // and MUST NOT have been previously deleted. If this handle were previously registered // by a successful call to IRPCAsyncNotify_RegisterClient, then it MUST have been subsequently // unregistered by a call to IRPCAsyncNotify_UnregisterClient. It MUST NOT be NULL. RemoteObject *RemoteObject `idl:"name:ppRemoteObj" json:"remote_object"` }
DeleteRequest structure represents the IRPCRemoteObject_Delete operation request
func (*DeleteRequest) MarshalNDR ¶
func (*DeleteRequest) UnmarshalNDR ¶
type DeleteResponse ¶
type DeleteResponse struct { // ppRemoteObj: MUST be the remote object to delete. The handle MUST have been returned // by the server in the ppRemoteObj output parameter of a prior call to IRPCRemoteObject_Create // and MUST NOT have been previously deleted. If this handle were previously registered // by a successful call to IRPCAsyncNotify_RegisterClient, then it MUST have been subsequently // unregistered by a call to IRPCAsyncNotify_UnregisterClient. It MUST NOT be NULL. RemoteObject *RemoteObject `idl:"name:ppRemoteObj" json:"remote_object"` }
DeleteResponse structure represents the IRPCRemoteObject_Delete operation response
func (*DeleteResponse) MarshalNDR ¶
func (*DeleteResponse) UnmarshalNDR ¶
type IrpcRemoteObjectClient ¶
type IrpcRemoteObjectClient interface { // The IRPCRemoteObject_Create method creates a remote object on a server and returns // it to the client. // // Return Values: This method MUST return zero to indicate success, or an HRESULT error // value ([MS-ERREF] section 2.1.1) to indicate failure. The client MUST consider all // error return values fatal and report them to the higher-level caller. // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Create(context.Context, *CreateRequest, ...dcerpc.CallOption) (*CreateResponse, error) // The IRPCRemoteObject_Delete method destroys the specified remote object. // // Return Values: This method has no return values. // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Delete(context.Context, *DeleteRequest, ...dcerpc.CallOption) (*DeleteResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // Conn returns the client connection (unsafe) Conn() dcerpc.Conn }
IRPCRemoteObject interface.
type IrpcRemoteObjectServer ¶
type IrpcRemoteObjectServer interface { // The IRPCRemoteObject_Create method creates a remote object on a server and returns // it to the client. // // Return Values: This method MUST return zero to indicate success, or an HRESULT error // value ([MS-ERREF] section 2.1.1) to indicate failure. The client MUST consider all // error return values fatal and report them to the higher-level caller. // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Create(context.Context, *CreateRequest) (*CreateResponse, error) // The IRPCRemoteObject_Delete method destroys the specified remote object. // // Return Values: This method has no return values. // // Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying // RPC protocol [MS-RPCE]. Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) }
IRPCRemoteObject server interface.
type RemoteObject ¶
type RemoteObject dcetypes.ContextHandle
RemoteObject structure represents PRPCREMOTEOBJECT RPC structure.
func (*RemoteObject) ContextHandle ¶
func (o *RemoteObject) ContextHandle() *dcetypes.ContextHandle
func (*RemoteObject) MarshalNDR ¶
func (*RemoteObject) UnmarshalNDR ¶
Click to show internal directories.
Click to hide internal directories.