473,392 Members | 1,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,392 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 8457
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Yogi_Bear_79 | last post by:
I'm Creating new Keys in the registry, but when I do, they always have a Vaule called (Default) type RG_SZ. I need them to be DWord dword:00000005 Is there a way to automaticaly make the...
1
by: Asaf Ganot | last post by:
Hi, I'm looking for a way to retrieve the date type of a registry value using c#. Since I couldn't find a way to do it with 'Microsoft.Win32', I tried to use the good old API call 'RegEnumValue'...
1
by: Shawn | last post by:
i am trying to write a test that would cause a method that writes a registry value name to fail. can anyone tell me if there are any limitations to a registry value name? length? types of...
3
by: JR | last post by:
Hi, How can I delete a registry value in vb.net Jan
3
by: Ravi | last post by:
Hi, Could any one please tell me if there's any way to set the value of a particular registry key equal to that of another registry key that's already present in the registry. Thank you. ...
2
by: Guy | last post by:
I want to create a new value type for hiding the creation of Guid's that can be used in my business classes. I suppose I have to achieve this by creating a struct (ID) The problem is I'm...
2
by: Ben | last post by:
I think I might have found a bug in Visual Studio. The following code should work and doesn't: My.Computer.Registry.LocalMachine.CreateSubKey("Software\Dravet")...
5
by: Brian8568 | last post by:
I'm doing something wrong. I'm trying to delete a registry value with the following code VB 2005 Express: Dim oReg As Microsoft.Win32.RegistryKey oReg =...
1
by: gracepaul | last post by:
hi all, I write a javascript for reading the registry value as follows <script language="javascript" type="text/javascript"> <!-- function ReadRegistry() { var WshShell;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.