mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-12 10:19:18 +02:00
Server: Prevented several OpenFileObject members from being changed after instantiation and added OpenedDT property
This commit is contained in:
parent
89a9238d8a
commit
fcd737a1f4
1 changed files with 54 additions and 9 deletions
|
@ -7,23 +7,68 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace SMBLibrary.Server
|
namespace SMBLibrary.Server
|
||||||
{
|
{
|
||||||
internal class OpenFileObject
|
internal class OpenFileObject
|
||||||
{
|
{
|
||||||
public uint TreeID;
|
private uint m_treeID;
|
||||||
public string ShareName;
|
private string m_shareName;
|
||||||
public string Path;
|
private string m_path;
|
||||||
public object Handle;
|
private object m_handle;
|
||||||
|
private DateTime m_openedDT;
|
||||||
|
|
||||||
public OpenFileObject(uint treeID, string shareName, string path, object handle)
|
public OpenFileObject(uint treeID, string shareName, string path, object handle)
|
||||||
{
|
{
|
||||||
TreeID = treeID;
|
m_treeID = treeID;
|
||||||
ShareName = shareName;
|
m_shareName = shareName;
|
||||||
Path = path;
|
m_path = path;
|
||||||
Handle = handle;
|
m_handle = handle;
|
||||||
|
m_openedDT = DateTime.Now;
|
||||||
|
}
|
||||||
|
|
||||||
|
public uint TreeID
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return m_treeID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ShareName
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return m_shareName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Path
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return m_path;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
m_path = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public object Handle
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return m_handle;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public DateTime OpenedDT
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return m_openedDT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue