If the function succeeds, it returns the version of the system on which the process expects to run. 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. To get extended error information, call GetLastError. The function fails if ProcessId is an invalid value.