Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to minimize window and set low priority through API?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00527416
Message ID:
00527458
Views:
50
This message has been marked as a message which has helped to the initial question of the thread.
API Text View has the constants you need.

#DEFINE THREAD_BASE_PRIORITY_MIN -2
#DEFINE THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN

For VC++ users, it is in the WINNT.H include file.

>>>Hi All,
>>>
>>>I need to programmatically minimize the DOS application window and set its priority to low from VFP app. I assume I can do it with SendMessage() API function. Any body knows the constants I should use for that?(or better the exact syntax :)
>>
>>What is "the DOS application window"? Are you running a separate program from Visual FoxPro? If so, you can call a separate program, without opening a DOS prompt, just with RUN /n.
>>
>>Hilmar.
>
>Hi Hilmar,
>
>Yes, my VFP app runs FoxPro 2.5 DOS app with RUN /N1 ... command.
>But then I need to minimize that FP DOS window and set its priority to low. (analog to DOS command
>
>START /MIN /LOW foxprox.exe myprog.fxp )
>
>I have the window handle and its Thread Process Id.
>I found out that to set priority to low I can use SetThreadPriority() API function with THREAD_PRIORITY_LOWEST constant but I can't find that constant value and can't find the .H file to see how it is declared.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform