[DllImport("user32.dll")]
static extern int ToUnicode(uint wVirtKey, uint wScanCode, byte [] lpKeyState,
[Out, MarshalAs(UnmanagedType.LPWStr,SizeConst=64)] StringBuilder pwszBuff, int cchBuff,
uint wFlags);
None.
Depending on the actual Size of the String which needs to be translated, one must be careful to adjust the SizeConst of the pwszBuff. I had weird memory problems until I nailed the size which seems plausible because the size is passed with the parameter cchBuff anyway.
Please add some!
Please add some!
Do you know one? Please contribute it!