Re: Question on Win32::Process
by GrandFather (Saint) on Dec 29, 2005 at 07:38 UTC
|
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |
|
|
|
|
Re: Question on Win32::Process
by BrowserUk (Patriarch) on Dec 29, 2005 at 07:34 UTC
|
NORMAL_PRIORITY_CLASS is exactly that. Use the normal priority for this process. Alternatives to are IDLE_, HIGH_ and REALTIME_PRIORITY_CLASS constants. These are the same values as you can set using the "set priority" submenu from the Task Manager context menu. On XP/2003 there are also ABOVE_NORMAL_PRIORITY and BELOW_NORMAL_PRIORITY, but these constants are not (yet) exported by Win32::Process.
Simplistically, when a higher priority task becomes eligible to run, it will take precedence over lower priority processes. Be aware that changing these values to other than NORMAL is inadvisable unless you have good reasons, and the process is written to operate properly at the chosen level.
For the full nitty gritty, see the MSDN explanations.
According to this documentation, the CREATE_NO_WINDOW flag is ignored!
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [Watch: Dir/Any] |
|
Thanks for the wonderful answer browseruk
But do you have any idea what for this CREATE_NO_WINDOW was introduced in Win32::Process or what it actually doing in it. Because i am more curious to know that.Please
-Prasanna.K
| [reply] [Watch: Dir/Any] |
|
Guessing, I would say that the CREATE_NO_WINDOW constant was added to the Win32 header files for some envisaged use that never got added, or was rejected for some reason.
The reason it is exported by Win32::Process is because it was discussed and documented in the MS documentation for the call, and because it might do something useful at some point in the future. As it stands, it will just do nothing.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [Watch: Dir/Any] |
Re: Question on Win32::Process
by planetscape (Chancellor) on Dec 29, 2005 at 09:07 UTC
|
I hope this does not sound snide, as that is certainly not my intention... But if you have Win32::Process installed, could you use perldoc Win32::Process to view the POD, or pod2html to generate HTML docs?
HTH,
| [reply] [Watch: Dir/Any] [d/l] [select] |
|
| [reply] [Watch: Dir/Any] |