servuo/Ultima/WindowProcessStream.cs
Vorspire e794a036b8 + Full Solution Clean-Up.
+ Updated Compile.*.bat files; they will be used to compile the server only; the MONO compiler will also silently compile for Windows.
* ServUO.exe always represents the Windows executable, to run your shard on Mono, use ServUO.MONO.exe

+ Removed redundant, unused, or not working systems;
- EmergencyBackup (entire project removed)
- SevenZipSharp (references and files removed)
- OpenUOSDK (references and files removed, usages updated)

+ Added entire UltimaSDK project to be compiled with the server (to replace OpenUOSDK)
+ Updated DataPath so that it updates the UltimaSDK file paths automatically based on Core.DataPaths.
2015-09-02 00:41:21 +01:00

31 lines
No EOL
693 B
C#

namespace Ultima
{
public class WindowProcessStream : ProcessStream
{
private ClientWindowHandle m_Window;
private ClientProcessHandle m_ProcessID;
public ClientWindowHandle Window { get { return m_Window; } set { m_Window = value; } }
public WindowProcessStream(ClientWindowHandle window)
{
m_Window = window;
m_ProcessID = ClientProcessHandle.Invalid;
}
public override ClientProcessHandle ProcessID
{
get
{
if (NativeMethods.IsWindow(m_Window) != 0 && !m_ProcessID.IsInvalid)
{
return m_ProcessID;
}
NativeMethods.GetWindowThreadProcessId(m_Window, ref m_ProcessID);
return m_ProcessID;
}
}
}
}