tags:

views:

172

answers:

0

Sigh, I have some code from codeproject (http://www.codeproject.com/KB/cs/globalhook.aspx) for hooking global keyboard and mouse events. Suddenly now when I installed beta 2 of visual studio 2010 and .net framework 4.0 i breaks at this code:

            hKeyboardHook = SetWindowsHookEx(
                WH_KEYBOARD_LL,
                KeyboardHookProcedure,
                Marshal.GetHINSTANCE(
                Assembly.GetExecutingAssembly().GetModules()[0]),
                0);

Oh, and I'm running on a X64 machine. Anyone know a way around this? Not an easy fix I know..