Version 1.3.31 supports Windows_x86, I was waiting for this. I decided to transfer the WORKING code from 64 bits to 32 bits. But the compiler does not want everything to be so simple.
What could be the problem?
“main.kt:114:23: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun Long.toCPointer(): CPointer<KBDLLHOOKSTRUCT /* = tagKBDLLHOOKSTRUCT */>? defined in kotlinx.cinterop
val info = lParam.toCPointer()!!.pointed”
val info = lParam.toLong().toCPointer()!!.pointed
But why does it work to target x_64?
Because on 64-bit Windows lParam is Long (64-bit ), and on 32-bit - Int (32-bit).