rpcinterface_45f52c287f9f101ab52b08002b2efabe_1_0
import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/45f52c28-7f9f-101a-b52b-08002b2efabe/1.0"
Package rpcinterface_45f52c287f9f101ab52b08002b2efabe_1_0 is the descriptor for the winsif RPC interface, abstract syntax 45f52c28-7f9f-101a-b52b-08002b2efabe 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_WinsRecordAction uint16 = 0
OpnumR_WinsStatus uint16 = 1
OpnumR_WinsTrigger uint16 = 2
OpnumR_WinsDoStaticInit uint16 = 3
OpnumR_WinsDoScavenging uint16 = 4
OpnumR_WinsGetDbRecs uint16 = 5
OpnumR_WinsTerm uint16 = 6
OpnumR_WinsBackup uint16 = 7
OpnumR_WinsDelDbRecs uint16 = 8
OpnumR_WinsPullRange uint16 = 9
OpnumR_WinsSetPriorityClass uint16 = 10
OpnumR_WinsResetCounters uint16 = 11
OpnumR_WinsWorkerThdUpd uint16 = 12
OpnumR_WinsGetNameAndAdd uint16 = 13
OpnumR_WinsGetBrowserNames_Old uint16 = 14
OpnumR_WinsDeleteWins uint16 = 15
OpnumR_WinsSetFlags uint16 = 16
OpnumR_WinsGetBrowserNames uint16 = 17
OpnumR_WinsGetDbRecsByName uint16 = 18
OpnumR_WinsStatusNew uint16 = 19
OpnumR_WinsStatusWHdl uint16 = 20
OpnumR_WinsDoScavengingNew uint16 = 21
)
Status codes returned by this interface. Every winsif method returns 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 winsif interface. WINS registers a single named pipe, \pipe\WinsPipe, shared with the winsi2 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_WinsRecordAction: "R_WinsRecordAction",
OpnumR_WinsStatus: "R_WinsStatus",
OpnumR_WinsTrigger: "R_WinsTrigger",
OpnumR_WinsDoStaticInit: "R_WinsDoStaticInit",
OpnumR_WinsDoScavenging: "R_WinsDoScavenging",
OpnumR_WinsGetDbRecs: "R_WinsGetDbRecs",
OpnumR_WinsTerm: "R_WinsTerm",
OpnumR_WinsBackup: "R_WinsBackup",
OpnumR_WinsDelDbRecs: "R_WinsDelDbRecs",
OpnumR_WinsPullRange: "R_WinsPullRange",
OpnumR_WinsSetPriorityClass: "R_WinsSetPriorityClass",
OpnumR_WinsResetCounters: "R_WinsResetCounters",
OpnumR_WinsWorkerThdUpd: "R_WinsWorkerThdUpd",
OpnumR_WinsGetNameAndAdd: "R_WinsGetNameAndAdd",
OpnumR_WinsGetBrowserNames_Old: "R_WinsGetBrowserNames_Old",
OpnumR_WinsDeleteWins: "R_WinsDeleteWins",
OpnumR_WinsSetFlags: "R_WinsSetFlags",
OpnumR_WinsGetBrowserNames: "R_WinsGetBrowserNames",
OpnumR_WinsGetDbRecsByName: "R_WinsGetDbRecsByName",
OpnumR_WinsStatusNew: "R_WinsStatusNew",
OpnumR_WinsStatusWHdl: "R_WinsStatusWHdl",
OpnumR_WinsDoScavengingNew: "R_WinsDoScavengingNew",
}
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 winsif abstract syntax identifier: 45f52c28-7f9f-101a-b52b-08002b2efabe, version 1.0.