mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-13 02:39:18 +02:00
ServerService: Added ServicePipeName, ServiceInterfaceGuid and ServiceVersion declarations
This commit is contained in:
parent
fe45e86f8d
commit
669058607e
1 changed files with 6 additions and 3 deletions
|
@ -16,6 +16,10 @@ namespace SMBLibrary.Services
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ServerService : RemoteService
|
public class ServerService : RemoteService
|
||||||
{
|
{
|
||||||
|
public const string ServicePipeName = @"srvsvc";
|
||||||
|
public static readonly Guid ServiceInterfaceGuid = new Guid("4B324FC8-1670-01D3-1278-5A47BF6EE188");
|
||||||
|
public const int ServiceVersion = 3;
|
||||||
|
|
||||||
public const int MaxPreferredLength = -1; // MAX_PREFERRED_LENGTH
|
public const int MaxPreferredLength = -1; // MAX_PREFERRED_LENGTH
|
||||||
|
|
||||||
private PlatformName m_platformID;
|
private PlatformName m_platformID;
|
||||||
|
@ -37,7 +41,6 @@ namespace SMBLibrary.Services
|
||||||
m_shares = shares;
|
m_shares = shares;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override byte[] GetResponseBytes(ushort opNum, byte[] requestBytes)
|
public override byte[] GetResponseBytes(ushort opNum, byte[] requestBytes)
|
||||||
{
|
{
|
||||||
switch ((ServerServiceOpName)opNum)
|
switch ((ServerServiceOpName)opNum)
|
||||||
|
@ -179,7 +182,7 @@ namespace SMBLibrary.Services
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return new Guid("4B324FC8-1670-01D3-1278-5A47BF6EE188");
|
return ServiceInterfaceGuid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,7 +190,7 @@ namespace SMBLibrary.Services
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return "srvsvc";
|
return ServicePipeName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue