When reading either of these questions or the EmacsWiki article about mapping Caps Lock to Control in emacs in Windows, the best answers seem to involve the registry. My question is what a user can do when they can't modify the registry of the machine because they don't have admin rights. Is there a way to do the mapping from within emacs? This article comes oh-so-close, even saying, "As people have mentioned, you can of course map Caps-Lock to other keys instead, for example the Control key." But I can't figure out how to represent the control key (using various references that look pretty comprehensive but might not be Windows-centric), trying things like
(setq w32-enable-caps-lock nil)
(global-set-key [capslock] '[control])
and
(setq w32-enable-caps-lock nil)
(global-set-key [capslock] 'ctl-x-map)
which don't seem to work.