How can I convert backslash key ('\') to key code?

On my keyboard backslash code is 220, but the method below

(int)'\\'

returns me 92.

I need some generic conversion like

 int ConvertCharToKeyValue(char c)
 {
     // some code here...
 }

Any ideas?

Edit
Report