Results 1 to 4 of 4

Thread: CreateProcess

  1. #1

    Thread Starter
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    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

    [email protected]
    A BMW Group Company

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    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).]

  3. #3

    Thread Starter
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    Thanks for that I'll have a look next week
    I'm of home now

    Happy new year etc...

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

    [email protected]
    A BMW Group Company

  4. #4
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    *LOL* you replied before I could edit it correct *LOL*
    happy ending for you too *LOL* if we survive y2k, see you next year :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width