Windows 7 Forums


Reply
Thread Tools

Dword or Qword?

 
 
sethm1 sethm1 is offline
Established Member
Join Date: Oct 2009
Posts: 171
Thanked: 0
 
      03-07-2010
I have a Win 7 PC using 64 Bit.

When entering a new name in the Registry and the particular tweak that I am reading says to create a new Dword, instead should it not be a Qword - which is 64 Bit entry?
 
Reply With Quote
 
 
 
 
clifford_cooley clifford_cooley is offline
(c_c)
clifford_cooley's Avatar
Join Date: Mar 2009
Location: Arkansas, USA
Posts: 4,441
Thanked: 924
 
      03-07-2010
That would depend on the length of your entry. You would only need to use a Qword if your entry calls for it. Dword and Qword has nothing to do with the bit version of Windows.

To make things simple a Qword is four 16-bit words not one 64-bit word. This is why a Qword can exist on a x86 machine.

Quote:
Some computer architectures define the term dword (double word) to be a unit of data that is twice the size of a word. The x86 platform originally had a word size of 16 bits (2 bytes) and that usage of the term is confusingly retained even though the actual processor word size is now 32 bits or even 64 bits. In that platform, a dword designates a 32-bit (4-byte) unit.

Similarly qword (quadruple word) is a unit of data that is four times the size of a word. On the x86 platform, this unit of data is 64 bits long because the definition of word on an x86
Read more here - http://en.wikipedia.org/wiki/Dword#Dword_and_Qword
 
Reply With Quote
 
sethm1 sethm1 is offline
Established Member
Join Date: Oct 2009
Posts: 171
Thanked: 0
 
      03-07-2010
thanks for the explaination
 
Reply With Quote
 
amecurty amecurty is offline
New Member
Join Date: May 2010
Posts: 2
Thanked: 0
 
      05-16-2010
but for example, if I wanted to create a Dword entry on regedit with the corresponding hexadecimal value of 5GB, would it accept it and show 5GB on the add/remove programs? Cause I tried that but the maximum value it shows is 3.99GB so i was wondering if changing to Qword it'll show 5GB.
Thanks
 
Reply With Quote
 
clifford_cooley clifford_cooley is offline
(c_c)
clifford_cooley's Avatar
Join Date: Mar 2009
Location: Arkansas, USA
Posts: 4,441
Thanked: 924
 
      05-17-2010
That would probably depend on the program reading the registry entry. I wouldn't know what the results would be by manually changing the value from dword to qword. My guess would be if the program was designed to read a qword value, that would be the value found in the registry. You can try because it is possible, I simply can not say for sure it will work.

Please be careful, editing the registry can render an operating system useless.
 
Reply With Quote
 
amecurty amecurty is offline
New Member
Join Date: May 2010
Posts: 2
Thanked: 0
 
      05-17-2010
yeah.. I've tried it and didn't work and didn't show anything at all. But thanks for your reply.
 
Reply With Quote
 
brock samson brock samson is offline
New Member
brock samson's Avatar
Join Date: Sep 2011
Posts: 5
Thanked: 0
 
      09-09-2011
Quote:
Originally Posted by clifford_cooley View Post
That would depend on the length of your entry. You would only need to use a Qword if your entry calls for it. Dword and Qword has nothing to do with the bit version of Windows.

To make things simple a Qword is four 16-bit words not one 64-bit word. This is why a Qword can exist on a x86 machine.


Read more here - http://en.wikipedia.org/wiki/Dword#Dword_and_Qword
I wanted to get more detail/clarification on Dword vs Qword when you say it depends on the length of the entry - is this like how many characters are in the subkey or like how many characters are in the decimal value of said subkey or is it something else entirely?

To give an example when you find windows specific tweaks that changes how windows 7 behaves or some speed items up - here is a example link to a quick google search I did that hopefully better explains my question http://www.wincert.net/forum/index.p...bnail-preview/ This link is just one example.

So to make sure I am asking the correct question....when performing OS tweaks like this - If you are running 32bit windows - do you select Dword? and if you are running 64bit windows can/should you select Qword? Or if it more the length of the entry - how does one know when looking at the tweak of which type of key to select?
 
Reply With Quote
 
clifford_cooley clifford_cooley is offline
(c_c)
clifford_cooley's Avatar
Join Date: Mar 2009
Location: Arkansas, USA
Posts: 4,441
Thanked: 924
 
      09-09-2011
REG_DWORD - 32-bit number
  • The range of integer values that can be stored in 32 bits is 0 through 4,294,967,295. Hence, a processor with 32-bit memory addresses can directly access 4 GB of byte-addressable memory.

REG_QWORD - 64-bit number
  • A 64-bit register can store 2^64 (2 to 64th power) = 18,446,744,073,709,551,616 different values.

I think there are other uses for DWORD and QWORD but you get the picture. A QWORD is simply twice the length of a DWORD, looking at it from a length stand point of how many bits the value was stored with.

I wish I could tell you all the ins and outs without any doubts. This is about the extent of what I understand myself.
 
Reply With Quote
 
brock samson brock samson is offline
New Member
brock samson's Avatar
Join Date: Sep 2011
Posts: 5
Thanked: 0
 
      09-09-2011
I understand the math behind 32/64 bit processors and the powers 2^32, when you do the math that is why 32bit windows can only use up to 4GB of Ram and why 64 bit can use so much more...but this info does not address my question....maybe I am not making myself clear or am asking the wrong question.
 
Reply With Quote
 
clifford_cooley clifford_cooley is offline
(c_c)
clifford_cooley's Avatar
Join Date: Mar 2009
Location: Arkansas, USA
Posts: 4,441
Thanked: 924
 
      09-09-2011
Maybe it would help if I knew why you were asking.

What is it exactly that brings this question to the table?
Are you working on something that requires the use of DWORD or QWORD?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 11:10 PM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33