Circumventing a Java Windows API problem.