Microsoft KB Archive/824965

= How to Customize the Virtual PC User Interface =

Article ID: 824965

Article Last Modified on 1/30/2004

-

APPLIES TO


 * Connectix Virtual PC for Windows 5.2
 * Connectix Virtual PC for Windows 5.1

-



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



Table of Contents

 * SUMMARY
 * Disable the Close Button
 * Hide the Virtual PC Menus
 * Hide the Virtual PC Status Bar
 * Hide the Save PC State and Keep Changes Option in the Shut Down Dialog Box
 * Hide the Shut Down OS and Keep Changes Option in the Shut Down Dialog Box
 * Hide the Turn Off PC and Keep Changes Option in the Shut Down Dialog Box
 * Hide the Turn Off PC and Undo Changes Option in the Shut Down Dialog Box
 * Hide the VNC Options in the Settings Dialog Box
 * Force a Specific Action Instead of Shut Down Dialog Box
 * Specify the Number of Host COM Ports
 * Reverse the Default Behavior of Arbitrary Resolutions



SUMMARY
This step-by-step article describes how to customize several features of the Virtual PC user interface (UI). You can apply these features globally to all guest PCs, or to a specific guest PC.

The behavior of these settings may vary depending on how other settings have been configured. For example, the Shut down OS and keep changes option in the Shut Down menu may only be available if the Undo drives option is selected. Otherwise, the Shut down OS option appears instead of the Shut down OS and keep changes option.

back to the top

Disable the Close Button
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

The close button is the &quot;X&quot; button that appears in the upper right corner of all windows. After you perform this procedure, you cannot click the close button to close the guest PC window. To disable the close button, follow these steps:
 * 1) Click Start, click Run, type regedit in the Open box, and then click OK.
 * 2) Locate and then click either of the following keys in the registry:
 * 3) * To apply the change to all guest PCs, click the following key:

Note If you do not have a key that is named, right-click the   key, point to New, and then click Key. Type Main Window to name the key.
 * 1) * To apply the change to a specific guest PC, click the following key, where  is the name of the guest PC:

Note If you do not have a key that is named, right-click the   key, point to New, and then click Key. Type Main Window to name the key.
 * 1) On the Edit menu, point to New, and then click DWORD Value.
 * 2) Type Disable Close for the name of the DWORD value, and then press ENTER.
 * 3) Right-click Disable Close, and then click Modify.
 * 4) In the Value data box, type 1, and then click OK.
 * 5) Quit Registry Editor.

Use the following values to restore or to disable the close button:

Value of 0= Enable the close button (default).

Value of 1= Disable the close button.

back to the top

Hide the Virtual PC Menus
To hide the Virtual PC menus, follow these steps:
 * 1) Click Start, click Run, type regedit in the Open box, and then click OK.
 * 2) Locate and then click either of the following keys in the registry:
 * 3) * To apply the change to all guest PCs, click the following key:

Note If you do not have a key that is named, right-click the   key, point to New, and then click Key. Type Main Window, and then press ENTER to name the key.
 * 1) * To apply the change to a specific guest PC, click the following key, where  is the name of the guest PC:

Note If you do not have a key that is named, right-click the   key, point to New, and then click Key. Type Main Window, and then press ENTER to name the key.
 * 1) On the Edit menu, point to New, and then click DWORD Value.
 * 2) Type Disable Menus for the name of the DWORD value, and then press ENTER.
 * 3) Right-click Disable Menus, and then click Modify.
 * 4) In the Value data box, type 1, and then click OK.
 * 5) Quit Registry Editor.

Use the following values to hide or to restore the Virtual PC Menus:

Value of 0= Show the Virtual PC Menus (default).

Value of 1= Hide the Virtual PC Menus.

Note After you perform this procedure, keyboard commands still work. Only the menu bar is hidden. For example, when you press Host (Right Alt) + F4, you can still shut down the guest PC.

back to the top

Hide the Virtual PC Status Bar
After you perform this procedure, the Status bar does not appear, and the icons for the hard disk, the floppy disk, and the CD-ROM drive do not appear. To hide the Virtual PC Status bar, follow these steps:  Click Start, click Run, type regedit in the Open box, and then click OK. Locate and then click either of the following keys in the registry:  To apply the change to all guest PCs, click the following key, where  is the name of the guest PC:

 To apply the change to a specific guest PC, click the following key:



Note If you do not have a key that is named, right-click the   key, (or the   key), point to New, and then click Key. Type Main Window, and then press ENTER to name the key. On the Edit menu, point to New, and then click DWORD Value. Type Disable Status for the name of the DWORD value, and then press ENTER.</li> Right-click Disable Status, and then click Modify.</li> In the Value data box, type 1, and then click OK.</li> Quit Registry Editor.</li></ol>

Use the following values to hide or to restore the Virtual PC Status Bar:

Value of 0= Show the Status Bar (default).

Value of 1= Hide the Status Bar.

back to the top

Hide the Save PC State and Keep Changes Option in the Shut Down Dialog Box
After you perform this procedure, you are not presented with the Save PC state and keep changes option in the Shut Down dialog box when you click Shut Down on the PC menu. To hide the Save PC state and keep changes option in the Shut Down dialog box, follow these steps: <ol> Click Start, click Run, type regedit in the Open box, and then click OK.</li> Locate and then click either of the following keys in the registry:  To apply the change to all guest PCs, click the following key, where  is the name of the guest PC:

</li> To apply the change to a specific guest PC, click the following key:

</li></ul>

Note If you do not have a key that is named, right-click the   key, (or the   key), point to New, and then click Key. Type Shutdown, and then press ENTER to name the key.</li> On the Edit menu, point to New, and then click DWORD Value.</li> Type Disable Save for the name of the DWORD value, and then press ENTER.</li> Right-click Disable Save, and then click Modify.</li> In the Value data box, type 1, and then click OK.</li> Quit Registry Editor.</li></ol>

Use the following values to hide or to restore the Save PC state and keep changes option:

Value of 0= Show the Save PC state and keep changes option (default).

Value of 1= Hide the Save PC state and keep changes option.

back to the top

Hide the Shut Down OS and Keep Changes Option in the Shut Down Dialog Box
After you perform this procedure, the Shut down OS and keep changes option is not available in the Shut Down dialog box.

Note This option may not be available for some operating systems, such as Microsoft DOS.

To hide the Shut down OS and keep changes option in the Shut Down dialog box, follow these steps: <ol> Click Start, click Run, type regedit in the Open box, and then click OK.</li> Locate and then click either of the following keys in the registry: <ul> <li>To apply the change to all guest PCs, click the following key:

</li> <li>To apply the change to a specific guest PC, click the following key, where  is the name of the guest PC:

</li></ul>

Note If you do not have a key that is named, right-click the   key, (or the   key), point to New, and then click Key. Type Shutdown to name the key.</li> <li>On the Edit menu, point to New, and then click DWORD Value.</li> <li>Type Disable Shut Down for the name of the DWORD value, and then press ENTER.</li> <li>Right-click Disable Shut Down, and then click Modify.</li> <li>In the Value data box, type 1, and then click OK.</li> <li>Quit Registry Editor.</li></ol>

Use the following values to hide or to restore the Shut down OS and keep changes option:

Value of 0= Show the Shut down OS and keep changes option in the Shut Down dialog box (default).

Value of 1= Hide the Shut down OS and keep changes option in the Shut Down dialog box.

back to the top

Hide the Turn Off PC and Keep Changes Option in the Shut Down Dialog Box
After you perform this procedure, the Turn off PC and keep changes option is not available in the Shut Down dialog box. To hide the Turn off PC and keep changes option in the Shut Down dialog box, follow these steps: <ol> <li>Click Start, click Run, type regedit in the Open box, and then click OK.</li> <li>Locate and then click either of the following keys in the registry: <ul> <li>To apply the change to all guest PCs, click the following key, where  is the name of the guest PC:

</li> <li>To apply the change to a specific guest PC, click the following key:

</li></ul>

Note If you do not have a key that is named, right-click the   key, (or the   key), point to New, and then click Key. Type Shutdown to name the key.</li> <li>On the Edit menu, point to New, and then click DWORD Value.</li> <li>Type Disable Turn Off for the name of the DWORD value, and then press ENTER.</li> <li>Right-click Disable Turn Off, and then click Modify.</li> <li>In the Value data box, type 1, and then click OK.</li> <li>Quit Registry Editor.</li></ol>

Use the following values to hide or to restore the Turn off PC and keep changes option:

Value of 0= Show the Turn off PC and keep changes option in the Shut Down dialog box (default).

Value of 1= Hide the Turn off PC and keep changes option in the Shut Down dialog box.

back to the top

Hide the Turn Off PC and Undo Changes Option in the Shut Down Dialog Box
After you perform this procedure, the Turn off PC and undo changes option is not available in the Shut Down dialog box. To hide the Turn off PC and keep changes option in the Shut Down dialog box, follow these steps: <ol> <li>Click Start, click Run, type regedit in the Open box, and then click OK.</li> <li>Locate and then click either of the following keys in the registry: <ul> <li>To apply the change to all guest PCs, click the following key:

</li> <li>To apply the change to a specific guest PC, click the following key, where  is the name of the guest PC:

</li></ul>

Note If you do not have a key that is named, right-click the   key, (or the   key), point to New, and then click Key. Type Shutdown to name the key.</li> <li>On the Edit menu, point to New, and then click DWORD Value.</li> <li>Type Disable Undo for the name of the DWORD value, and then press ENTER.</li> <li>Right-click Disable Undo, and then click Modify.</li> <li>In the Value data box, type 1, and then click OK.</li> <li>Quit Registry Editor.</li></ol>

Use the following values to hide or to restore the Turn off PC and undo changes option:

Value of 0= Show the Turn off PC and undo changes option in the Shut Down dialog box (default).

Value of 1= Hide the Turn off PC and undo changes option in the Shut Down dialog box.

back to the top

Hide the VNC Options in the Settings Dialog Box
If you are using Virtual Network Computing (VNC) you can hide the VNC options in the Settings dialog box for the guest PC. To hide the VNC options, follow these steps: <ol> <li>Click Start, click Run, type regedit in the Open box, and then click OK.</li> <li>Locate and then click either of the following keys in the registry: <ul> <li>To apply the change to all guest PCs, click the following key:

</li> <li>To apply the change to a specific guest PC, click the following key, where  is the name of the guest PC:

</li></ul>

Note If you do not have a key that is named, right-click the   key, (or the   key), point to New, and then click Key. Type VNC to name the key.</li> <li>On the Edit menu, point to New, and then click DWORD Value.</li> <li>Type Disable for the name of the DWORD value, and then press ENTER.</li> <li>Right-click Disable, and then click Modify.</li> <li>In the Value data box, type 1, and then click OK.</li> <li>Quit Registry Editor.</li></ol>

Use the following values to hide or to restore the VNC options:

Value of 0= Show the VNC options in the Settings dialog box (default).

Value of 1= Hide the VNC options in the Settings dialog box.

back to the top

Force a Specific Action Instead of Shut Down Dialog Box
When you click Shut Down on the PC menu, you are presented with the following four options:
 * Save PC state and keep changes
 * Shut down OS and keep changes
 * Turn off PC and keep changes
 * Turn off PC and undo changes

You can use the  registry value to automatically force one of these options. When you do this, the Shut Down dialog box does not appear. To specify a forced action instead of the Shut Down dialog box, follow these steps: <ol> <li>Click Start, click Run, type regedit in the Open box, and then click OK.</li> <li>Locate and then click either of the following keys in the registry: <ul> <li>To apply the change to all guest PCs, click the following key:

</li> <li>To apply the change to a specific guest PC, click the following key, where  is the name of the guest PC:

</li></ul>

Note If you do not have a key that is named, right-click the   key, (or the   key), point to New, and then click Key. Type Shutdown to name the key.</li> <li>On the Edit menu, point to New, and then click DWORD Value.</li> <li>Type Force Action for the name of the DWORD value, and then press ENTER.</li> <li>Right-click Force Action, and then click Modify.</li> <li>In the Value data box, type one of the following, and then click OK:

Use the following values for the Force Action option:

Value of 0= Force the Save PC state and keep changes action in the Shutdown dialog box

Value of 1= Force the Shut down OS and keep changes action in the Shutdown dialog box.

Value of 2= Force the Turn off PC and keep changes Action in the Shutdown dialog box.

Value of 3= Force the Turn off PC and undo changes action in the Shutdown dialog box.

</li> <li>Quit Registry Editor.</li></ol>

Note Do not use the value of 1 to force the Shut down OS and keep changes action in the Shutdown dialog box for an operating system that does not support this action (such as Microsoft DOS).

back to the top

Specify the Number of Host COM Ports
You can use the  registry value to make up to 255 host serial ports available to a guest PC. To specify the number of COM ports that are available in the Settings dialog box, follow these steps:

Note You cannot apply this option to a specific guest PC.

By default there are four COM ports available in the Settings dialog box.
 * 1) Click Start, click Run, type regedit in the Open box, and then click OK.
 * 2) Locate and then click the following key in the registry:

'''

Note If you do not have a key that is named, right-click the   key, point to New, and then click Key'''. Type COM Port to name the key.
 * 1) On the Edit menu, point to New, and then click DWORD Value.
 * 2) Type Host Port Count for the name of the DWORD value, and then press ENTER.
 * 3) Right-click Host Port Count, and then click Modify.
 * 4) In the Value data box, type a value from 0 to 255, and then click OK.
 * 5) Quit Registry Editor.

back to the top

Reverse the Default Behavior of Arbitrary Resolutions
You can set the guest PC to hide arbitrary resolutions and to clamp to the nearest standard screen sizes (such as 640x480 and 800x600.) To do this, follow these steps: <ol> <li>Click Start, click Run, type regedit in the Open box, and then click OK.</li> <li>Locate and then click either of the following keys in the registry: <ul> <li>To apply the change to all guest PCs, click the following key:

</li> <li>To apply the change to a specific guest PC, click the following key, where  is the name of the guest PC:

</li></ul>

Note If you do not have a key that is named, right-click the   key, (or the   key), point to New, and then click Key. Type Main Window to name the key.</li> <li>On the Edit menu, point to New, and then click DWORD Value.</li> <li>Type Clamp Resize for the name of the DWORD value, and then press ENTER.</li> <li>Right-click Clamp Resize, and then click Modify.</li> <li>In the Value data box, type 1, and then click OK.</li> <li>Quit Registry Editor.</li></ol>

Use the following values for the  key:

Value of 0= Enable arbitrary resolutions (default).

Value of 1= Hide arbitrary resolutions and clamp to standard screen sizes (such as 640x480 and 800x600).

Arbitrary resizing is the feature that permits you to drag the corner of the guest PC window to a new resolution. Clamp resizing is the feature that permits you to hold down the CTRL key while you drag the window to resize it to a standard Windows resolution, such as 640x480 or 1024x768.

By default, you can only use clamp resizing when the CTRL key is held down. After you make the relevant registry change, you can use clamp resizing without having to hold down the CTRL key, and you must hold down the CTRL key to use arbitrary resizing.

back to the top

Keywords: kbhowto KB824965

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.