Results 1 to 5 of 5

Thread: Registry Question???

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    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. #2
    Guest
    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.

  3. #3
    New Member
    Join Date
    May 2000
    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. #4
    Guest
    I checked the ASCII chart and it said that Character 127 (7F) is not supported by Windows.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Location
    New Delhi, India
    Posts
    18

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width