Changeset 29560 in vbox
- Timestamp:
- May 17, 2010 3:08:09 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/system.h
r28800 r29560 152 152 /** The product serial. */ 153 153 RTSYSDMISTR_PRODUCT_SERIAL, 154 /** The system manufacturer. */ 155 RTSYSDMISTR_MANUFACTURER, 154 156 /** The end of the valid strings. */ 155 157 RTSYSDMISTR_END, -
trunk/src/VBox/Runtime/r3/darwin/RTSystemQueryDmiString-darwin.cpp
r28800 r29560 49 49 #define PROP_PRODUCT_SERIAL "IOPlatformSerialNumber" 50 50 #define PROP_PRODUCT_UUID "IOPlatformUUID" 51 #define PROP_MANUFACTURER "manufacturer" 51 52 52 53 … … 65 66 case RTSYSDMISTR_PRODUCT_SERIAL: PropStringRef = CFSTR(PROP_PRODUCT_SERIAL); break; 66 67 case RTSYSDMISTR_PRODUCT_UUID: PropStringRef = CFSTR(PROP_PRODUCT_UUID); break; 68 case RTSYSDMISTR_MANUFACTURER: PropStringRef = CFSTR(PROP_MANUFACTURER); break; 67 69 default: 68 70 return VERR_NOT_SUPPORTED; … … 93 95 { 94 96 if ( enmString == RTSYSDMISTR_PRODUCT_NAME 95 || enmString == RTSYSDMISTR_PRODUCT_VERSION) 97 || enmString == RTSYSDMISTR_PRODUCT_VERSION 98 || enmString == RTSYSDMISTR_MANUFACTURER 99 ) 96 100 { 97 101 CFDataRef DataRef = (CFDataRef)IORegistryEntryCreateCFProperty(ServiceObject, PropStringRef, -
trunk/src/VBox/Runtime/r3/linux/RTSystemQueryDmiString-linux.cpp
r28800 r29560 53 53 case RTSYSDMISTR_PRODUCT_UUID: pszSysFsName = "id/product_uuid"; break; 54 54 case RTSYSDMISTR_PRODUCT_SERIAL: pszSysFsName = "id/product_serial"; break; 55 /// @todo case RTSYSDMISTR_MANUFACTURER: pszSysFsName = "id/sys_vendor"; break; 55 56 default: 56 57 return VERR_NOT_SUPPORTED; -
trunk/src/VBox/Runtime/r3/solaris/RTSystemQueryDmiString-solaris.cpp
r28800 r29560 85 85 case RTSYSDMISTR_PRODUCT_VERSION: rc = RTStrCopy(pszBuf, cbBuf, hSMBInfo.smbi_version); break; 86 86 case RTSYSDMISTR_PRODUCT_SERIAL: rc = RTStrCopy(pszBuf, cbBuf, hSMBInfo.smbi_serial); break; 87 case RTSYSDMISTR_MANUFACTURER: rc = RTStrCopy(pszBuf, cbBuf, hSMBInfo.smbi_manufacturer); break; 87 88 88 89 default: /* make gcc happy */ -
trunk/src/VBox/Runtime/r3/win/RTSystemQueryDmiString-win.cpp
r28800 r29560 153 153 case RTSYSDMISTR_PRODUCT_UUID: pszPropName = "UUID"; break; 154 154 case RTSYSDMISTR_PRODUCT_SERIAL: pszPropName = "IdentifyingNumber"; break; 155 /// @todo case RTSYSDMISTR_MANUFACTURER: pszPropName = "Vendor"; break; 156 155 157 default: 156 158 return VERR_NOT_SUPPORTED; -
trunk/src/VBox/Runtime/testcase/tstRTSystemQueryDmi.cpp
r28800 r29560 60 60 RTTestIPrintf(RTTESTLVL_ALWAYS, "PRODUCT_SERIAL: \"%s\", rc=%Rrc\n", szInfo, rc); 61 61 62 rc = RTSystemQueryDmiString(RTSYSDMISTR_MANUFACTURER, szInfo, sizeof(szInfo)); 63 RTTestIPrintf(RTTESTLVL_ALWAYS, "MANUFACTURER: \"%s\", rc=%Rrc\n", szInfo, rc); 64 62 65 /* 63 66 * Check that unsupported stuff is terminated correctly.
Note:
See TracChangeset
for help on using the changeset viewer.