Hi All,
Please find the attached fix(webrev.zip) for JDK-8231352(https://bugs.openjdk.java.net/browse/JDK-8231352).
In this patch i removed the deprecated "GetProfileString" and used "GetDefaultPrinter" instead. "GetDefaultPrinter" API, minimum supported client is Windows 2000 professional and minimum supported server is Windows 200 server. So it is safe to remove some very old legacy code where we are checking the Windows OS version.
Note: I am not able to upload the patch to (http://cr.openjdk.java.net/~vtewari/).
Thanks,
Vyom