Need 'GetConsoleWindow' for Mono or Wine
Greetings,
On my Windows RunUO server I run a script call WatchUO. It's a nifty second windows that pops up. It has a lot of details about my shard, so I can quickly take a look at what's going on.
However, this script fails to run on my Linux server. I get this error...
I have tracked it down to this section of code. It is trying to use part of the Windows Kernel to run and it is not available in Linux. However, I would think it would be part of either Mono or Wine.
Does any one have a suggestion as how to replace this section of code in order to get this working?
-Ravon
Greetings,
On my Windows RunUO server I run a script call WatchUO. It's a nifty second windows that pops up. It has a lot of details about my shard, so I can quickly take a look at what's going on.
However, this script fails to run on my Linux server. I get this error...
Code:
Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.EntryPointNotFoundException: GetConsoleWindow
at (wrapper managed-to-native) Server.Engines.WatchUO.Plugins.RunUOControlPlugin:GetConsoleWindow ()
at Server.Engines.WatchUO.Plugins.RunUOControlPlugin.UpdateHideConsoleButton () [0x00000]
at Server.Engines.WatchUO.Plugins.RunUOControlPlugin.OnLoad () [0x00000]
at Server.Engines.WatchUO.PluginLoader.LoadPlugins () [0x00000]
at Server.Engines.WatchUO.Core.CreateMainForm () [0x00000]
at Server.Engines.WatchUO.Core.Initialize () [0x00000]
I have tracked it down to this section of code. It is trying to use part of the Windows Kernel to run and it is not available in Linux. However, I would think it would be part of either Mono or Wine.
Code:
[DllImport("Kernel32.dll")]
private static extern IntPtr GetConsoleWindow();
Does any one have a suggestion as how to replace this section of code in order to get this working?
-Ravon