When i see windows interaction and 'hack together', i think Win32::API. The module will load a DLL file, and let you use functions from it (but you need to know the functions and arguments). I am not sure the DLL, but that would be my first guess..
can't sleep clowns will eat me
-- MZSanford