Hid internal SMB1ConnectionState variables

This commit is contained in:
Tal Aloni 2017-01-14 14:30:40 +02:00
parent 211adcc78a
commit fb68513c16

View file

@ -30,8 +30,9 @@ namespace SMBLibrary.Server
private ushort m_nextFID = 1; private ushort m_nextFID = 1;
// Key is PID // Key is PID
public Dictionary<uint, ProcessStateObject> ProcessStateList = new Dictionary<uint, ProcessStateObject>(); private Dictionary<uint, ProcessStateObject> m_processStateList = new Dictionary<uint, ProcessStateObject>();
public const int MaxSearches = 2048; // Windows servers initialize Server.MaxSearches to 2048.
private const int MaxSearches = 2048; // Windows servers initialize Server.MaxSearches to 2048.
public Dictionary<ushort, List<FileSystemEntry>> OpenSearches = new Dictionary<ushort, List<FileSystemEntry>>(); public Dictionary<ushort, List<FileSystemEntry>> OpenSearches = new Dictionary<ushort, List<FileSystemEntry>>();
private ushort m_nextSearchHandle = 1; private ushort m_nextSearchHandle = 1;
@ -149,9 +150,9 @@ namespace SMBLibrary.Server
public ProcessStateObject GetProcessState(uint processID) public ProcessStateObject GetProcessState(uint processID)
{ {
if (ProcessStateList.ContainsKey(processID)) if (m_processStateList.ContainsKey(processID))
{ {
return ProcessStateList[processID]; return m_processStateList[processID];
} }
else else
{ {
@ -164,14 +165,14 @@ namespace SMBLibrary.Server
/// </summary> /// </summary>
public ProcessStateObject ObtainProcessState(uint processID) public ProcessStateObject ObtainProcessState(uint processID)
{ {
if (ProcessStateList.ContainsKey(processID)) if (m_processStateList.ContainsKey(processID))
{ {
return ProcessStateList[processID]; return m_processStateList[processID];
} }
else else
{ {
ProcessStateObject processState = new ProcessStateObject(); ProcessStateObject processState = new ProcessStateObject();
ProcessStateList[processID] = processState; m_processStateList[processID] = processState;
return processState; return processState;
} }
} }
@ -198,7 +199,7 @@ namespace SMBLibrary.Server
return null; return null;
} }
/// <param name="relativePath">Should include the path relative to the file system</param> /// <param name="relativePath">Should include the path relative to the share</param>
/// <returns>FileID</returns> /// <returns>FileID</returns>
public ushort? AddOpenedFile(string relativePath) public ushort? AddOpenedFile(string relativePath)
{ {