title: How to get fully qualified domain name on Windows in Delphi
body: <p>I need to get a fully qualified domain name for a Windows machine on a domain in Delphi.</p>
  
  <p>I've tried to use <code>LookupAccountSid</code> but it gives me only the netbios domain name,
  in my case it is "intranet" but I need the full "intranet.companyname.com"</p>
  
  <p>Any Ideas?</p>