This function retrieves the major and minor version numbers of the system on which the specified DLL expects to run.
The version of the system on which the DLL expects to run indicates success. The high word of the return value contains the major version number. The low word of the return value contains the minor version number.
Zero indicates failure. This function fails if hMod is an invalid value. To get extended error information, call GetLastError.