PrintSetupPrinter function fails on 64-bit Vista

The PrintSetupPrinter function does not display the printer setup dialog box on the 64-bit version of the Vista operating system. This is caused by a known code defect in the Microsoft XPS Document Writer DLL mxdwdui.dll. The DLL file prematurely frees the shell32.dll library and caused a window class to be unregistered. When the printer dialog box UI tries to create a window with the unregistered class, it fails and the dialog box fails to display.

You can display a printer properties dialog box using the following command line, where printer name is the name of the printer and must be enclosed in quotation marks. You must run the command from the \Windows\sysWow64 directory:

rundll32 printui.dll,PrintUIEntry /n "printer name" /p

[CR 477598]