Package pushy.modules

Examples of pushy.modules.WinregModule


            //
            if (release.equals("post2008Server") &&
                platformModule.version().startsWith("6.1."))
            {
                boolean isServer = false;
                WinregModule winreg =
                    (WinregModule)client.getModule("_winreg");
                Object hkey = winreg.openKey(WinregModule.HKEY_LOCAL_MACHINE,
                    "Software\\Microsoft\\Windows NT\\CurrentVersion");
                try {
                    String prodname =
                        (String)winreg.queryValue(hkey, "ProductName");
                    if (prodname.indexOf("Server") != -1)
                        isServer = true;
                } finally {
                    winreg.closeKey(hkey);
                }

                // Replace the post2008Server with the correct value.
                release = isServer ? "2008ServerR2" : "7";
            }
View Full Code Here

TOP

Related Classes of pushy.modules.WinregModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.