ServerService: Added ServicePipeName, ServiceInterfaceGuid and ServiceVersion declarations

This commit is contained in:
Tal Aloni 2017-09-09 11:08:40 +03:00
parent fe45e86f8d
commit 669058607e

View file

@ -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;
} }
} }
} }