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

Inheritance: IDisposable
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Private Properties

Свойство Type Description
InnerBind void
RpceCall RpceInt3264Collection

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

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
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

NetrShareEnum() public méthode

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. ///
Résultat uint

NetrShareGetInfo() public méthode

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.
Résultat uint

NetrShareSetInfo() public méthode

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
Résultat uint

SrvsClient() public méthode

public SrvsClient ( System.TimeSpan timeout ) : System
timeout System.TimeSpan
Résultat System

UnBind() public méthode

Unbind and release the handle.
public UnBind ( ) : void
Résultat void