Changeset 11350 in vbox for trunk/include
- Timestamp:
- Aug 12, 2008 11:25:18 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/system.h
r11323 r11350 42 42 */ 43 43 44 /** 45 * Info level for RTSystemGetOSInfo(). 46 */ 47 typedef enum RTSYSOSINFO 48 { 49 RTSYSOSINFO_INVALID = 0, /**< The usual invalid entry. */ 50 RTSYSOSINFO_PRODUCT, /**< OS product name. (uname -o) */ 51 RTSYSOSINFO_RELEASE, /**< OS release. (uname -r) */ 52 RTSYSOSINFO_VERSION, /**< OS version, optional. (uname -v) */ 53 RTSYSOSINFO_SERVICEPACK, /**< Service/fix pack level, optional. */ 54 RTSYSOSINFO_END /**< End of the valid info levels. */ 55 } RTSYSOSINFO; 56 57 58 /** 59 * Queries information about the OS. 60 * 61 * @returns IPRT status code. 62 * @retval VINF_SUCCESS on success. 63 * @retval VERR_INVALID_PARAMETER if enmInfo is invalid. 64 * @retval VERR_INVALID_POINTER if pszInfoStr is invalid. 65 * @retval VERR_BUFFER_OVERFLOW if the buffer is too small. The buffer will 66 * contain the chopped off result in this case, provided cchInfo isn't 0. 67 * @retval VERR_NOT_SUPPORTED if the info level isn't implemented. The buffer will 68 * contain an empty string. 69 * 70 * @param enmInfo The OS info level. 71 * @param pszInfo Where to store the result. 72 * @param cchInfo The size of the output buffer. 73 */ 74 RTDECL(int) RTSystemQueryOSInfo(RTSYSOSINFO enmInfo, char *pszInfo, size_t cchInfo); 75 76 44 77 /** @} */ 45 78
Note:
See TracChangeset
for help on using the changeset viewer.