If you moved the php.ini file into the Windows directory, and it's still not loading the GD library... I'm stuck as to what to suggest next. Sorry 🙁
EDIT: Looks like the problem is that PHP is still not parsing the php.ini file. In your phpinfo() output, it's still showing c:\php5 as the extension_dir.
Since you believe you installed PHP as a CGI binary, try setting another environment variable called "PHPRC" that points to the PHP directory where your php.ini file is located... namely D:\PHP . (For more information, see this FAQ entry)