Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6209067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:55:05+00:00 2026-05-24T05:55:05+00:00

There are 4 flags that are described usually in articles/examples: NORMAL_PRIORITY_CLASS = $00000020; {$EXTERNALSYM

  • 0

There are 4 flags that are described usually in articles/examples:

 NORMAL_PRIORITY_CLASS           = $00000020;
  {$EXTERNALSYM NORMAL_PRIORITY_CLASS}
  IDLE_PRIORITY_CLASS             = $00000040;
  {$EXTERNALSYM IDLE_PRIORITY_CLASS}
  HIGH_PRIORITY_CLASS             = $00000080;
  {$EXTERNALSYM HIGH_PRIORITY_CLASS}
  REALTIME_PRIORITY_CLASS         = $00000100;
  {$EXTERNALSYM REALTIME_PRIORITY_CLASS}

Can I use any of them: http://msdn.microsoft.com/en-us/library/ms684863(v=VS.85).aspx / http://msdn.microsoft.com/en-us/library/ms683211(v=VS.85).aspx in that function?

What is the difference between those 2 links?

Why do I get an error in a CreateProcess function: Incompatible types: ‘Cardinal’ and ‘TThreadPriority’ if I have and do:

var Priority : Cardinal
Priority:=NORMAL_PRIORITY_CLASS;
CreateProcess(PChar(Path), Pchar(Par), nil, nil, false,
Priority, nil, nil, StartUpInfo, ProcessInfo);

What TThreadPriority….

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:55:06+00:00Added an answer on May 24, 2026 at 5:55 am

    You can use one of the 6 flags that the documentation of GetPriorityClass function mentions. The reason RTL omits 2 of the flags is that they are not supported on Windows 9x/ME (this is in D2007, maybe later versions have those flags).

    You can or the priority class flag with any combination of process creation flags (except noted in the documentation – the first link you’ve provided).

    TThreadPriority is an enumerated type used in TThread in ‘classes.pas’ and is not related in anyway with process creation flags. The code posted in the question does not seem to have any problem (see comments to the question).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have an enum that's marked with [Flags] , is there a way
Is there any way to set multiple enum flags (that are traditionally separated by
I have six boolean flags that are independent of each other so there are
Is there a specific Xcode compiler flag that gets set when compiling for iPad?
Is there a place (or flag) in Xcode for files that you don't want
Is there a way set flags on a per-file basis with automake? In particular,
Background There are several different debug flags you can use with the Visual Studio
Is there any way to take advantage of the file creation flags in the
Is there a way for a Windows Forms application to detect if any flags
Is there any free library that I may leverage for parsing a unique settings

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.