|
|
#1 |
|
Junior Member
Join Date: May 00
Location: New Delhi, India
Posts: 18
![]() |
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) |
|
|
|
|
|
#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 |
|
|
|
#3 |
|
New Member
Join Date: May 00
Posts: 5
![]() |
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?
|
|
|
|
|
|
#4 |
|
Guest
Posts: n/a
|
I checked the ASCII chart and it said that Character 127 (7F) is not supported by Windows.
|
|
|
|
#5 |
|
Junior Member
Join Date: May 00
Location: New Delhi, India
Posts: 18
![]() |
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) |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|