How do I add the file into the resources? And when I copied the code there were some errors like:

Type 'EventVB.APIFunctions' is not defined.
Name 'WH_KEYBOARD_LL' is not declared.
Name 'HOOK_GLOBAL' is not declared.
Name 'WH_KEYBOARD_LL' is not declared.
Name 'vbKeyTab' is not declared.

Can anyone help?