Delphi 2006: What are the current easiest way to: 1 - Detect if running in IDE? (google gives some complex code - I thought there was a simple way) Best I have seen so far is: begin if DebugHook<>0 then ShowMessage('Running in IDE'); End; 2 - Get Windows Version - Still GetVersionEx? (enough to know if Windows 95/98 or Windows 2000 or Windows XP) John