Minor improvements to ServerService and WorkstationService structures

ShareInfo: Removed unneccesary lines
This commit is contained in:
Tal Aloni 2018-05-17 13:32:37 +03:00
parent d505998a25
commit beef71975b
4 changed files with 18 additions and 8 deletions

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
/* Copyright (C) 2014-2018 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
@ -6,7 +6,6 @@
*/
using System;
using System.Collections.Generic;
using System.Text;
using SMBLibrary.RPC;
using Utilities;
@ -24,6 +23,11 @@ namespace SMBLibrary.Services
{
}
public ServerInfo(uint level)
{
Level = level;
}
public ServerInfo(ServerInfoLevel info)
{
Level = info.Level;

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
/* Copyright (C) 2014-2018 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
@ -6,7 +6,6 @@
*/
using System;
using System.Collections.Generic;
using System.Text;
using SMBLibrary.RPC;
using Utilities;
@ -24,6 +23,11 @@ namespace SMBLibrary.Services
{
}
public ShareEnum(uint level)
{
Level = level;
}
public ShareEnum(IShareInfoContainer info)
{
Level = info.Level;

View file

@ -6,7 +6,6 @@
*/
using System;
using System.Collections.Generic;
using System.Text;
using SMBLibrary.RPC;
using Utilities;
@ -59,7 +58,6 @@ namespace SMBLibrary.Services
default:
throw new NotImplementedException();
}
;
parser.EndStructure(); // SHARE_INFO Union
}

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
/* Copyright (C) 2014-2018 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
@ -6,7 +6,6 @@
*/
using System;
using System.Collections.Generic;
using System.Text;
using SMBLibrary.RPC;
namespace SMBLibrary.Services
@ -23,6 +22,11 @@ namespace SMBLibrary.Services
{
}
public WorkstationInfo(uint level)
{
Level = level;
}
public WorkstationInfo(WorkstationInfoLevel info)
{
Level = info.Level;