Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to hook the keyboard. [VB.NET] [TuT]
#43
don't mean to bump an old thread here, but when debugging this even after I disable the Visual Studio hosting process this gives me an error when a key is pressed inside the KeyboardProc(integer,integer,kbdllhookstruct) function on the return stating "PInvoke Stack Imbalance...A call to PInvoke function 'XXXX!XXXX.KeyboardHook::CallNextHookEx' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature."

However after compiling and running from the exe it works fine without issue.
Reply


Messages In This Thread
RE: How to hook the keyboard. [VB.NET] [TuT] - by false74 - 07-21-2011, 09:27 AM
RE: How to hook the keyboard. [VB.NET] [TuT] - by Jamimartin - 09-23-2019, 11:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  VB.NET Port Scanner [TUT] Fragma 30 14,413 11-27-2012, 11:26 PM
Last Post: ƃu∀ ıʞƃu∀
  [TUT] MD5 Encrypter & Finder [VB.NET] Fragma 12 7,836 11-25-2012, 10:36 PM
Last Post: ƃu∀ ıʞƃu∀
  [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] Statics 95 61,739 10-07-2012, 06:56 AM
Last Post: a99
  [TUT]Auto-Update System[TUT] HB Virus 3 2,425 01-07-2012, 02:21 PM
Last Post: Mastermrz
  [TUT]Enable and Disable TaskManger in vb.net [TUT] HB Virus 4 3,163 12-19-2011, 10:10 AM
Last Post: euverve

Forum Jump:


Users browsing this thread: 14 Guest(s)