LPWSTR data[256];
ToUnicode(vk_code, 0, 0, *data, 256, 0);
This code throws the following exception:
Access violation writing location 0xCCCCCCCC.
The vk_code
value seemed to be perfectly normal at the breakpoint, and I checked with msdn to make sure my arguments were valid. What could I be doing wrong?