Generated from Manticore v1.1.5 • 201 packages. View on pkg.go.dev

functions

import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/4b324fc8-1670-01d3-1278-5a47bf6ee188/3.0/functions"

Package functions implements the method stubs of the srvsvc interface (4b324fc8-1670-01d3-1278-5a47bf6ee188 v3.0, [MS-SRVS]). Each opnum lives in its own NN_MethodName.go file; this file holds the small shapes and helpers shared across more than one method.

Index

func NetprNameCanonicalize

func NetprNameCanonicalize(rpc ndr.Invoker, serverName, name string, outbufLen, nameType, flags uint32) ([]uint16, error)

NetprNameCanonicalize calls NetprNameCanonicalize (opnum 34), converting a name to its canonical form ([MS-SRVS] 3.1.4.31).

func NetprNameCompare

func NetprNameCompare(rpc ndr.Invoker, serverName, name1, name2 string, nameType, flags uint32) (int32, error)

NetprNameCompare calls NetprNameCompare (opnum 35), comparing two names; it returns the signed comparison result (-1, 0, or 1) ([MS-SRVS] 3.1.4.32). The result is the RPC return value, so no status check is performed.

func NetprNameValidate

func NetprNameValidate(rpc ndr.Invoker, serverName, name string, nameType, flags uint32) error

NetprNameValidate calls NetprNameValidate (opnum 33), verifying that a name is valid for the given name type ([MS-SRVS] 3.1.4.30).

func NetprPathCanonicalize

func NetprPathCanonicalize(rpc ndr.Invoker, serverName, pathName string, outbufLen uint32, prefix string, pathType, flags uint32) ([]byte, uint32, error)

NetprPathCanonicalize calls NetprPathCanonicalize (opnum 31), converting a path name to its canonical form ([MS-SRVS] 3.1.4.27).

func NetprPathCompare

func NetprPathCompare(rpc ndr.Invoker, serverName, pathName1, pathName2 string, pathType, flags uint32) (int32, error)

NetprPathCompare calls NetprPathCompare (opnum 32), comparing two path names; it returns the signed comparison result (-1, 0, or 1) ([MS-SRVS] 3.1.4.28). The result is the RPC return value, so no status check is performed.

func NetprPathType

func NetprPathType(rpc ndr.Invoker, serverName, pathName string, flags uint32) (uint32, error)

NetprPathType calls NetprPathType (opnum 30), checking a path name’s syntactic type ([MS-SRVS] 3.1.4.26).

func NetrConnectionEnum

func NetrConnectionEnum(rpc ndr.Invoker, serverName, qualifier string, info structures.CONNECT_ENUM_STRUCT, preferedMaximumLength, resumeHandle uint32) (structures.CONNECT_ENUM_STRUCT, uint32, uint32, error)

NetrConnectionEnum calls NetrConnectionEnum (opnum 8), enumerating the connections made to a share or by a computer ([MS-SRVS] 3.1.4.1). The enumeration is stateful: pass the returned resume handle back on the next call to continue, starting from 0. ERROR_MORE_DATA indicates more pages remain and is not treated as an error; the returned container, total, and resume handle are valid in that case.

func NetrDfsCreateExitPoint

func NetrDfsCreateExitPoint(rpc ndr.Invoker, serverName string, uid guid.GUID, prefix string, typ, shortPrefixLen uint32) ([]uint16, error)

NetrDfsCreateExitPoint calls NetrDfsCreateExitPoint (opnum 48), creating a DFS exit point ([MS-SRVS] 3.1.4.48).

func NetrDfsCreateLocalPartition

func NetrDfsCreateLocalPartition(rpc ndr.Invoker, serverName, shareName string, entryUid guid.GUID, entryPrefix, shortName string, relationInfo structures.NET_DFS_ENTRY_ID_CONTAINER, force int32) error

NetrDfsCreateLocalPartition calls NetrDfsCreateLocalPartition (opnum 44), creating a local DFS partition ([MS-SRVS] 3.1.4.45).

func NetrDfsDeleteExitPoint

func NetrDfsDeleteExitPoint(rpc ndr.Invoker, serverName string, uid guid.GUID, prefix string, typ uint32) error

NetrDfsDeleteExitPoint calls NetrDfsDeleteExitPoint (opnum 49), deleting a DFS exit point ([MS-SRVS] 3.1.4.49).

func NetrDfsDeleteLocalPartition

func NetrDfsDeleteLocalPartition(rpc ndr.Invoker, serverName string, uid guid.GUID, prefix string) error

NetrDfsDeleteLocalPartition calls NetrDfsDeleteLocalPartition (opnum 45), deleting a local DFS partition ([MS-SRVS] 3.1.4.46).

func NetrDfsFixLocalVolume

func NetrDfsFixLocalVolume(rpc ndr.Invoker, serverName, volumeName string, entryType, serviceType uint32, stgId string, entryUid guid.GUID, entryPrefix string, relationInfo structures.NET_DFS_ENTRY_ID_CONTAINER, createDisposition uint32) error

NetrDfsFixLocalVolume calls NetrDfsFixLocalVolume (opnum 51), repairing the local DFS volume state ([MS-SRVS] 3.1.4.51).

func NetrDfsGetVersion

func NetrDfsGetVersion(rpc ndr.Invoker, serverName string) (uint32, error)

NetrDfsGetVersion calls NetrDfsGetVersion (opnum 43), checking whether the server is a DFS server and returning its DFS version ([MS-SRVS] 3.1.4.44).

func NetrDfsManagerReportSiteInfo

func NetrDfsManagerReportSiteInfo(rpc ndr.Invoker, serverName string, ppSiteInfo *structures.DFS_SITELIST_INFO) (*structures.DFS_SITELIST_INFO, error)

NetrDfsManagerReportSiteInfo calls NetrDfsManagerReportSiteInfo (opnum 52), retrieving the list of sites known to the DFS server ([MS-SRVS] 3.1.4.52).

func NetrDfsModifyPrefix

func NetrDfsModifyPrefix(rpc ndr.Invoker, serverName string, uid guid.GUID, prefix string) error

NetrDfsModifyPrefix calls NetrDfsModifyPrefix (opnum 50), changing the prefix of a DFS entry ([MS-SRVS] 3.1.4.50).

func NetrDfsSetLocalVolumeState

func NetrDfsSetLocalVolumeState(rpc ndr.Invoker, serverName string, uid guid.GUID, prefix string, state uint32) error

NetrDfsSetLocalVolumeState calls NetrDfsSetLocalVolumeState (opnum 46), setting the state of a local DFS volume ([MS-SRVS] 3.1.4.47).

func NetrFileClose

func NetrFileClose(rpc ndr.Invoker, serverName string, fileId uint32) error

NetrFileClose calls NetrFileClose (opnum 11), forcing the open file/resource identified by FileId closed ([MS-SRVS] 3.1.4.4).

func NetrFileEnum

func NetrFileEnum(rpc ndr.Invoker, serverName, basePath, userName string, info structures.FILE_ENUM_STRUCT, preferedMaximumLength, resumeHandle uint32) (structures.FILE_ENUM_STRUCT, uint32, uint32, error)

NetrFileEnum calls NetrFileEnum (opnum 9), enumerating the open files/resources on the server, optionally filtered by base path and user name ([MS-SRVS] 3.1.4.2). The enumeration is stateful: pass the returned resume handle back on the next call to continue, starting from 0. ERROR_MORE_DATA indicates more pages remain and is not treated as an error; the returned container, total, and resume handle are valid then.

func NetrFileGetInfo

func NetrFileGetInfo(rpc ndr.Invoker, serverName string, fileId, level uint32) (structures.FILE_INFO, error)

NetrFileGetInfo calls NetrFileGetInfo (opnum 10), returning information about a single open file/resource identified by FileId at the requested level ([MS-SRVS] 3.1.4.3).

func NetrRemoteTOD

func NetrRemoteTOD(rpc ndr.Invoker, serverName string) (*structures.TIME_OF_DAY_INFO, error)

NetrRemoteTOD calls NetrRemoteTOD (opnum 28), retrieving the time of day on the server ([MS-SRVS] 3.1.4.24).

func NetrServerAliasAdd

func NetrServerAliasAdd(rpc ndr.Invoker, serverName string, level uint32, info structures.SERVER_ALIAS_INFO) error

NetrServerAliasAdd calls NetrServerAliasAdd (opnum 54), creating an alias name for the server ([MS-SRVS] 3.1.4.28).

func NetrServerAliasDel

func NetrServerAliasDel(rpc ndr.Invoker, serverName string, level uint32, info structures.SERVER_ALIAS_INFO) error

NetrServerAliasDel calls NetrServerAliasDel (opnum 56), deleting an alias name from the server ([MS-SRVS] 3.1.4.30).

func NetrServerAliasEnum

func NetrServerAliasEnum(rpc ndr.Invoker, serverName string, info structures.SERVER_ALIAS_ENUM_STRUCT, preferedMaximumLength, resumeHandle uint32) (structures.SERVER_ALIAS_ENUM_STRUCT, uint32, uint32, error)

NetrServerAliasEnum calls NetrServerAliasEnum (opnum 55), enumerating the alias names configured on the server ([MS-SRVS] 3.1.4.29). The enumeration is stateful: pass the returned resume handle back to continue, starting from 0. ERROR_MORE_DATA indicates more pages remain and is not treated as an error.

func NetrServerDiskEnum

func NetrServerDiskEnum(rpc ndr.Invoker, serverName string, level uint32, diskInfo structures.DISK_ENUM_CONTAINER, preferedMaximumLength, resumeHandle uint32) (structures.DISK_ENUM_CONTAINER, uint32, uint32, error)

NetrServerDiskEnum calls NetrServerDiskEnum (opnum 23), retrieving a list of disk drives on the server ([MS-SRVS] 3.1.4.19). The enumeration is stateful: pass the returned resume handle back to continue, starting from 0. ERROR_MORE_DATA indicates more pages remain and is not treated as an error.

func NetrServerGetInfo

func NetrServerGetInfo(rpc ndr.Invoker, serverName string, level uint32) (structures.SERVER_INFO, error)

NetrServerGetInfo calls NetrServerGetInfo (opnum 21), retrieving configuration information for the specified server ([MS-SRVS] 3.1.4.17).

func NetrServerSetInfo

func NetrServerSetInfo(rpc ndr.Invoker, serverName string, level uint32, serverInfo structures.SERVER_INFO, parmErr uint32) (uint32, error)

NetrServerSetInfo calls NetrServerSetInfo (opnum 22), setting the server’s configuration parameters ([MS-SRVS] 3.1.4.18). On ERROR_INVALID_PARAMETER the returned parameter-error index identifies the offending field.

func NetrServerStatisticsGet

func NetrServerStatisticsGet(rpc ndr.Invoker, serverName, service string, level, options uint32) (*structures.STAT_SERVER_0, error)

NetrServerStatisticsGet calls NetrServerStatisticsGet (opnum 24), retrieving the operating statistics for the server service ([MS-SRVS] 3.1.4.20).

func NetrServerTransportAdd

func NetrServerTransportAdd(rpc ndr.Invoker, serverName string, level uint32, buffer structures.SERVER_TRANSPORT_INFO_0) error

NetrServerTransportAdd calls NetrServerTransportAdd (opnum 25), binding the server to a transport protocol ([MS-SRVS] 3.1.4.21).

func NetrServerTransportAddEx

func NetrServerTransportAddEx(rpc ndr.Invoker, serverName string, level uint32, buffer structures.TRANSPORT_INFO) error

NetrServerTransportAddEx calls NetrServerTransportAddEx (opnum 41), binding the server to a transport protocol with extended (leveled) information ([MS-SRVS] 3.1.4.25).

func NetrServerTransportDel

func NetrServerTransportDel(rpc ndr.Invoker, serverName string, level uint32, buffer structures.SERVER_TRANSPORT_INFO_0) error

NetrServerTransportDel calls NetrServerTransportDel (opnum 27), unbinding the server from a transport protocol ([MS-SRVS] 3.1.4.23).

func NetrServerTransportDelEx

func NetrServerTransportDelEx(rpc ndr.Invoker, serverName string, level uint32, buffer structures.TRANSPORT_INFO) error

NetrServerTransportDelEx calls NetrServerTransportDelEx (opnum 53), unbinding the server from a transport protocol with extended (leveled) information ([MS-SRVS] 3.1.4.26).

func NetrServerTransportEnum

func NetrServerTransportEnum(rpc ndr.Invoker, serverName string, info structures.SERVER_XPORT_ENUM_STRUCT, preferedMaximumLength, resumeHandle uint32) (structures.SERVER_XPORT_ENUM_STRUCT, uint32, uint32, error)

NetrServerTransportEnum calls NetrServerTransportEnum (opnum 26), enumerating the transport protocols the server is bound to ([MS-SRVS] 3.1.4.22). The enumeration is stateful: pass the returned resume handle back to continue, starting from 0. ERROR_MORE_DATA indicates more pages remain and is not treated as an error.

func NetrSessionDel

func NetrSessionDel(rpc ndr.Invoker, serverName, clientName, userName string) error

NetrSessionDel calls NetrSessionDel (opnum 13), ending the network session(s) between the server and the named client/user ([MS-SRVS] 3.1.4.6).

func NetrSessionEnum

func NetrSessionEnum(rpc ndr.Invoker, serverName, clientName, userName string, info structures.SESSION_ENUM_STRUCT, preferedMaximumLength, resumeHandle uint32) (structures.SESSION_ENUM_STRUCT, uint32, uint32, error)

NetrSessionEnum calls NetrSessionEnum (opnum 12), enumerating the sessions established on the server, optionally filtered by client and user name ([MS-SRVS] 3.1.4.5). The enumeration is stateful: pass the returned resume handle back on the next call to continue, starting from 0. ERROR_MORE_DATA indicates more pages remain and is not treated as an error; the returned container, total, and resume handle are valid then.

func NetrShareAdd

func NetrShareAdd(rpc ndr.Invoker, serverName string, level ndr.DWORD, infoStruct structures.SHARE_INFO, parmErr *ndr.DWORD) (*ndr.DWORD, error)

NetrShareAdd calls NetrShareAdd (opnum 14), sharing a resource on the server ([MS-SRVS] 3.1.4.7). The union discriminant is set to level before marshalling.

func NetrShareCheck

func NetrShareCheck(rpc ndr.Invoker, serverName string, device string) (ndr.DWORD, error)

NetrShareCheck calls NetrShareCheck (opnum 20), checking whether a device is shared ([MS-SRVS] 3.1.4.14).

func NetrShareDel

func NetrShareDel(rpc ndr.Invoker, serverName string, netName string, reserved ndr.DWORD) error

NetrShareDel calls NetrShareDel (opnum 18), deleting a share from the server ([MS-SRVS] 3.1.4.12).

func NetrShareDelCommit

func NetrShareDelCommit(rpc ndr.Invoker, contextHandle structures.SHARE_DEL_HANDLE) (structures.SHARE_DEL_HANDLE, error)

NetrShareDelCommit calls NetrShareDelCommit (opnum 38), completing the two-phase share delete started by NetrShareDelStart ([MS-SRVS] 3.1.4.17).

func NetrShareDelEx

func NetrShareDelEx(rpc ndr.Invoker, serverName string, level ndr.DWORD, shareInfo structures.SHARE_INFO) error

NetrShareDelEx calls NetrShareDelEx (opnum 57), deleting a share identified by the supplied share-info structure ([MS-SRVS] 3.1.4.18). The union discriminant is set to level before marshalling.

func NetrShareDelStart

func NetrShareDelStart(rpc ndr.Invoker, serverName string, netName string, reserved ndr.DWORD) (structures.SHARE_DEL_HANDLE, error)

NetrShareDelStart calls NetrShareDelStart (opnum 37), beginning a two-phase share delete and returning a context handle consumed by NetrShareDelCommit ([MS-SRVS] 3.1.4.16).

func NetrShareDelSticky

func NetrShareDelSticky(rpc ndr.Invoker, serverName string, netName string, reserved ndr.DWORD) error

NetrShareDelSticky calls NetrShareDelSticky (opnum 19), marking a sticky share as non-persistent so it is not recreated at restart ([MS-SRVS] 3.1.4.13).

func NetrShareEnum

func NetrShareEnum(rpc ndr.Invoker, serverName string, infoStruct structures.SHARE_ENUM_STRUCT, preferedMaximumLength ndr.DWORD, resumeHandle *ndr.DWORD) (structures.SHARE_ENUM_STRUCT, ndr.DWORD, *ndr.DWORD, error)

NetrShareEnum calls NetrShareEnum (opnum 15), enumerating shares on the server ([MS-SRVS] 3.1.4.8).

func NetrShareEnumSticky

func NetrShareEnumSticky(rpc ndr.Invoker, serverName string, infoStruct structures.SHARE_ENUM_STRUCT, preferedMaximumLength ndr.DWORD, resumeHandle *ndr.DWORD) (structures.SHARE_ENUM_STRUCT, ndr.DWORD, *ndr.DWORD, error)

NetrShareEnumSticky calls NetrShareEnumSticky (opnum 36), enumerating the sticky shares on the server ([MS-SRVS] 3.1.4.15).

func NetrShareGetInfo

func NetrShareGetInfo(rpc ndr.Invoker, serverName string, netName string, level ndr.DWORD) (structures.SHARE_INFO, error)

NetrShareGetInfo calls NetrShareGetInfo (opnum 16), retrieving information about a share ([MS-SRVS] 3.1.4.10).

func NetrShareSetInfo

func NetrShareSetInfo(rpc ndr.Invoker, serverName string, netName string, level ndr.DWORD, shareInfo structures.SHARE_INFO, parmErr *ndr.DWORD) (*ndr.DWORD, error)

NetrShareSetInfo calls NetrShareSetInfo (opnum 17), setting information about a share ([MS-SRVS] 3.1.4.11). The union discriminant is set to level before marshalling.

func NetrpGetFileSecurity

func NetrpGetFileSecurity(rpc ndr.Invoker, serverName, shareName, lpFileName string, requestedInformation uint32) (*structures.ADT_SECURITY_DESCRIPTOR, error)

NetrpGetFileSecurity calls NetrpGetFileSecurity (opnum 39), retrieving the security descriptor of a file or directory on a share ([MS-SRVS] 3.1.4.40).

func NetrpSetFileSecurity

func NetrpSetFileSecurity(rpc ndr.Invoker, serverName, shareName, lpFileName string, securityInformation uint32, securityDescriptor structures.ADT_SECURITY_DESCRIPTOR) error

NetrpSetFileSecurity calls NetrpSetFileSecurity (opnum 40), setting the security descriptor of a file or directory on a share ([MS-SRVS] 3.1.4.41).