1. Big thanks for your help, lirc works correctly, I made a config file.
 
2. How can I work with lirc, how can I use Lirc for my own c programm? Has anybody a example programm in c?