Generated from Manticore v1.1.6 • 388 packages. View on pkg.go.dev

functions

import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/2f5f6520-ca46-1067-b319-00dd010662da/1.0/functions"

Index

func ClientAttach

func ClientAttach(rpc ndr.Invoker, lProcessID int32, pszDomainUser ndr.WSTR, pszMachine ndr.WSTR) (PphContext mstrp.PCONTEXT_HANDLE_TYPE, PhAsyncEventsEvent int32, err error)

ClientAttach calls ClientAttach (opnum 0) ([MS-TRP] 3.2.4.1). The client uses it to establish a session with the telephony server: lProcessID identifies the client process (0xFFFFFFFF / 0xFFFFFFFD select the reduced-privilege forms described by the spec), pszDomainUser is the caller’s domain\user, and pszMachine the client machine name. On success the server returns the tapsrv context handle plus phAsyncEventsEvent, the event value used to signal asynchronous completions. The method returns 0 on success or a nonzero error code.

func ClientDetach

func ClientDetach(rpc ndr.Invoker, pphContext mstrp.PCONTEXT_HANDLE_TYPE) (PphContext mstrp.PCONTEXT_HANDLE_TYPE, err error)

ClientDetach calls ClientDetach (opnum 2) ([MS-TRP] 3.2.4.3). It closes the tapsrv session identified by the context handle and frees the server-side state. The server returns the handle nulled out (IsZero); transport-level failures surface through err.

func ClientRequest

func ClientRequest(rpc ndr.Invoker, phContext mstrp.PCONTEXT_HANDLE_TYPE, pBuffer []uint8, lNeededSize ndr.DWORD, plUsedSize ndr.DWORD) (PBuffer []uint8, PlUsedSize ndr.DWORD, err error)

ClientRequest calls ClientRequest (opnum 1) ([MS-TRP] 3.2.4.2). The client sends a packed TAPI request in pBuffer; the server processes it and returns the (possibly updated) buffer in place. lNeededSize is the total capacity of pBuffer and plUsedSize the number of valid bytes; both are [in,out]. The returned buffer and used size are reported back to the caller. Transport-level failures surface through err; the TAPI result itself is encoded within the returned buffer.