Pocket pc's infrared port

Hi all,
Has anyone tried to capture an event from the IR port of a mobile device? For example the flash player will respond when someone beams you a file.

Anyone?

Thanks