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

rpcinterface_a8e0653c27444389a61d7373df8b2292_1_0

import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/a8e0653c-2744-4389-a61d-7373df8b2292/1.0"

Package rpcinterface_a8e0653c27444389a61d7373df8b2292_1_0 is the descriptor for the FileServerVssAgent RPC interface, abstract syntax a8e0653c-2744-4389-a61d-7373df8b2292 version 1.0 ([MS-FSRVP]).

This package holds only the interface-level descriptor (abstract syntax, transport endpoint, opnums, opnum<->name maps, status codes). The PipeName (“FssagentRpc”, [MS-FSRVP] 2.1) and the status-code table ([MS-FSRVP] 2.2.4) are not carried by the IDL and were filled in from the specification. NDR wire types live in windows/protocols/ms-fsrvp and method stubs in functions; both depend on this package, never the reverse.

Index

Constants

Opnums for the on-the-wire methods.

const (
    OpnumGetSupportedVersion           uint16 = 0
    OpnumSetContext                    uint16 = 1
    OpnumStartShadowCopySet            uint16 = 2
    OpnumAddToShadowCopySet            uint16 = 3
    OpnumCommitShadowCopySet           uint16 = 4
    OpnumExposeShadowCopySet           uint16 = 5
    OpnumRecoveryCompleteShadowCopySet uint16 = 6
    OpnumAbortShadowCopySet            uint16 = 7
    OpnumIsPathSupported               uint16 = 8
    OpnumIsPathShadowCopied            uint16 = 9
    OpnumGetShareMapping               uint16 = 10
    OpnumDeleteShareMapping            uint16 = 11
    OpnumPrepareShadowCopySet          uint16 = 12
)

Status codes. FSRVP methods return an HRESULT/error code: ZERO (0x00000000) on success, common [MS-ERREF] HRESULTs, or the FSRVP-specific codes below ([MS-FSRVP] section 2.2.4 Error Codes).

const (
    StatusSuccess uint32 = 0x00000000

    // Common [MS-ERREF] HRESULTs referenced by FSRVP method processing rules.
    ErrorInvalidArg   uint32 = 0x80070057 // E_INVALIDARG
    ErrorAccessDenied uint32 = 0x80070005 // E_ACCESSDENIED
    ErrorOutOfMemory  uint32 = 0x8007000E // E_OUTOFMEMORY

    // FSRVP-specific error codes ([MS-FSRVP] 2.2.4).
    FsrvpEBadState                uint32 = 0x80042301 // FSRVP_E_BAD_STATE
    FsrvpENotSupported            uint32 = 0x8004230C // FSRVP_E_NOT_SUPPORTED
    FsrvpEObjectAlreadyExists     uint32 = 0x8004230D // FSRVP_E_OBJECT_ALREADY_EXISTS
    FsrvpEObjectNotFound          uint32 = 0x80042308 // FSRVP_E_OBJECT_NOT_FOUND
    FsrvpEShadowCopySetInProgress uint32 = 0x80042316 // FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS
    FsrvpEUnsupportedContext      uint32 = 0x8004231B // FSRVP_E_UNSUPPORTED_CONTEXT
    FsrvpEShadowcopysetIdMismatch uint32 = 0x80042501 // FSRVP_E_SHADOWCOPYSET_ID_MISMATCH
    FsrvpEWaitTimeout             uint32 = 0x00000102 // FSRVP_E_WAIT_TIMEOUT
    FsrvpEWaitFailed              uint32 = 0xFFFFFFFF // FSRVP_E_WAIT_FAILED
)

PipeName is the IPC$-relative named pipe for the FileServerVssAgent interface ([MS-FSRVP] section 2.1 Transport: the “FssagentRpc” named pipe over ncacn_np).

const PipeName = `\FssagentRpc`

Variables

NameToOpnum is the reverse of OpnumToName, built at init so the two never drift.

var NameToOpnum = func() map[string]uint16 {
    m := make(map[string]uint16, len(OpnumToName))
    for op, name := range OpnumToName {
        m[name] = op
    }
    return m
}()

OpnumToName maps each on-the-wire opnum to its method name; the single source of truth.

var OpnumToName = map[uint16]string{
    OpnumGetSupportedVersion:           "GetSupportedVersion",
    OpnumSetContext:                    "SetContext",
    OpnumStartShadowCopySet:            "StartShadowCopySet",
    OpnumAddToShadowCopySet:            "AddToShadowCopySet",
    OpnumCommitShadowCopySet:           "CommitShadowCopySet",
    OpnumExposeShadowCopySet:           "ExposeShadowCopySet",
    OpnumRecoveryCompleteShadowCopySet: "RecoveryCompleteShadowCopySet",
    OpnumAbortShadowCopySet:            "AbortShadowCopySet",
    OpnumIsPathSupported:               "IsPathSupported",
    OpnumIsPathShadowCopied:            "IsPathShadowCopied",
    OpnumGetShareMapping:               "GetShareMapping",
    OpnumDeleteShareMapping:            "DeleteShareMapping",
    OpnumPrepareShadowCopySet:          "PrepareShadowCopySet",
}

func StatusString

func StatusString(status uint32) string

StatusString returns a mnemonic for the documented status codes, otherwise the hex value.

func SyntaxID

func SyntaxID() syntax.SyntaxID

SyntaxID returns the FileServerVssAgent abstract syntax identifier: a8e0653c-2744-4389-a61d-7373df8b2292, version 1.0.

Subpackages