Geoff Chappell - Software Analyst
This function gets a simple indicator of the user interface version.
DWORD GetUIVersion (VOID);
The function returns the user interface version, if successful, else zero.
The user interface version number is, for the most part, just the major version number of the Win32 shell, as learnt from SHELL32.DLL using the well-documented DllGetVersion technique.
The function returns trivially if the user interface version is known from earlier.
If SHELL32.DLL appears not to be already loaded, the function fails. If SHELL32.DLL appears not to export a function named DllGetVersion or if this DllGetVersion function fails when called to fill a DLLVERSIONINFO structure, then GetUIVersion adopts 3 as the user interface version.
The GetUIVersion function is exported from SHLWAPI.DLL as ordinal 542 in version 6.00 and higher.
Though this function dates from 2001, it was still not documented by Microsoft in the MSDN Library at least as late as the CD edition dated January 2004.