GetKernelVer
Gets the OS (kernel) version
int GetKernelVer(char *pszKernelVerNum = NULL, int nMaxLen = 11);
Parameters
- pszKernelVerNum - pointer to character array to receive kernel version. May be NULL to not receive kernel version string. If it is not null it must point to a array with sufficient space allocated to receive the result.
- nMaxLen - maximum length to copy into pszKernelVerNum
Return Value
- Returns numeric representation of the OS version such as 20100804 for version 2010.08.04 (4 Aug 2010).
Remarks
Examples
int n = GetKernelVer(); if(n < 20100628) { DisplayText(0, 0, "Newer OS recommended"); }
char szVer[20]; GetKernelVer(szVer, 18); string str = StrFmt("Version: %s", szVer); DisplayText(0, 0, str);
See Also
Last modified
7 years ago
Last modified on 04/12/18 13:12:32
Note:
See TracWiki
for help on using the wiki.