471,578 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,578 software developers and data experts.

Creating REG_QWORD Registry key value type

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
Nov 21 '05 #1
5 8288
Create a 64 Bit number then
"Dave" <de********@gmail.com> wrote in message
news:f8**************************@posting.google.c om...
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

Nov 21 '05 #2
"Crouchie1998" <cr**********@spamcop.net> wrote in message
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
Nov 21 '05 #3
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
"Dave" <de********@gmail.com> wrote in message
news:f8**************************@posting.google.c om...
| 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
Nov 21 '05 #4
Doh!
I meant to include the link:

http://msdn.microsoft.com/library/de...valuetopic.asp

Jay

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%2*****************@TK2MSFTNGP10.phx.gbl...
| 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
|
|
| "Dave" <de********@gmail.com> wrote in message
| news:f8**************************@posting.google.c om...
|| 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
|
|
Nov 21 '05 #5
Thanks Jay, i'll just use the RegCreateKeyEx and RegSetValueEx
functions from the win32 api. I know they work.

Regards,

Dave
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message news:<#3*************@TK2MSFTNGP10.phx.gbl>...

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

Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Yogi_Bear_79 | last post: by
3 posts views Thread by JR | last post: by
3 posts views Thread by Ravi | last post: by
5 posts views Thread by Brian8568 | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
1 post views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.