thank u
解决方案 »
- 向导自己添加的代码都编译不过去
- D3D关于细分曲面
- 加密的流媒体能用P2P实现播放么?
- 怎样监控系统时间修改并在时获取修改前后的时间差
- 网络流量
- 有没有哪个函数能像f.Open(m_csFilename, CFile::modeRead|CFile::shareDenyNone)打开网上的一个文件,比如打开一个网页,CFile只能打开
- win SDK 现有还有必要学习吗?
- 那位打虾知道?!...
- 一个关于InitializeCriticalSection的错误?
- 请教:关于OutBarCtrl--有分
- 各位:学数据结构应具备什么样的文化素质(如学过高数,或其它更高要求)?
- 请问,有没有用VC6.0做数据库开发的高手啊!!
LPOSVERSIONINFO lpVersionInfo // version information
);
Parameters
lpVersionInfo
[in/out] Pointer to an OSVERSIONINFO data structure that the function fills with operating system version information.
Before calling the GetVersionEx function, set the dwOSVersionInfoSize member of the OSVERSIONINFO data structure to sizeof(OSVERSIONINFO).
typedef struct _OSVERSIONINFO{
DWORD dwOSVersionInfoSize;
DWORD dwMajorVersion;
DWORD dwMinorVersion;
DWORD dwBuildNumber;
DWORD dwPlatformId;
TCHAR szCSDVersion[ 128 ];
} OSVERSIONINFO;
{
CString strSystemVersion="";
DWORD dwVersion = GetVersion();
// Get the Windows version.
DWORD dwWindowsMajorVersion = (DWORD)(LOBYTE(LOWORD(dwVersion)));
DWORD dwWindowsMinorVersion = (DWORD)(HIBYTE(LOWORD(dwVersion)));
// Get the build number for Windows NT/Windows 2000 or Win32s.
if (dwVersion < 0x80000000) // Windows NT/2000
strSystemVersion.Format("Windows NT/2000 %ld", (DWORD)(HIWORD(dwVersion)) );
else if (dwWindowsMajorVersion < 4) // Win32s
strSystemVersion.Format("Win32s %ld", (DWORD)(HIWORD(dwVersion) & ~0x8000) );
else // Windows 95/98 -- No build number
strSystemVersion.Format("Windows 95/98");
return strSystemVersion;
}