PDA

View Full Version : Negative Registry Value (W2K)



upatick
12-02-2002, 02:20 PM
I have a simple question that I can't find an answer to. How do you specify a negative DWORD entry in the registry? I've searched everywhere I can think of and can't find the answer. Regedit doesn't accept a negative sign as shown in Microsoft's knowledge base solution shown below. If you know how to modify a registry DWORD value to a negative 1 I'd really appreciate a response. This article was previously published under Q103411
Add or change the following value:

Key: PortThreadPriority
Type: REG_DWORD
Value: -1

Quit Registry Editor.
The default value in Windows NT 4.0 for PortThreadPriority is 0, which equals THREAD_PRIORITY_ NORMAL. The value for THREAD_PRIORITY_ABOVE_NORMAL is 1 and THREAD_PRIORITY_BELOW_NORMAL is -1.

Thank you for your assistance.
Chuck Milich
email: upatick@attbi.com

adg
12-02-2002, 02:42 PM
According to MS, that's for NT4. Perhaps it's not valid in 2K?

Allan
<a target="_blank" href=http://www.tweakdatabase.com/idealbb>tweakxp.com</a>

adg
12-02-2002, 02:45 PM
Oh I see - it applies to:
Microsoft Windows 2000 Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Professional
Microsoft Windows NT Server 3.1
Microsoft Windows NT Workstation 3.1
Microsoft Windows NT Advanced Server
Microsoft Windows NT Workstation 3.5
Microsoft Windows NT Workstation 3.51
Microsoft Windows NT Workstation 4.0
Microsoft Windows NT Server 3.5
Microsoft Windows NT Server 3.51
Microsoft Windows NT Server 4.0

And the setting in 3.51 is, as you know, different.



Allan
<a target="_blank" href=http://www.tweakdatabase.com/idealbb>tweakxp.com</a>

mysterywolf
12-02-2002, 03:02 PM
this is a guess....

the Q doc is a fix for a lack of irq for the port. Nt can't provide an irq but 2K can - but doesn't have to - the port can be configured not to use an irq. perhaps in that situation you might find that -1 is accepted as valid and get the three possiblities - below,normat and above.
But, if your port is configured with an irq then you get the greater range of 1 to 99 levels of priority and as you have found -1 can be entered through regedt32 (but not regedit) but is then deemed as invalid data.