Question

The following code states in a comment that I should "Inject keypresses here by modifying lpv data"; however, I do not understand what "0x80" means.

Since I do not understand what 0x80 represents, I am assuming it is hooking the left arrow key to something in order to be able to use the left arrow key. Once the left arrow key is injected? I assume I can use the now edited left arrow key in a post-message?

Please help and shed some light on this, thanks.

    HRESULT HookGetDeviceState(LPVOID *plpvOut, DWORD cbData, LPVOID lpvData)
    {
        ...
        // Inject keypresses here by modifying lpv data.
        keys[DIK_LEFT] = 0x80;
        return hr;
    }

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top