Changeset 21734 in vbox for trunk/src/VBox/Main/HostImpl.cpp
- Timestamp:
- Jul 21, 2009 10:04:46 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50309
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r21686 r21734 932 932 * @param description address of result variable, empty string if not known or aCpuId is invalid. 933 933 */ 934 STDMETHODIMP Host::GetProcessorDescription(ULONG /* aCpuId */, BSTR *aDescription)934 STDMETHODIMP Host::GetProcessorDescription(ULONG aCpuId, BSTR *aDescription) 935 935 { 936 936 CheckComArgOutPointerValid(aDescription); 937 937 AutoWriteLock alock (this); 938 938 CHECK_READY(); 939 /** @todo */ 940 ReturnComNotImplemented(); 939 940 char szCPUModel[80]; 941 int vrc = RTMpGetDescription(aCpuId, szCPUModel, sizeof(szCPUModel)); 942 if (RT_FAILURE(vrc)) 943 return E_FAIL; /** @todo error reporting? */ 944 Bstr (szCPUModel).cloneTo (aDescription); 945 return S_OK; 941 946 } 942 947
Note:
See TracChangeset
for help on using the changeset viewer.