rpcinterface_8fb6d884238811d08c3500c04fda2795_4_1
import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/8fb6d884-2388-11d0-8c35-00c04fda2795/4.1"
Package rpcinterface_8fb6d884238811d08c3500c04fda2795_4_1 is the descriptor for the W32Time RPC interface, abstract syntax 8fb6d884-2388-11d0-8c35-00c04fda2795 version 4.1 ([MS-W32T]).
This package holds only the interface-level descriptor (abstract syntax, transport endpoints, opnums, opnum<->name maps, and the Win32 status-code table). The NDR types live in windows/protocols/ms-w32t and the method stubs in the functions subpackage; both depend on this package, never the reverse.
Index
Constants
PipeName is the IPC$-relative named pipe for the W32Time interface ([MS-W32T] section 2.1). \W32TIME serves the unauthenticated RPC interface; the authenticated interface is served over \W32TIME_ALT (RPC negotiates authentication on the client’s behalf, [MS-RPCE] sections 2.2.2.11 and 5.1.1). Both reach this same abstract syntax.
const (
PipeName = `\W32TIME`
PipeNameAlt = `\W32TIME_ALT`
)
Opnums for the on-the-wire methods.
const (
OpnumW32TimeSync uint16 = 0
OpnumW32TimeGetNetlogonServiceBits uint16 = 1
OpnumW32TimeQueryProviderStatus uint16 = 2
OpnumW32TimeQuerySource uint16 = 3
OpnumW32TimeQueryProviderConfiguration uint16 = 4
OpnumW32TimeQueryConfiguration uint16 = 5
OpnumW32TimeQueryStatus uint16 = 6
OpnumW32TimeLog uint16 = 7
)
Status codes returned by this interface. Every W32Time method returns a Win32 error code as its RPC return value ([MS-W32T] section 3.2.4): 0 (ERROR_SUCCESS) on success, otherwise one of the standard Win32 codes below ([MS-ERREF] section 2.2).
const (
StatusSuccess uint32 = 0x00000000 // ERROR_SUCCESS
ErrorFileNotFound uint32 = 0x00000002 // ERROR_FILE_NOT_FOUND
ErrorAccessDenied uint32 = 0x00000005 // ERROR_ACCESS_DENIED
ErrorNotEnoughMemory uint32 = 0x00000008 // ERROR_NOT_ENOUGH_MEMORY
ErrorInvalidData uint32 = 0x0000000D // ERROR_INVALID_DATA
ErrorNotSupported uint32 = 0x00000032 // ERROR_NOT_SUPPORTED
ErrorInvalidParameter uint32 = 0x00000057 // ERROR_INVALID_PARAMETER
ErrorInsufficientBuffer uint32 = 0x0000007A // ERROR_INSUFFICIENT_BUFFER
ErrorServiceNotActive uint32 = 0x00000426 // ERROR_SERVICE_NOT_ACTIVE
ErrorTimeout uint32 = 0x000005B4 // ERROR_TIMEOUT
)
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{
OpnumW32TimeSync: "W32TimeSync",
OpnumW32TimeGetNetlogonServiceBits: "W32TimeGetNetlogonServiceBits",
OpnumW32TimeQueryProviderStatus: "W32TimeQueryProviderStatus",
OpnumW32TimeQuerySource: "W32TimeQuerySource",
OpnumW32TimeQueryProviderConfiguration: "W32TimeQueryProviderConfiguration",
OpnumW32TimeQueryConfiguration: "W32TimeQueryConfiguration",
OpnumW32TimeQueryStatus: "W32TimeQueryStatus",
OpnumW32TimeLog: "W32TimeLog",
}
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 W32Time abstract syntax identifier: 8fb6d884-2388-11d0-8c35-00c04fda2795, version 4.1.