HookingintotheWindowsAPIisacomplicatedprocessandthereareseveraltechniquestoachievethis.MicrosoftrecommendsthatthecallbackprocedureformosthooksshouldresidewithinaDLL,thisisthemethodusedbytheTCPMouseHookComponent.TheComponentencapsulatestheproceduresandfunctionswithintheseparateDLLand