4.9.8. srvsvc interface

The srvsvc interface is used to manage the lanmanserver service.

IDL (Interface Definition Language) for the srvsvc interface is available in Samba 4 [59].

Table 4.23. srvsvc operations

InterfaceOperation numberOperation nameWindows API
4b324fc8-1670-01d3-1278-5a47bf6ee188 v3.0: srvsvc   
 0x00NetrCharDevEnumNetCharDevEnum
 0x01NetrCharDevGetInfoNetCharDevGetInfo
 0x02NetrCharDevControlNetCharDevControl
 0x03NetrCharDevQEnumNetCharDevQEnum
 0x04NetrCharDevQGetInfoNetCharDevQGetInfo
 0x05NetrCharDevQSetInfoNetCharDevQSetInfo
 0x06NetrCharDevQPurgeNetCharDevQPurge
 0x07NetrCharDevQPurgeSelfNetCharDevQPurgeSelf
 0x08NetrConnectionEnumNetConnectionEnum
 0x09NetrFileEnumNetFileEnum
 0x0aNetrFileGetInfoNetFileGetInfo
 0x0bNetrFileCloseNetFileClose
 0x0cNetrSessionEnumNetSessionEnum
 0x0dNetrSessionDelNetSessionDel
 0x0eNetrShareAddNetShareAdd
 0x0fNetrShareEnumNetShareEnum
 0x10NetrShareGetInfoNetShareGetInfo
 0x11NetrShareSetInfoNetShareSetInfo
 0x12NetrShareDelNetShareDel
 0x13NetrShareDelStickyNetShareDel
 0x14NetrShareCheckNetShareCheck
 0x15NetrServerGetInfoNetServerGetInfo
 0x16NetrServerSetInfoNetServerSetInfo
 0x17NetrServerDiskEnumNetServerDiskEnum
 0x18NetrServerStatisticsGetNetServerStatisticsGet
 0x19NetrServerTransportAddNetServerTransportAdd
 0x1aNetrServerTransportEnumNetServerTransportEnum
 0x1bNetrServerTransportDelNetServerTransportDel
 0x1cNetrRemoteTODNetRemoteTOD
 0x1dNetrServerSetServiceBits 
 0x1eNetprPathTypeNetPathType
 0x1fNetprPathCanonicalize 
 0x20NetprPathCompare 
 0x21NetprNameValidate 
 0x22NetprNameCanonicalize 
 0x23NetprNameCompare 
 0x24NetrShareEnumStickyNetShareEnum
 0x25NetrShareDelStartNetShareDel
 0x26NetrShareDelCommitNetShareDel
 0x27NetrpGetFileSecurity 
 0x28NetrpSetFileSecurity 
 0x29NetrServerTransportAddExNetServerTransportAddEx
 0x2aNetrServerSetServiceBitsEx 
 0x2bNetrDfsGetVersion 
> Windows 20000x2cNetrDfsCreateLocalPartition 
-0x2dNetrDfsDeleteLocalPartition 
-0x2eNetrDfsSetLocalVolumeState 
-0x2fNetrDfsSetServerInfo 
-0x30NetrDfsCreateExitPoint 
-0x31NetrDfsDeleteExitPoint 
-0x32NetrDfsModifyPrefix 
-0x33NetrDfsFixLocalVolume 
-0x34NetrDfsManagerReportSiteInfo 
> Windows XP and Windows Server 20030x35NetrServerTransportDelExNetServerTransportDelEx
> Windows Vista0x36NetrServerAliasAdd 
 0x37NetrServerAliasEnum 
 0x38NetrServerAliasDel 
 0x39NetrShareDelEx 

Obtaning general information on the server service:

Managing shares:

Managing established SMB sessions on a remote server:

Managing opened files on a remote server:

Managing transports bindings of a remote SMB file server: