title: WH_KEYBOARD_LL hook, possible to use heap memory inside?
body: <p>I need to set a variable in my program's main() by the result of a WM_KEYUP/DOWN inside of LowLevelKeyboardProc().  I need to set a float variable to 1 on KEYDOWN and 0 on KEYUP, that float being allocated in main().  I don't think it's a good idea to use global variables, so is it possible to do this, or is there an easier method of getting keypresses quickly?  I am using C.  </p>