Something like
static const struct
{
HKEY key;
const WCHAR *long_name;
const WCHAR *short_name;
}
keys[] =
{
{HKEY_LOCAL_MACHINE, {'H','K','E','Y','_','L','O','C','A','L','_','M','A','C','H','I','N','E',0}, {'H','K','L','M',0}},
...
};
As Jonathan pointed out in a private message this does not work. Is there a canonical way to handle this? All solutions I found are somewhat ugly or I'm not sure if they are correct.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird -
http://www.enigmail.net/
iQIcBAEBAgAGBQJUOqgiAAoJEN0/YqbEcdMwEuIP/iy3swubF5W7ewy/Q1zZK3Zr
VApEOGOQM6vGaSp2hjFcbbwwaHV8OU9ebz7MFYrMCaGyhVrPt0WoCt2SZetZQPlJ
Uu6nIR2zhtIxRjYyiOI3b8w53EChUiUkOLMWPGcFpjXgB7Jf6G5OVuyIJONDJzDi
XyyMXdDujj/JUHgWOErGk8j/Jvk7+G7nUn+IQiTZvn6rCdgZY7AZJE9VbNDiggBj
8kEG5Rl6LSq2iuaxubXbnzwkExPen0+tRIZH1N16vkf9yDJXdPLNOFXvLzruRHqn
4f50JHJ+wwzH2Es/a4SOS9f/DMCsWCBFqwNK1oKkAVVDnXeBbZvMdzL/1KxZ90We
aqgSm4q9QvzRvSMIe8QY3YA1YbQ3pnrLEop3wgUqJJa0ngVLuRi/TJwecHmQX9XE
LeMFgtGG4Kkq+WDNXlUeMavVw5vBMDR2QQR4GMMreX3IZ9UYlyTSZbmZmVic3u8K
NoVwbsI2nrO9dv9/Bp/xh20wIlVjJoDjWhjP9fhf7kdPZmN9U90Qihv/zhB0UQbz
gKC/vvn0IcuJRrhycxq2h8qd0dvYWbdXUMqpNgFnQeTN6R7X2MbVvIeYzgWPBdEj
21acS3aUwJwaDu+9FwGeK4uuK4eFF3bhn84WtbwpVq9HH+Bzxg1BLoh+9sDM8udC
jcsfeBYrK8zv9ebH4LLU
=Qa8/
-----END PGP SIGNATURE-----