Hi Dmitry,
I reviewed our previous discussion on setting up stunnel by envvars...
On WCE, if you really want to have a unic code to manage envvars...
well ok, you have to write a stub for ExpandEnvironmentStrings,
that either performs %XX% replacement from predefined values OR reads those values from a wce-specific "pseudo-env-txtfile".
As there is only ONE user in WCE, it is quite straightforward to write such stub, that will be universal for any wce terminal:
the predefined values can be identical for any wce terminal.
NB : I already mentioned that (re)configuring stunnel through envars is not safe, at least on Win32 platforms:
on those systems, env vars are stored in the registry (and synchronised with specific system calls): every malicious sw that can hack the registry can change env vars, it is of course very easy in we use "user" env vars, not system env vars.