How to detect the yellow scan button press on Windows CE in C++  ?

Is it possible to detect the press and release of the yellow scan button from code in C++?

 

I am using Scan and RFID API already, but some times I need to scan on the button press and others to read RFID tag.

 

Thanks

Filipe Madureira