Creating REG_QWORD Registry key value type

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I'd like to create a Registry key value where the Registry key value
type is REG_QWORD.

I'm using SetValue(name As String, value As Object), and I understand
that the object type used in this function determines the registry
value type, however I cannot find a type eqivilant in vb.net that will
create the REG_QWORD type (they keep coming out as REG_SZ, REG_BINARY
or REG_DWORD)

Does anyone know how I can do this?


Kind Regards,

Dave
 
Crouchie1998 said:
Create a 64 Bit number then

I've tried doing this without success. If you can provide sample code
that you think may work, it would be appreciated.

Thanks,

Dave
 
Dave,
According to MSDN the SetValue method:

<quote>
Value allowed in the registry can be DWORD, binary, and string. String
values can be represented as the following categories...
</quote>

In VB.NET a QWORD (64-bit number) would be a Long, however reading
RegistryKey.SetValue I get the impression its simply not supported...

Hope this helps
Jay


| I'd like to create a Registry key value where the Registry key value
| type is REG_QWORD.
|
| I'm using SetValue(name As String, value As Object), and I understand
| that the object type used in this function determines the registry
| value type, however I cannot find a type eqivilant in vb.net that will
| create the REG_QWORD type (they keep coming out as REG_SZ, REG_BINARY
| or REG_DWORD)
|
| Does anyone know how I can do this?
|
|
| Kind Regards,
|
| Dave
 
Doh!
I meant to include the link:

http://msdn.microsoft.com/library/d...crosoftwin32registrykeyclasssetvaluetopic.asp

Jay

| Dave,
| According to MSDN the SetValue method:
|
| <quote>
| Value allowed in the registry can be DWORD, binary, and string. String
| values can be represented as the following categories...
| </quote>
|
| In VB.NET a QWORD (64-bit number) would be a Long, however reading
| RegistryKey.SetValue I get the impression its simply not supported...
|
| Hope this helps
| Jay
|
|
| || I'd like to create a Registry key value where the Registry key value
|| type is REG_QWORD.
||
|| I'm using SetValue(name As String, value As Object), and I understand
|| that the object type used in this function determines the registry
|| value type, however I cannot find a type eqivilant in vb.net that will
|| create the REG_QWORD type (they keep coming out as REG_SZ, REG_BINARY
|| or REG_DWORD)
||
|| Does anyone know how I can do this?
||
||
|| Kind Regards,
||
|| Dave
|
|
 
Thanks Jay, i'll just use the RegCreateKeyEx and RegSetValueEx
functions from the win32 api. I know they work.

Regards,

Dave
 

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

Back
Top