OS Information


Node Information
Gets general information of the current operating system.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
MachineName OUT String MULTIPLE FALSE FALSE
Platform OUT String MULTIPLE FALSE FALSE
ServicePack OUT String MULTIPLE FALSE FALSE
FullName OUT String MULTIPLE FALSE FALSE
UserDomainName OUT String MULTIPLE FALSE FALSE
UserName OUT String MULTIPLE FALSE FALSE
Is64Bit OUT Boolean MULTIPLE FALSE FALSE
VersionMajor OUT Int32 MULTIPLE FALSE FALSE
VersionMinor OUT Int32 MULTIPLE FALSE FALSE
VersionRevision OUT Int32 MULTIPLE FALSE FALSE
VersionBuild OUT Int32 MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Win32.Information
{
    [IsNode("OS Information")]
    public class SystemInfo : Node
    {
        Port machinename = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "MachineName");
        Port platform = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "Platform");
        Port servicepack = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "ServicePack");
        Port fullname = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "FullName");
        Port userdomainname = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "UserDomainName");
        Port username = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "UserName");
        Port is64 = new Port(PortType.OUT, typeof(bool), AcceptsLinks.MULTIPLE, "Is64Bit");
        Port versionmajor = new Port(PortType.OUT, typeof(int), AcceptsLinks.MULTIPLE, "VersionMajor");
        Port versionminor = new Port(PortType.OUT, typeof(int), AcceptsLinks.MULTIPLE, "VersionMinor");
        Port versionrevision = new Port(PortType.OUT, typeof(int), AcceptsLinks.MULTIPLE, "VersionRevision");
        Port versionbuild = new Port(PortType.OUT, typeof(int), AcceptsLinks.MULTIPLE, "VersionBuild");
        public SystemInfo()
        {
            Name = "OS Information";
            AddPort(machinename);
            AddPort(platform);
            AddPort(servicepack);
            AddPort(fullname);
            AddPort(userdomainname);
            AddPort(username);
            AddPort(is64);
            AddPort(versionmajor);
            AddPort(versionminor);
            AddPort(versionrevision);
            AddPort(versionbuild);
            is64.Instructions = "System.Environment.Is64BitOperatingSystem";
            machinename.Instructions = "System.Environment.MachineName";
            platform.Instructions = "System.Environment.OSVersion.Platform.ToString()";
            servicepack.Instructions = "System.Environment.OSVersion.ServicePack";
            fullname.Instructions = "System.Environment.OSVersion.VersionString";
            userdomainname.Instructions = "System.Environment.UserDomainName";
            username.Instructions = "System.Environment.UserName";
            versionmajor.Instructions = "System.Environment.OSVersion.Version.Major";
            versionminor.Instructions = "System.Environment.OSVersion.Version.Minor";
            versionrevision.Instructions = "System.Environment.OSVersion.Version.Revision";
            versionbuild.Instructions = "System.Environment.OSVersion.Version.Build";
            Information = "Gets general information of the current operating system.";
        }
    }
}