[Gtk-sharp-list] System.Windows.Forms.SystemInformation equivalent

Natalia Portillo claunia at claunia.com
Tue Sep 7 09:54:01 EDT 2010


Hi,

El 07/09/2010, a las 13:57, Adam Tauno Williams escribió:

> On Tue, 2010-09-07 at 02:18 +0100, Natalia Portillo wrote:
>> Hi,
>> Maybe this is not the right place to search for it, but, that class
>> gives a lot of system information that should can be needed/used
>> without using Windows.Forms.
>> Is there any equivalent in the rest of Mono classes?
> 
> What information do you need?  A lot of the information provided by
> SystemInformation seems very Windows-specific and wouldn't mean anything
> on a non-Windows system.
Let me check (this message could be long long)

I'll put directly members of System.Windows.Forms.SystemInformation to not paste so much.
I'll also not name members that clearly only apply to the toolkit.
Most of the ones I'll name are implemented in Mono under that class (a few throw an exception),
and could just be copied to another new separate class.

BootMode could reflect runlevel.
ComputerName
DebugOS if kernel is compiled debug
MonitorCount depends on X11 not toolkit
MouseButtons, MousePresent, MouseWheelPresent depending on xinput if I'm not wrong
Network is just a bool, is there any network at all?
PowerStatus on ACPI
PrimaryMonitorSize on X11
ScreenOrientation on X11
TerminalServerSession this may have no meaning on Unix but UserInteractive does (remote X11 session, x11vnc server or user thru Apple Remote Desktop?)
UserDomainName this should be more about Samba joined to a domain, or OpenDirectory on OS X.
UserName
VirtualScreen when X11 has a virtual screen (real res 800x600, virtual desktop 1024x768)

Regards,
Natalia Portillo
Claunia.com


More information about the Gtk-sharp-list mailing list