Hex Editing in .NET
-
22-01-2021 - |
سؤال
I want to edit a hex location (for eg.0x90F10-0x90F15) in a DLL file.
Is there any library or APIs by which I can do it in .NET?
المحلول
Call
File.OpenWrite
to get aFileStream
for your fileSet
Stream.Position
to jump to the location you want to editCall
Stream.Write
to overwrite bytes in the file.
نصائح أخرى
Since you don't provide much detail or source only a general pointer:
Try System.IO.File
- you can read and write any byte/byte array...
لا تنتمي إلى StackOverflow