#ifndef __WINDOWSVERSION__ #define __WINDOWSVERSION__ #define PACKVERSION(major,minor) MAKELONG(minor,major) class CWindowsVersion { enum WinVer { WV_UNKNOWN, WV_32S, // Win32s on Win3.1 WV_95, WV_98, WV_ME, WV_NT4, WV_2K, }; public: CWindowsVersion(); DWORD MajorVersion() const { return m_osv.dwMajorVersion; } DWORD MinorVersion() const { return m_osv.dwMinorVersion; } DWORD BuildNumber() const { return IsNT() ? m_osv.dwBuildNumber : LOWORD(m_osv.dwBuildNumber); } DWORD PlatformId() const { return m_osv.dwPlatformId; } CString CSDVersion() const { return CString(m_osv.szCSDVersion); } CString GetVersionString() const; bool IsNT() const { return m_osv.dwPlatformId == VER_PLATFORM_WIN32_NT; } WinVer Version() const { return m_winVer; } LANGID GetUILanguage() const { return m_UILang; } static DWORD GetDllVersion(LPCTSTR dllName); DWORD GetComCtl32Version() const { return m_comCtl32Version; } protected: WinVer m_winVer; OSVERSIONINFO m_osv; CString m_versionString; LANGID m_UILang; DWORD m_comCtl32Version; }; #endif __WINDOWSVERSION__
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19924 | YourUncleBob |
Populate -o //guest/perforce_software/p4win/... //guest/YourUncleBob/p4win/..... |
||
//guest/perforce_software/p4win/main/common/WindowsVersion.h | |||||
#1 | 16169 | perforce_software | Move files to follow new path scheme for branches. | ||
//guest/perforce_software/p4win/common/WindowsVersion.h | |||||
#1 | 8562 | Matt Attaway |
These feet never stop running. Initial commit of the P4Win source code. To the best of our knowledge this compiles and runs using the 2013.3 P4 API and VS 2010. Expect a few changes as we refine the build process. Please post any build issues to the forums. |