If I just create a simple Win32 console app and include windows.h it works fine. Now I can't just include windows.h in the MFC app as that creates an error and I was under the impression that an MFC app would handle the windows.h include on it's own. I am using VC++ 6 with latest service pack and sdk. Any Answer as to why GetComputerNameEx is not working for me?