iprocessdump

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IProcessDump interface identifier 23c9dd26-2355-4fe2-84de-f779a238adbd
	ProcessDumpIID = &dcom.IID{Data1: 0x23c9dd26, Data2: 0x2355, Data3: 0x4fe2, Data4: []byte{0x84, 0xde, 0xf7, 0x79, 0xa2, 0x38, 0xad, 0xbd}}
	// Syntax UUID
	ProcessDumpSyntaxUUID = &uuid.UUID{TimeLow: 0x23c9dd26, TimeMid: 0x2355, TimeHiAndVersion: 0x4fe2, ClockSeqHiAndReserved: 0x84, ClockSeqLow: 0xde, Node: [6]uint8{0xf7, 0x79, 0xa2, 0x38, 0xad, 0xbd}}
	// Syntax ID
	ProcessDumpSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ProcessDumpSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/comt"
)

Functions

func NewProcessDumpServerHandle

func NewProcessDumpServerHandle(o ProcessDumpServer) dcerpc.ServerHandle

func ProcessDumpServerHandle

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

func RegisterProcessDumpServer

func RegisterProcessDumpServer(conn dcerpc.Conn, o ProcessDumpServer, opts ...dcerpc.Option)

Types

type DumpProcessRequest

type DumpProcessRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// bstrContainerID: The CurlyBraceGuidString (section 2.2.1) representation of a container
	// identifier for a distinguished container.
	ContainerID *oaut.String `idl:"name:bstrContainerID" json:"container_id"`
	// bstrDirectory: Either a path, in the convention of the server's file system, to a
	// location in which the file produced by process dump is to be written, or NULL to
	// indicate that the client wants the COMT server to write the file to an implementation-specific
	// default location.
	Directory *oaut.String `idl:"name:bstrDirectory" json:"directory"`
	// dwMaxFiles: The maximum number of process dump files associated with the conglomeration
	// of the instance container identified by the bstrContainerID parameter that the client
	// requests the COMT server to leave in the location specified by the bstrDirectory
	// parameter before the server begins deleting previously written files. A value of
	// 0x00000000 indicates that the COMT server is to use an implementation-specific default
	// limit.
	MaxFiles uint32 `idl:"name:dwMaxFiles" json:"max_files"`
}

DumpProcessRequest structure represents the DumpProcess operation request

func (*DumpProcessRequest) MarshalNDR

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

func (*DumpProcessRequest) UnmarshalNDR

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

type DumpProcessResponse

type DumpProcessResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pbstrDumpFile: A pointer to a variable that, upon successful completion, contains
	// a fully qualified path, in the convention of the server's file system, to the process
	// dump file written.
	DumpFile *oaut.String `idl:"name:pbstrDumpFile" json:"dump_file"`
	// Return: The DumpProcess return value.
	Return int32 `idl:"name:Return" json:"return"`
}

DumpProcessResponse structure represents the DumpProcess operation response

func (*DumpProcessResponse) MarshalNDR

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

func (*DumpProcessResponse) UnmarshalNDR

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

type IsSupportedRequest

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

IsSupportedRequest structure represents the IsSupported operation request

func (*IsSupportedRequest) MarshalNDR

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

func (*IsSupportedRequest) UnmarshalNDR

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

type IsSupportedResponse

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

IsSupportedResponse structure represents the IsSupported operation response

func (*IsSupportedResponse) MarshalNDR

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

func (*IsSupportedResponse) UnmarshalNDR

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

type ProcessDumpClient

type ProcessDumpClient interface {

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

	// This method is called by a client to determine whether or not the COMT server supports
	// process dump.
	//
	// This method has no parameters.
	//
	// Return Values: This method returns S_OK (0x00000000) if the COMT server supports
	// process dump, and MUST return S_FALSE (0x00000001) if not.
	IsSupported(context.Context, *IsSupportedRequest, ...dcerpc.CallOption) (*IsSupportedResponse, error)

	// This method is called by a client to request a process dump for the process containing
	// a particular instance container.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success and a failure
	// result (as specified in [MS-ERREF] section 2.1) on failure.
	DumpProcess(context.Context, *DumpProcessRequest, ...dcerpc.CallOption) (*DumpProcessResponse, error)

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

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

IProcessDump interface.

func NewProcessDumpClient

func NewProcessDumpClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ProcessDumpClient, error)

type ProcessDumpServer

type ProcessDumpServer interface {

	// IDispatch base class.
	idispatch.DispatchServer

	// This method is called by a client to determine whether or not the COMT server supports
	// process dump.
	//
	// This method has no parameters.
	//
	// Return Values: This method returns S_OK (0x00000000) if the COMT server supports
	// process dump, and MUST return S_FALSE (0x00000001) if not.
	IsSupported(context.Context, *IsSupportedRequest) (*IsSupportedResponse, error)

	// This method is called by a client to request a process dump for the process containing
	// a particular instance container.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success and a failure
	// result (as specified in [MS-ERREF] section 2.1) on failure.
	DumpProcess(context.Context, *DumpProcessRequest) (*DumpProcessResponse, error)
}

IProcessDump server interface.

Jump to

Keyboard shortcuts

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