ToUnicode function Null safety user32

int ToUnicode(
  1. int wVirtKey,
  2. int wScanCode,
  3. Pointer<Uint8> lpKeyState,
  4. Pointer<Utf16> pwszBuff,
  5. int cchBuff,
  6. int wFlags

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


int ToUnicode(int wVirtKey, int wScanCode, Pointer<Uint8> lpKeyState,
        Pointer<Utf16> pwszBuff, int cchBuff, int wFlags) =>
    _ToUnicode(wVirtKey, wScanCode, lpKeyState, pwszBuff, cchBuff, wFlags);