Error 998 (Invalid access to memory location) for when calling GetPointerFrameTouchInfo [duplicate]
问题 This question already has answers here : WriteConsole access violation in function call but not from main() (2 answers) Closed 3 years ago . I am trying to call the GetPointerFrameTouchInfo function to get the pointer count but the function seems to fail with Error 998 (Invalid access to memory location). Any idea why that is happening and how I can resolve it? I am trying to call the same inside the hook procedure GetMsgProc as mentioned below: LRESULT WINAPI GetMsgProc(int nCode, WPARAM