C# Class Microsoft.Protocols.TestTools.StackSdk.Srvs.SrvsClient

Inheritance: IDisposable
Exibir arquivo Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Private Properties

Property Type Description
InnerBind void
RpceCall RpceInt3264Collection

Public Methods

Method Description
Bind ( string serverName, Microsoft.Protocols.TestTools.StackSdk.Security.Sspi.AccountCredential credential, Microsoft.Protocols.TestTools.StackSdk.Security.Sspi.ClientSecurityContext securityContext ) : void

Set up an RPC session with a specific server.

Dispose ( ) : void
NetrShareEnum ( string serverName, Microsoft.Protocols.TestTools.StackSdk.Srvs.SHARE_ENUM_STRUCT &infoStruct, uint PreferedMaximumLength, uint &TotalEntries, uint &ResumeHandle ) : uint

The NetrShareEnum method retrieves information about each shared resource on a server.

NetrShareGetInfo ( string ServerName, string NetName, SHARE_ENUM_STRUCT_LEVEL Level, Microsoft.Protocols.TestTools.StackSdk.Srvs.SHARE_INFO &InfoStruct ) : uint

The NetrShareGetInfo method retrieves information about a particular shared resource on the server from the ShareList.

NetrShareSetInfo ( string ServerName, string NetName, SHARE_ENUM_STRUCT_LEVEL Level, Microsoft.Protocols.TestTools.StackSdk.Srvs.SHARE_INFO InfoStruct, uint &ParmErr ) : uint

The NetrShareSetInfo method sets the parameters of a shared resource in a ShareList.

SrvsClient ( System.TimeSpan timeout ) : System
UnBind ( ) : void

Unbind and release the handle.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
InnerBind ( string protocolSequence, string networkAddress, string endpoint, Microsoft.Protocols.TestTools.StackSdk.Security.Sspi.AccountCredential transportCredential, Microsoft.Protocols.TestTools.StackSdk.Security.Sspi.ClientSecurityContext securityContext ) : void
RpceCall ( Microsoft.Protocols.TestTools.StackSdk.Int3264 paramList, ushort opnum ) : RpceInt3264Collection

Method Details

Bind() public method

Set up an RPC session with a specific server.
public Bind ( string serverName, Microsoft.Protocols.TestTools.StackSdk.Security.Sspi.AccountCredential credential, Microsoft.Protocols.TestTools.StackSdk.Security.Sspi.ClientSecurityContext securityContext ) : void
serverName string Server computer name
credential Microsoft.Protocols.TestTools.StackSdk.Security.Sspi.AccountCredential User account used to setup this session
securityContext Microsoft.Protocols.TestTools.StackSdk.Security.Sspi.ClientSecurityContext Security context of session
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

NetrShareEnum() public method

The NetrShareEnum method retrieves information about each shared resource on a server.
public NetrShareEnum ( string serverName, Microsoft.Protocols.TestTools.StackSdk.Srvs.SHARE_ENUM_STRUCT &infoStruct, uint PreferedMaximumLength, uint &TotalEntries, uint &ResumeHandle ) : uint
serverName string A string that identifies the server. If this parameter is NULL, the local computer is used.
infoStruct Microsoft.Protocols.TestTools.StackSdk.Srvs.SHARE_ENUM_STRUCT A SHARE_ENUM_STRUCT structure. The SHARE_ENUM_STRUCT structure has a Level member /// that specifies the type of structure to return in the ShareInfo member.
PreferedMaximumLength uint Specifies the preferred maximum length, in bytes, of the returned data. /// If the specified value is MAX_PREFERRED_LENGTH, the method MUST attempt to return all entries.
TotalEntries uint The total number of entries that could have been enumerated if the buffer had been big enough to hold all the entries.
ResumeHandle uint A pointer to a value that contains a handle, which is used to continue an existing share search in ShareList. /// handle MUST be zero on the first call and remain unchanged for subsequent calls. If the ResumeHandle parameter is NULL, no resume handle MUST be stored. /// If this parameter is not NULL and the method returns ERROR_MORE_DATA, this parameter receives a nonzero value that can be passed in subsequent /// calls to this method to continue with the enumeration in ShareList. If this parameter is NULL or points to 0x00000000, the enumeration starts from the beginning of the ShareList. ///
return uint

NetrShareGetInfo() public method

The NetrShareGetInfo method retrieves information about a particular shared resource on the server from the ShareList.
public NetrShareGetInfo ( string ServerName, string NetName, SHARE_ENUM_STRUCT_LEVEL Level, Microsoft.Protocols.TestTools.StackSdk.Srvs.SHARE_INFO &InfoStruct ) : uint
ServerName string A string that identifies the server. If this parameter is NULL, the local computer is used.
NetName string The name of the share to return information for.
Level SHARE_ENUM_STRUCT_LEVEL Specifies the information level of the data. This parameter MUST be one of the following values.
InfoStruct Microsoft.Protocols.TestTools.StackSdk.Srvs.SHARE_INFO Its contents are determined by the value of the Level parameter, as shown in the preceding table.
return uint

NetrShareSetInfo() public method

The NetrShareSetInfo method sets the parameters of a shared resource in a ShareList.
public NetrShareSetInfo ( string ServerName, string NetName, SHARE_ENUM_STRUCT_LEVEL Level, Microsoft.Protocols.TestTools.StackSdk.Srvs.SHARE_INFO InfoStruct, uint &ParmErr ) : uint
ServerName string A string that identifies the server. If this parameter is NULL, the local computer is used.
NetName string The name of the share to return information for.
Level SHARE_ENUM_STRUCT_LEVEL Specifies the information level of the data. This parameter MUST be one of the following values.
InfoStruct Microsoft.Protocols.TestTools.StackSdk.Srvs.SHARE_INFO Its contents are determined by the value of the Level parameter, as shown in the preceding table. /// This parameter MUST NOT contain a null value.
ParmErr uint An integer value that receives the index of the first member of the share information /// structure that caused the ERROR_INVALID_PARAMETER error, if it occurs
return uint

SrvsClient() public method

public SrvsClient ( System.TimeSpan timeout ) : System
timeout System.TimeSpan
return System

UnBind() public method

Unbind and release the handle.
public UnBind ( ) : void
return void