|
-
May 28th, 2000, 08:57 AM
#1
Thread Starter
Junior Member
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)
-
May 29th, 2000, 05:19 AM
#2
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.
-
May 30th, 2000, 07:26 AM
#3
New Member
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?
-
May 30th, 2000, 07:39 AM
#4
I checked the ASCII chart and it said that Character 127 (7F) is not supported by Windows.
-
May 31st, 2000, 08:25 PM
#5
Thread Starter
Junior Member
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|