>> + ULONG i = 30 * 1000; > > Can we give a meaningful name to this value and put it in a header file? > and document what it is for? 1000 * 1000 meant 1 second. 30 * 1000 is some arbitrary value without a meaningful name.