In this thread threre is a working demo of how to update LVARs via SimConnect.
In that thread you also find a link to another demo for reading/writing LVARs.
The basic concept is to create a WASM (in process) module which handles the LVAR access. Any out of process software can use SimConnect to communicate with that WASM module.
My software which beneath other functionalities binds my DIY A320 FCU and EFIS to MSFS is working in the way described above. My WASM is built in C++ (no other frameworks involved). My out of process SimConnect client is written in C#, using SimConnect to communicate with the WASM which is a SimConnect client itself.
Both in process and out of process parts use the same configuration wich is basically a list of LVARs to use. That way I can ensure that both parts do not differ concerning LVAR usage.
Regards