- Timestamp:
- Feb 25, 2010 4:44:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/darwin/RTSystemQueryDmiString-darwin.cpp
r26806 r26807 47 47 #define PROP_PRODUCT_NAME "product-name" 48 48 #define PROP_PRODUCT_VERSION "version" 49 #define PROP_ SERIAL_NUMBER"IOPlatformSerialNumber"50 #define PROP_ HARDWARE_UUID"IOPlatformUUID"49 #define PROP_PRODUCT_SERIAL "IOPlatformSerialNumber" 50 #define PROP_PRODUCT_UUID "IOPlatformUUID" 51 51 52 52 RTDECL(int) RTSystemQueryDmiString(RTSYSDMISTR enmString, char *pszBuf, size_t cbBuf) … … 60 60 switch (enmString) 61 61 { 62 case RTSYSDMISTR_PRODUCT_NAME: PropStringRef = CFS tringCreateWithCString(kCFAllocatorDefault, PROP_PRODUCT_NAME, kCFStringEncodingASCII);break;63 case RTSYSDMISTR_PRODUCT_VERSION: PropStringRef = CFS tringCreateWithCString(kCFAllocatorDefault, PROP_PRODUCT_VERSION, kCFStringEncodingASCII); break;64 case RTSYSDMISTR_PRODUCT_SERIAL: PropStringRef = CFS tringCreateWithCString(kCFAllocatorDefault, PROP_SERIAL_NUMBER, kCFStringEncodingASCII);break;65 case RTSYSDMISTR_PRODUCT_UUID: PropStringRef = CFS tringCreateWithCString(kCFAllocatorDefault, PROP_HARDWARE_UUID, kCFStringEncodingASCII);break;62 case RTSYSDMISTR_PRODUCT_NAME: PropStringRef = CFSTR(PROP_PRODUCT_NAME); break; 63 case RTSYSDMISTR_PRODUCT_VERSION: PropStringRef = CFSTR(PROP_PRODUCT_VERSION); break; 64 case RTSYSDMISTR_PRODUCT_SERIAL: PropStringRef = CFSTR(PROP_PRODUCT_SERIAL); break; 65 case RTSYSDMISTR_PRODUCT_UUID: PropStringRef = CFSTR(PROP_PRODUCT_UUID); break; 66 66 default: 67 67 return VERR_NOT_SUPPORTED;
Note:
See TracChangeset
for help on using the changeset viewer.