Does anyone know if a function exists in DirectInput where I can input an ascii character (or array, in the case of caps lock, etc.) and get a return value of the matching key's DIK code?

Basically, I want to do is read in a config file with key bindings, look up the key for that action and then assign its DIK to that functionality.

Thanks,
Arrow