Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with KVM VMware (vmware-kvm.exe) #6

Open
saravanabalagi opened this issue Oct 14, 2016 · 1 comment
Open

Doesn't work with KVM VMware (vmware-kvm.exe) #6

saravanabalagi opened this issue Oct 14, 2016 · 1 comment

Comments

@saravanabalagi
Copy link

I tried my best to make it work, but.... I replaced the window class names in vmware_scroll_start.cpp by seeing what window class the vmware-kvm would have, using spyxx.exe

#include <windows.h>
#include <sstream>
#include "..\hook\hook.h"

using namespace std;

int CALLBACK WinMain(
    _In_  HINSTANCE hInstance,
    _In_  HINSTANCE hPrevInstance,
    _In_  LPSTR lpCmdLine,
    _In_  int nCmdShow
    )
{
    HWND phwnd = FindWindowEx(NULL, NULL, L"VMware.vmkvm.Frame", NULL);
    HWND hwnd = phwnd;
    auto res = hwnd ? !InjectDll(hwnd) : 2;
    wstringstream wss;
    wss << "vmware_scroll_start result: " << res;
    MessageBox(NULL, wss.str().data(), L"", MB_OK | MB_ICONASTERISK);
    return res;
}

after lot of experimentation, the above code successfully binded it within kvm, but with a huge flaw: two-finger-scroll stopped working in host and so was not accessible in guest too; that said, other two finger actions like pinch-zoom-in-out worked in both host and the guest.

Tried restarting SynTPEnh.exe and no use: I didn't get my two finger scroll back. I hope a small change made to this code would make it work for kvm :) Help me

@saravanabalagi
Copy link
Author

saravanabalagi commented Oct 14, 2016

Here's everything Andrew and I did: Stackexchange Chat.
No idea what causes ceasing two finger scrolls on host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant