Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing a Binary value to the registry

Status
Not open for further replies.

hervebin

IS-IT--Management
Feb 21, 2002
35
0
0
FR
Hello

I know how extract a binary value from the registry.
For example, I know write in a text file the binary value of a binary key.
So in my file I have: "value"=34 56 78 01

But I don't know how I can write this value in another key.
In fact, I don't how modify or create a key from a string value.
Can you help me ?
 
Basically, you have to pass this parameter as an array so it'll look like this...

RegSetValueExA(OpenRegkeyHandle, ValueName, 0&, REG_BINARY, ValueDataBinary(0), ValueDataLength)

where ValueDataBinary = Array(a,b,c,d....)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top