文章/示例中通常描述了 4 个标志:
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}
我可以使用它们中的任何一个吗:http: //msdn.microsoft.com/en-us/library/ms684863 (v=VS.85).aspx / http://msdn.microsoft.com/en-us/library/ ms683211(v=VS.85).aspx在那个函数中?
这两个链接有什么区别?
为什么我在 CreateProcess 函数中出现错误:不兼容的类型:'Cardinal' 和 'TThreadPriority' 如果我有并且做了:
var Priority : Cardinal
Priority:=NORMAL_PRIORITY_CLASS;
CreateProcess(PChar(Path), Pchar(Par), nil, nil, false,
Priority, nil, nil, StartUpInfo, ProcessInfo);
什么 TThreadPriority....
谢谢!