Article ID: 923357 - Last Review: October 11, 2007 - Revision: 2.6 You cannot use the RUNAS command to print from a 32-bit program in different user accounts in a single session on a computer that is running a 64-bit version of Microsoft WindowsImportant This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986
(http://support.microsoft.com/kb/256986/
)
Description of the Microsoft Windows registry On This PageSYMPTOMSOn a computer that is running a 64-bit version of Microsoft Windows, you cannot use the runas command to print from a 32-bit program in different user accounts in a single session. CAUSEThis behavior occurs because the system uses the Splwow64.exe process to translate between 32-bit programs and the driver model of the 64-bit operating system. When the Splwow64.exe process is complete, this process remains in memory for a specified time-out period to increase system performance. When you use the runas command to start the 32-bit program, the Splwow64.exe process is available only to the first user until the specified period passes. This period is set by using a registry entry. WORKAROUNDTo work around this behavior, use either of the following methods. Method 1Avoid using the runas command to print.Method 2Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.Follow these steps to change the registry entry that controls the time-out period:
STATUS
This behavior is by design. MORE INFORMATIONOn a computer that is running a 64-bit version of Microsoft Windows, only one user account may print from a 32-bit program in a session. In a session, the user account that prints first is the only user account where a 32-bit process can print until a time-out occurs or the session ends. If another user account in the same session tries to print before the session ends, the user account receives an "Invalid Handle" error message. Additionally, the print request is unsuccessful. More than one process may run in different user accounts in the same session. Examples include the following:
Steps to reproduce the behavior
APPLIES TO
| Article Translations
|

Back to the top
