Link to home
Start Free TrialLog in
Avatar of Caro0101
Caro0101Flag for Canada

asked on

InternetQueryOption() & INTERNET_VERSION_INFO

Hi,

I'm trying to have a function that checks to see what version of Explorer the PC is running.

INTERNET_VERSION_INFO structVI;
      DWORD dwStructSize = sizeof(INTERNET_VERSION_INFO);
      InternetQueryOption(NULL,INTERNET_OPTION_VERSION, (LPVOID) &structVI, &dwStructSize);
      CString minorVersion = structVI.dwMinorVersion;
      if(minorVersion >= 1)
            return true;
      else
            return false;

I get this error:
SmartClassMenuView.obj : error LNK2001: unresolved external symbol __imp__InternetQueryOptionA@16
k:\out\out\03\exec\Debug/SmartClass.exe : fatal error LNK1120: 1 unresolved externals

I've include the right header file which is "Wininet.h".

If you read the documentation in MSDN for InternetQueryOption it also talks about a "WinInet.lib" Is that is what is missing and if so where do I include that or find that library

Thank you
ASKER CERTIFIED SOLUTION
Avatar of Zizzer
Zizzer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial