To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > API

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old May 28th, 2000, 09:57 AM   #1
Kazim Zaidi
Junior Member
 
Join Date: May 00
Location: New Delhi, India
Posts: 18
Kazim Zaidi is an unknown quantity at this point (<10)
Can Anyone tell me How to set Binary Values in Registry (with description and code, please)? I know how to set string values...

Thanks in Advance Kazim Zaidi
__________________
Kazim Zaidi (the cracker)
Kazim Zaidi is offline   Reply With Quote
Old May 29th, 2000, 06:19 AM   #2
Guest
 
Posts: n/a
Use the RegSetValueEx API.

Code:
Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String,
ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
When setting the type, specify it as REG_BINARY.
  Reply With Quote
Old May 30th, 2000, 08:26 AM   #3
wchilde
New Member
 
Join Date: May 00
Posts: 5
wchilde is an unknown quantity at this point (<10)
I was interested in the answer to this question also. I tried the API call several different ways and they all failed. The problem is that some of the binary characters can't be duplicated, i.e, if you look in the registry there are sets of numbers to the left and then strange looking characters to the right. I found I could write the strange chartacters to a file, then read the file and write the strange characters to the registry, all except for one character, the one representing the number 7F. Is there a way to convert 7F to the funny character before I plug it in?
wchilde is offline   Reply With Quote
Old May 30th, 2000, 08:39 AM   #4
Guest
 
Posts: n/a
I checked the ASCII chart and it said that Character 127 (7F) is not supported by Windows.
  Reply With Quote
Old May 31st, 2000, 09:25 PM   #5
Kazim Zaidi
Junior Member
 
Join Date: May 00
Location: New Delhi, India
Posts: 18
Kazim Zaidi is an unknown quantity at this point (<10)
Unhappy My Opinion...

My opinion is that the character 7F is vbCr, vbLf, or vbCrLf. (It looks like!) Anyway...My question is that what data should I send in that Data parameter. I used to send the string with REG_SZ. Someone told me to send array..or something like that...Please tell briefly.


Thanks in Advance
__________________
Kazim Zaidi (the cracker)
Kazim Zaidi is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > API


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


All times are GMT -5. The time now is 02:36 PM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.