please help me

i want to capture the IRQ of the LPT1 port or another IRQ address pin
i have a to plug a electronic project on my LPT and i want that when an input is toggle my VB interface take a look at the port

does i need a DLL or else to do this!!!!!