PDA

Click to See Complete Forum and Search --> : CreateProcess


Mark Sreeves
Dec 29th, 1999, 10:10 PM
Does anyone know any other flags for CreateProcessA aprt from:

NORMAL_PRIORITY_CLASS

Is there a flag to hide the process like running Shell() with vbHide?


PS
Don't bother replying if you just want to say "Yeah I wanted to know that too!"


------------------
Mark Sreeves
Analyst Programmer

Mark.Sreeves@Softlab.co.uk
A BMW Group Company

Crazy D
Dec 29th, 1999, 10:18 PM
Now I don't wanna be a smartass, but my MSDN gives me a lot of information about this..
anyway, this is what it gives as options about priority

ABOVE_NORMAL PRIORITY_CLASS
Windows 2000: Indicates a process that has priority higher than NORMAL_PRIORITY_CLASS but lower than HIGH_PRIORITY_CLASS.

BELOW_NORMAL_PRIORITY_CLASS
Windows 2000: Indicates a process that has priority higher than IDLE_PRIORITY_CLASS but lower than NORMAL_PRIORITY_CLASS.

HIGH_PRIORITY_CLASS
Indicates a process that performs time-critical tasks. The threads of a high-priority class process preempt the threads of normal-priority or idle-priority class processes. An example is the Task List, which must respond quickly when called by the user, regardless of the load on the system. Use extreme care when using the high-priority class, because a CPU-bound application with a high-priority class can use nearly all available cycles.

IDLE_PRIORITY_CLASS
Indicates a process whose threads run only when the system is idle and are preempted by the threads of any process running in a higher priority class. An example is a screen saver. The idle priority class is inherited by child processes.

NORMAL_PRIORITY_CLASS
Indicates a normal process with no special scheduling needs.

REALTIME_PRIORITY_CLASS
Indicates a process that has the highest possible priority. The threads of a real-time priority class process preempt the threads of all other processes, including operating system processes performing important tasks. For example, a real-time process that executes for more than a very brief interval can cause disk caches not to flush or cause the mouse to be unresponsive.

Besides that, I think you should take a look at the lpStartupInfo parameter. This structure (STARTUPINFO) is the thing you want to hide the window I think.
Hth

[This message has been edited by Crazy D (edited 12-30-1999).]

Mark Sreeves
Dec 29th, 1999, 10:20 PM
Thanks for that I'll have a look next week
I'm of home now

Happy new year etc...

------------------
Mark Sreeves
Analyst Programmer

Mark.Sreeves@Softlab.co.uk
A BMW Group Company

Crazy D
Dec 29th, 1999, 10:21 PM
*LOL* you replied before I could edit it correct *LOL*
happy ending for you too *LOL* if we survive y2k, see you next year :-)