展开全部#include <Registry.hpp>TRegistry *reg = new TRegistry;reg->RootKey = HKEY_CURRENT_USER;if (reg->OpenKey("\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings",false)) if (reg->ValueExists("ProxyServer")) ShowMessage(reg->ReadString("ProxyServer"));reg->CloseKey();delete reg;reg = NULL;