Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PString PProcess::GetOSVersion (  ) [static, inherited]

Get the version of the operating system the process is running on, eg "2.0.33".

Returns:
String for OS version.

Definition at line 1692 of file win32.cxx.

Referenced by PFTPServer::GetSystemTypeString(), PTrace::Initialise(), Serial::Main(), Md5::Main(), Threadex::Main(), IPV6Test::Main(), DtmfTest::Main(), and LocalAddress::Main().

{
  OSVERSIONINFO info;
  info.dwOSVersionInfoSize = sizeof(info);
  GetVersionEx(&info);
  WORD wBuildNumber = (WORD)info.dwBuildNumber;
  return psprintf(wBuildNumber > 0 ? "v%u.%u.%u" : "v%u.%u",
                  info.dwMajorVersion, info.dwMinorVersion, wBuildNumber);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index