mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-06-03 02:57:15 +02:00
Minor improvements to ServerService and WorkstationService structures
ShareInfo: Removed unneccesary lines
This commit is contained in:
parent
d505998a25
commit
beef71975b
4 changed files with 18 additions and 8 deletions
|
@ -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
|
* 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,
|
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||||
|
@ -6,7 +6,6 @@
|
||||||
*/
|
*/
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
using SMBLibrary.RPC;
|
using SMBLibrary.RPC;
|
||||||
using Utilities;
|
using Utilities;
|
||||||
|
|
||||||
|
@ -24,6 +23,11 @@ namespace SMBLibrary.Services
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ServerInfo(uint level)
|
||||||
|
{
|
||||||
|
Level = level;
|
||||||
|
}
|
||||||
|
|
||||||
public ServerInfo(ServerInfoLevel info)
|
public ServerInfo(ServerInfoLevel info)
|
||||||
{
|
{
|
||||||
Level = info.Level;
|
Level = info.Level;
|
||||||
|
|
|
@ -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
|
* 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,
|
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||||
|
@ -6,7 +6,6 @@
|
||||||
*/
|
*/
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
using SMBLibrary.RPC;
|
using SMBLibrary.RPC;
|
||||||
using Utilities;
|
using Utilities;
|
||||||
|
|
||||||
|
@ -24,6 +23,11 @@ namespace SMBLibrary.Services
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ShareEnum(uint level)
|
||||||
|
{
|
||||||
|
Level = level;
|
||||||
|
}
|
||||||
|
|
||||||
public ShareEnum(IShareInfoContainer info)
|
public ShareEnum(IShareInfoContainer info)
|
||||||
{
|
{
|
||||||
Level = info.Level;
|
Level = info.Level;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
*/
|
*/
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
using SMBLibrary.RPC;
|
using SMBLibrary.RPC;
|
||||||
using Utilities;
|
using Utilities;
|
||||||
|
|
||||||
|
@ -59,7 +58,6 @@ namespace SMBLibrary.Services
|
||||||
default:
|
default:
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
;
|
|
||||||
parser.EndStructure(); // SHARE_INFO Union
|
parser.EndStructure(); // SHARE_INFO Union
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
* 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,
|
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||||
|
@ -6,7 +6,6 @@
|
||||||
*/
|
*/
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
using SMBLibrary.RPC;
|
using SMBLibrary.RPC;
|
||||||
|
|
||||||
namespace SMBLibrary.Services
|
namespace SMBLibrary.Services
|
||||||
|
@ -23,6 +22,11 @@ namespace SMBLibrary.Services
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public WorkstationInfo(uint level)
|
||||||
|
{
|
||||||
|
Level = level;
|
||||||
|
}
|
||||||
|
|
||||||
public WorkstationInfo(WorkstationInfoLevel info)
|
public WorkstationInfo(WorkstationInfoLevel info)
|
||||||
{
|
{
|
||||||
Level = info.Level;
|
Level = info.Level;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue