Just discovered a bug in the SetDoubleClickTime() function. If you pass it the value of 1, a divide by zero exception occurs. Though the error may not cause the program to crash, later you will notice that any attempt to click on a folder icon in windows explorer will cause an illegal operation, and you have to reboot.
Compile and run this to see for yourself:
Then just click on - say, the MyComputer icon...KABOOM!Code:#include <windows.h> int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { SetDoubleClickTime(1); return 0; }