How to Set Foreground/Background Responsiveness in CodeLast reviewed: September 25, 1995Article ID: Q125660 |
The information in this article applies to:
SUMMARYIn Windows NT version 3.5, you can set foreground/background responsiveness by using the System Control Panel in Program Manager. Chose Tasking, then select one of the following through the dialog that is displayed:
MORE INFORMATIONYou can use the Registry APIs to set foreground/background responsiveness. The following registry key allows you to specify the priority to give to the application running in the foreground:
HKEY_LOCAL_MACHINE\SYSTEM CurrentControlSet\ Control\ PriorityControl\ Win32PrioritySeparationThe following values are supported:
Value Meaning ---------------- 0 Foreground and background applications equally responsive 1 Foreground application more responsive than background 2 Best foreground application response timeThese values correspond to the choices offered in the Tasking dialog described in the "Summary" section of this article. To override the setting from your application, use SetPriorityClass() to change your application's priority class and SetThreadPriority() to set the priority for a given thread. NOTE: The thread priority together with the priority class for the process determine the thread's base priority.
|
Additional reference words: 3.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |