From what i understand. If you want to make it every 2 hours you need to change this line.
if((ctime.GetMinute() % 30 == 0) && m_bMutex == FALSE ) // jede 30 Minuten
Change 30 to 120. (30=30minutes so if you make it 120 it will be equals to 2 hours.)
then about the AUTO_OPEN_IDC
7 02 00
7 = Day of the week
02 00 = 2AM
It's based in american 24 hours.
Even though I edited it like I said above. I ended up having this