Welcome to the SRP Forum! Please refer to the
SRP Forum FAQ post
if you have any questions regarding how the forum works.
REG_BINARY with srp_registry
Is it possible to write a value to the registry of the type "REG_BINARY" with the srp_registry function?
Regards Ed Keeman
No. Only strings are supported right now. Supporting binary will require additional DLL stubs. The registry is also not the ideal place to store data these days. Microsoft asks developers to simply store files into the user's app data directory.
We don't want to store data, we have OI.
For automation we want to manage settings for office programs in the registry.
In this case the settings are REG_BINARY type.
Regards, Ed Keeman
I see. There should be a DLL_SRP_USER32 record in the SYSPROCS table with the DLL stubs we defined for the SRP_Registry module. You could use that to create new stubs that will allows you to pass raw binary data to the APIs. But it will require you to call all these APIs directly.
If you would rather I added REG_BINARY support to SRP_Registry, then send me an email to make arrangements.
Sorry for late response.
We made a workaround by importing a .reg file.
But maybe in a new release it would be nice if SRP_REGISTRY could do the job.
Our problem is/was with importing a big REG_BINARY