alloc<CVariable>

тип “ascii” в функции “ToAscii” должен быть “LPWORD”.
Я пытаюсь выделить его, но для “alloc” допускается только “CVariable”.
Можно выделить память под “LPWORDVar”, но тогда он не подходит в функцию.
Как возможно обойти это?
The “ascii” type in the “ToAscii” function should be “LPWORD”.
I am trying to select it, but for “alloc” only “CVariable” is allowed.
You can allocate memory for “LPWORDVar”, but then it does not fit into the function.
How is it possible to get around this?

memScoped {
var keyboardState = alloc<BYTEVar>()
var ascii = alloc<LPWORDVar>()
ToAscii(wParam.toUInt(), lParam.toUInt(), keyboardState.ptr, ascii, 0 )
}

Решение: заменить " ascii = alloc <LPWORDVar>" на " ascii = alloc <WORDVar>"