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

rpcinterface_811109bfa4e111d1ab5400a0c91e9b45_1_0

import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/811109bf-a4e1-11d1-ab54-00a0c91e9b45/1.0"

Package rpcinterface_811109bfa4e111d1ab5400a0c91e9b45_1_0 is the descriptor for the winsi2 RPC interface, abstract syntax 811109bf-a4e1-11d1-ab54-00a0c91e9b45 version 1.0 ([MS-RAIW]).

Generated by tools/idlgen (descriptor phase) from the IDL, then reviewed: the PipeName, the status-code table, and doc comments are not derivable from the IDL and must be confirmed by hand (see the TODO markers).

Index

Constants

Opnums for the on-the-wire methods.

const (
    OpnumR_WinsTombstoneDbRecs uint16 = 0
    OpnumR_WinsCheckAccess     uint16 = 1
)

Status codes returned by this interface. Both winsi2 methods return a Win32 error code ([MS-ERREF] section 2.2): 0 (ERROR_SUCCESS) on success, otherwise a generic system error or one of the WINS-specific codes (0x00000FA0-0x00000FA6).

const (
    StatusSuccess uint32 = 0x00000000 // ERROR_SUCCESS

    ErrorAccessDenied     uint32 = 0x00000005 // ERROR_ACCESS_DENIED
    ErrorInvalidParameter uint32 = 0x00000057 // ERROR_INVALID_PARAMETER

    // WINS-specific error codes ([MS-ERREF] section 2.2, winerror.h 4000-4006).
    ErrorWinsInternal      uint32 = 0x00000FA0 // ERROR_WINS_INTERNAL
    ErrorCanNotDelLocalWin uint32 = 0x00000FA1 // ERROR_CAN_NOT_DEL_LOCAL_WINS
    ErrorStaticInit        uint32 = 0x00000FA2 // ERROR_STATIC_INIT
    ErrorIncBackup         uint32 = 0x00000FA3 // ERROR_INC_BACKUP
    ErrorFullBackup        uint32 = 0x00000FA4 // ERROR_FULL_BACKUP
    ErrorRecNonExistent    uint32 = 0x00000FA5 // ERROR_REC_NON_EXISTENT
    ErrorRplNotAllowed     uint32 = 0x00000FA6 // ERROR_RPL_NOT_ALLOWED
)

PipeName is the IPC$-relative named pipe for the winsi2 interface. WINS registers a single named pipe, \pipe\WinsPipe, shared with the winsif interface ([MS-RAIW] 2.1, Standards Assignments).

const PipeName = `\WinsPipe`

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{
    OpnumR_WinsTombstoneDbRecs: "R_WinsTombstoneDbRecs",
    OpnumR_WinsCheckAccess:     "R_WinsCheckAccess",
}

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 winsi2 abstract syntax identifier: 811109bf-a4e1-11d1-ab54-00a0c91e9b45, version 1.0.

Subpackages