ToUnicode function Null safety user32
Translates the specified virtual-key code and keyboard state to the corresponding Unicode character or characters.
int ToUnicode(
UINT wVirtKey,
UINT wScanCode,
const BYTE *lpKeyState,
LPWSTR pwszBuff,
int cchBuff,
UINT wFlags
);
Implementation
int ToUnicode(int wVirtKey, int wScanCode, Pointer<Uint8> lpKeyState,
Pointer<Utf16> pwszBuff, int cchBuff, int wFlags) {
final _ToUnicode = _user32.lookupFunction<
Int32 Function(
Uint32 wVirtKey,
Uint32 wScanCode,
Pointer<Uint8> lpKeyState,
Pointer<Utf16> pwszBuff,
Int32 cchBuff,
Uint32 wFlags),
int Function(int wVirtKey, int wScanCode, Pointer<Uint8> lpKeyState,
Pointer<Utf16> pwszBuff, int cchBuff, int wFlags)>('ToUnicode');
return _ToUnicode(wVirtKey, wScanCode, lpKeyState, pwszBuff, cchBuff, wFlags);
}