How to enter '0x10' in registry DWORD?

T

Terry Pinnell

In some MS instructions about modifying a registry key, I read this:
"Change the value of the REG_DWORD entry for this subkey to one of
following:
0x00
0x01
0x02
..
..
0x10"

Does that mean that for 0x10, for example, I actually enter 10 (or
0010, both give same result)?
The result in regedit is '0x00000010 (16)'
 
W

Wesley Vogel

Hi Terry,
0x00 = 0
0x01 = 1
0x02 = 2
0x10 = 16 in decimal

To get 0x00, type 0 in the value data box.
To get 0x02, type 2 in the value data box.
To get 0x10, type 10 in the value data box.

The result in regedit is '0x00000010 (16)'

0x00000010 is hexadecimal number, it equals 16 in decimal.

Open the Windows Calculator.
Click on the View menu.
Click Scientific.
Click the Hex radio button.
Type 10 in the window.
Click the Dec radio button.

You have just converted 10 (Hex) to 16 (Decimal)

Calculator HELP: To convert a value to another number system

Paste the following line into Start | Run and click OK...

hh calc.chm::/calc_number_system.htm

hexadecimal
A base-16 number system represented by the digits 0 through 9 and the
uppercase or lowercase letters A (equivalent to decimal 10) through F
(equivalent to decimal 15).

9 decimal = 9 hex
10 decimal = A hex
15 decimal = F hex
16 decimal = 10 hex
17 decimal = 11 hex

See the Binary | Decimal | Hexadecimal chart here...
http://whatis.techtarget.com/definition/0,,sid9_gci212247,00.html

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
K

Ken Blake, MVP

Wesley said:
Hi Terry,


To get 0x00, type 0 in the value data box.
To get 0x02, type 2 in the value data box.
To get 0x10, type 10 in the value data box.


Typo? You mean 16, I assume, not 10.
 
T

Terry Pinnell

Wesley Vogel said:
Hi Terry,


To get 0x00, type 0 in the value data box.
To get 0x02, type 2 in the value data box.
To get 0x10, type 10 in the value data box.



0x00000010 is hexadecimal number, it equals 16 in decimal.

Open the Windows Calculator.
Click on the View menu.
Click Scientific.
Click the Hex radio button.
Type 10 in the window.
Click the Dec radio button.

You have just converted 10 (Hex) to 16 (Decimal)

Calculator HELP: To convert a value to another number system

Paste the following line into Start | Run and click OK...

hh calc.chm::/calc_number_system.htm

hexadecimal
A base-16 number system represented by the digits 0 through 9 and the
uppercase or lowercase letters A (equivalent to decimal 10) through F
(equivalent to decimal 15).

9 decimal = 9 hex
10 decimal = A hex
15 decimal = F hex
16 decimal = 10 hex
17 decimal = 11 hex

See the Binary | Decimal | Hexadecimal chart here...
http://whatis.techtarget.com/definition/0,,sid9_gci212247,00.html

Thanks Wes.
 
W

Wesley Vogel

Typo? You mean 16, I assume, not 10.

Not if the Base is set to Hexadecimal in the Edit DWORD Value dialog, Ken.

It is my understanding that the prefix 0x denotes hex.

So, to get 0x10 for a REG_DWORD value with the Base set to Hex you type 10
into the Value data box in the Edit DWORD Value dialog. It will display as
0x00000010 (16) in the right hand pane of regedit.

I looked for something that had that value in the registry that might be the
same on your machine, for example....
HKEY_CLASSES_ROOT\Folder\shell\open
Value Name: BrowserFlags
Data Type: REG_DWORD
Value Data: 0x00000010 (16)
or
[HKEY_CLASSES_ROOT\Folder\shell\open]
"BrowserFlags"=dword:00000010

Edit DWORD Value dialog picture
http://h30187.www3.hp.com/media/content/course/3972/resources/AdvWinXP04fg08.jpg

Value name:
[[Displays the current name of the value.
If you want to rename the value, click Cancel. Then click the name of the
key or value (be sure to click the name of the file and not its icon), type
the new name, and press ENTER.]]

Value data:
[[Provides a space for you to type the new data for this value.]]

Base:
[[Specifies whether you want the DWORD value to be based on hexadecimal or
decimal notation.]]

In computer science, a dword (double word) is a unit of data that is twice
the size of a word and half the size of a qword. On the x86 platforms, which
have a wordsize of 16 bits, a dword unit of data is 32 bits long.

REG_DWORD
A 32-bit (4-byte) number. Boolean ("True" or "False", "0" is disabled and
"1" is enabled) values and many entries for device drivers and services use
this data type. REG_DWORD data can be displayed and entered in hexadecimal
or decimal format in the registry editor Regedit.exe.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
K

Ken Blake, MVP

Wesley said:
Not if the Base is set to Hexadecimal in the Edit DWORD Value dialog,
Ken.
It is my understanding that the prefix 0x denotes hex.


Sorry, I had mistakely assumed you were telling him to enter it in decimal.


--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup


So, to get 0x10 for a REG_DWORD value with the Base set to Hex you
type 10 into the Value data box in the Edit DWORD Value dialog. It
will display as 0x00000010 (16) in the right hand pane of regedit.

I looked for something that had that value in the registry that might
be the same on your machine, for example....
HKEY_CLASSES_ROOT\Folder\shell\open
Value Name: BrowserFlags
Data Type: REG_DWORD
Value Data: 0x00000010 (16)
or
[HKEY_CLASSES_ROOT\Folder\shell\open]
"BrowserFlags"=dword:00000010

Edit DWORD Value dialog picture
http://h30187.www3.hp.com/media/content/course/3972/resources/AdvWinXP04fg08.jpg

Value name:
[[Displays the current name of the value.
If you want to rename the value, click Cancel. Then click the name of
the key or value (be sure to click the name of the file and not its
icon), type the new name, and press ENTER.]]

Value data:
[[Provides a space for you to type the new data for this value.]]

Base:
[[Specifies whether you want the DWORD value to be based on
hexadecimal or decimal notation.]]

In computer science, a dword (double word) is a unit of data that is
twice the size of a word and half the size of a qword. On the x86
platforms, which have a wordsize of 16 bits, a dword unit of data is
32 bits long.
REG_DWORD
A 32-bit (4-byte) number. Boolean ("True" or "False", "0" is disabled
and "1" is enabled) values and many entries for device drivers and
services use this data type. REG_DWORD data can be displayed and
entered in hexadecimal or decimal format in the registry editor
Regedit.exe.

In
Ken Blake said:
Typo? You mean 16, I assume, not 10.
 
W

Wesley Vogel

No problem, Ken. I have been wrong before and probably will again. ;-)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Ken Blake said:
Wesley said:
Not if the Base is set to Hexadecimal in the Edit DWORD Value dialog,
Ken.
It is my understanding that the prefix 0x denotes hex.


Sorry, I had mistakely assumed you were telling him to enter it in
decimal.

--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup


So, to get 0x10 for a REG_DWORD value with the Base set to Hex you
type 10 into the Value data box in the Edit DWORD Value dialog. It
will display as 0x00000010 (16) in the right hand pane of regedit.

I looked for something that had that value in the registry that might
be the same on your machine, for example....
HKEY_CLASSES_ROOT\Folder\shell\open
Value Name: BrowserFlags
Data Type: REG_DWORD
Value Data: 0x00000010 (16)
or
[HKEY_CLASSES_ROOT\Folder\shell\open]
"BrowserFlags"=dword:00000010

Edit DWORD Value dialog picture
http://h30187.www3.hp.com/media/content/course/3972/resources/AdvWinXP04fg08.jpg

Value name:
[[Displays the current name of the value.
If you want to rename the value, click Cancel. Then click the name of
the key or value (be sure to click the name of the file and not its
icon), type the new name, and press ENTER.]]

Value data:
[[Provides a space for you to type the new data for this value.]]

Base:
[[Specifies whether you want the DWORD value to be based on
hexadecimal or decimal notation.]]

In computer science, a dword (double word) is a unit of data that is
twice the size of a word and half the size of a qword. On the x86
platforms, which have a wordsize of 16 bits, a dword unit of data is
32 bits long.
REG_DWORD
A 32-bit (4-byte) number. Boolean ("True" or "False", "0" is disabled
and "1" is enabled) values and many entries for device drivers and
services use this data type. REG_DWORD data can be displayed and
entered in hexadecimal or decimal format in the registry editor
Regedit.exe.

In
Ken Blake said:
Wesley Vogel wrote:

Hi Terry,

0x00 = 0
0x01 = 1
0x02 = 2
0x10 = 16 in decimal

To get 0x00, type 0 in the value data box.
To get 0x02, type 2 in the value data box.
To get 0x10, type 10 in the value data box.


Typo? You mean 16, I assume, not 10.

--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup



The result in regedit is '0x00000010 (16)'

0x00000010 is hexadecimal number, it equals 16 in decimal.

Open the Windows Calculator.
Click on the View menu.
Click Scientific.
Click the Hex radio button.
Type 10 in the window.
Click the Dec radio button.

You have just converted 10 (Hex) to 16 (Decimal)

Calculator HELP: To convert a value to another number system

Paste the following line into Start | Run and click OK...

hh calc.chm::/calc_number_system.htm

hexadecimal
A base-16 number system represented by the digits 0 through 9 and
the uppercase or lowercase letters A (equivalent to decimal 10)
through F (equivalent to decimal 15).

9 decimal = 9 hex
10 decimal = A hex
15 decimal = F hex
16 decimal = 10 hex
17 decimal = 11 hex

See the Binary | Decimal | Hexadecimal chart here...
http://whatis.techtarget.com/definition/0,,sid9_gci212247,00.html


In Terry Pinnell <[email protected]> hunted and pecked:
In some MS instructions about modifying a registry key, I read
this: "Change the value of the REG_DWORD entry for this subkey to
one of following:
0x00
0x01
0x02
.
.
0x10"

Does that mean that for 0x10, for example, I actually enter 10 (or
0010, both give same result)?
The result in regedit is '0x00000010 (16)'
 
W

Wesley Vogel

You betcha, Terry.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top