I have a compiled resource file (.res). I need to read it in C # so that I can change it programmatically. note that this is not a .resx or .rc file; The file is compiled, not text.
So far, I have been trying to browse LoadLibrary, LoadResource, etc. in the Win32 API, but it seems that these functions only work with executable files (.exe, .dll), not resource files.
I tried uploading the file using BinaryReader , but of course I cannot understand the meaning of the resulting byte array. I was thinking of trying to use Marshal.PtrToStructure , but I have no idea about the structure of the res file. I have a RESOURCEHEADER structure, but I could not figure out how to use it (I admit that I have very few relatives, code).
Can someone help me figure out how to successfully read and update version information in a .res file?
source share