2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FSys_SystemInfoImpl.cpp
19 * @brief This is the implementation file for _SystemInfoImpl class.
21 #include <unique_ptr.h>
24 #include <ITapiModem.h>
26 #include <FBaseBoolean.h>
27 #include <FBaseInteger.h>
28 #include <FBaseColHashMap.h>
30 #include <FBase_NativeError.h>
31 #include <FIo_RegistryImpl.h>
32 #include <FSys_SystemInfoImpl.h>
33 #include <FIo_AppServiceIpcMessages.h>
34 #include <FIo_IpcClient.h>
36 #include "FSys_Types.h"
37 #include "FSys_SystemClient.h"
38 #include "FSys_CommunicationDispatcherClient.h"
42 using namespace Tizen::Base;
43 using namespace Tizen::Base::Collection;
44 using namespace Tizen::Io;
46 namespace Tizen { namespace System
49 static const wchar_t* _REGISTRY_PATH = L"/opt/usr/etc/system_info_cache.ini";
50 static const wchar_t* _SYSTEM_INFO_SESSION = L"SystemInformation";
53 static const wchar_t* _BLUETOOTH = L"http://tizen.org/feature/network.bluetooth";
54 static const wchar_t* _BLUETOOTH_SUPPORTED = L"BluetoothSupported";
58 static const wchar_t* _CAMERA_FRONT = L"http://tizen.org/feature/camera.front";
60 static const wchar_t* _CAMERA_BACK = L"http://tizen.org/feature/camera.back";
62 static const wchar_t* _CAMERA_COUNT = L"CameraCount";
65 static const wchar_t* _DUID = L"http://tizen.org/system/duid";
66 static const wchar_t* _DEVICE_ID = L"DUID";
69 static const wchar_t* _FMRADIO = L"http://tizen.org/feature/fmradio";
70 static const wchar_t* _FM_RADIO_SUPPORTED = L"FmRadioSupported";
73 static const wchar_t* _KEYBOARD_TYPE = L"KeyboardType";
74 static const wchar_t* _INPUT_KEYBOARD_LAYOUT = L"http://tizen.org/feature/input.keyboard.layout";
77 static const wchar_t* _GPS_SUPPORTED = L"GPSSupported";
78 static const wchar_t* _LOCATION_GPS = L"http://tizen.org/feature/location.gps";
79 static const wchar_t* _WPS_SUPPORTED = L"WPSSupported";
80 static const wchar_t* _LOCATION_WPS = L"http://tizen.org/feature/location.wps";
83 static const wchar_t* _MODELNAME = L"http://tizen.org/system/model_name";
84 static const wchar_t* _MODEL_NAME = L"ModelName";
87 static const wchar_t* _MULTIPOINTTOUCH_POINTCOUNT = L"http://tizen.org/feature/multi_point_touch.point_count";
88 static const wchar_t* _MULTIPOINT_TOUCH_COUNT = L"MultiPointTouchCount";
91 static const wchar_t* _NETWORK_NFC = L"http://tizen.org/feature/network.nfc";
92 static const wchar_t* _NFC_SUPPORTED = L"NFCSupported";
95 static const wchar_t* _OPENGLES_VERSION_1_1 = L"http://tizen.org/feature/opengles.version.1_1";
96 static const wchar_t* _OPENGLES_VERSION_2_0 = L"http://tizen.org/feature/opengles.version.2_0";
97 static const wchar_t* _OPENGL_ES_VERSION = L"OpenGLESVersion";
100 static const wchar_t* _SCREEN_BPP = L"http://tizen.org/feature/screen.bpp";
101 static const wchar_t* _SCREEN_BITS_PER_PIXEL = L"ScreenBitsPerPixel";
102 static const wchar_t* _SCREEN_DPI = L"http://tizen.org/feature/screen.dpi";
103 static const wchar_t* _SCREEN_HEIGHT = L"http://tizen.org/feature/screen.height";
104 static const wchar_t* _SCREENHEIGHT = L"ScreenHeight";
105 static const wchar_t* _SCREEN_WIDTH = L"http://tizen.org/feature/screen.width";
106 static const wchar_t* _SCREENWIDTH = L"ScreenWidth";
107 static const wchar_t* _SCREENDPI = L"ScreenDPI";
110 static const wchar_t* _SCREEN_OUTPUT_RCA = L"http://tizen.org/feature/screen.output.rca";
111 static const wchar_t* _TV_OUT_SUPPORTED = L"TvOutSupported";
114 static const wchar_t* _SOUND_MEDIA_VOLUME_MAX = L"http://tizen.org/system/sound.media.volume.resolution.max";
115 static const wchar_t* _MAX_MEDIA_SOUND_VOLUME = L"MaxMediaSoundVolume";
116 static const wchar_t* _SOUND_NOTIFICATION_VOLUME_MAX = L"http://tizen.org/system/sound.notification.volume.resolution.max";
117 static const wchar_t* _MAX_NOTIFICATION_SOUND_VOLUME = L"MaxNotificationSoundVolume";
118 static const wchar_t* _SOUND_RINGTONE_VOLUME_MAX = L"http://tizen.org/system/sound.ringtone.volume.resolution.max";
119 static const wchar_t* _MAX_RINGTONE_SOUND_VOLUME = L"MaxRingtoneSoundVolume";
120 static const wchar_t* _SOUND_SYSTEM_VOLUME_MAX = L"http://tizen.org/system/sound.system.volume.resolution.max";
121 static const wchar_t* _MAX_SYSTEM_SOUND_VOLUME = L"MaxSystemSoundVolume";
124 static const wchar_t* _TELEPHONY = L"http://tizen.org/feature/network.telephony";
125 static const wchar_t* _TELEPHONY_SERVICE_GSM = L"http://tizen.org/feature/network.telephony.service.gsm";
126 static const wchar_t* _TELEPHONY_SERVICE_GPRS = L"http://tizen.org/feature/network.telephony.service.gprs";
127 static const wchar_t* _TELEPHONY_SERVICE_EDGE = L"http://tizen.org/feature/network.telephony.service.edge";
128 static const wchar_t* _TELEPHONY_SERVICE_UMTS = L"http://tizen.org/feature/network.telephony.service.umts";
129 static const wchar_t* _TELEPHONY_SERVICE_HSDPA = L"http://tizen.org/feature/network.telephony.service.hsdpa";
130 static const wchar_t* _TELEPHONY_SERVICE_HSUPA = L"http://tizen.org/feature/network.telephony.service.hsupa";
131 static const wchar_t* _TELEPHONY_SERVICE_HSPA = L"http://tizen.org/feature/network.telephony.service.hspa";
132 static const wchar_t* _TELEPHONY_SERVICE_LTE = L"http://tizen.org/feature/network.telephony.service.lte";
133 static const wchar_t* _TELEPHONY_SERVICE_CDMA = L"http://tizen.org/feature/network.telephony.service.cdma";
134 static const wchar_t* _NETWORK_TYPE = L"NetworkType";
135 static const wchar_t* _NETWORK_EMERGENCY = L"Emergency";
136 static const wchar_t* _NETWORK_NO_SERVICE = L"NoService";
139 static const wchar_t* _WIFI = L"http://tizen.org/feature/network.wifi";
140 static const wchar_t* _WIFI_SUPPORTED = L"WiFiSupported";
141 static const wchar_t* _WIFI_DIRECT = L"http://tizen.org/feature/network.wifi.direct";
142 static const wchar_t* _WIFI_DIRECT_SUPPORTED = L"WiFiDirectSupported";
145 static const wchar_t* _PLATFORM_VERSION = L"http://tizen.org/feature/platform.version";
146 static const wchar_t* _PLATFORM_NATIVE_API_VERSION = L"http://tizen.org/feature/platform.native.api.version";
147 static const wchar_t* _PLATFORM_WEB_API_VERSION = L"http://tizen.org/feature/platform.web.api.version";
148 static const wchar_t* _BUILD_STRING = L"http://tizen.org/system/build.string";
150 static const wchar_t* _WAC_VERSION = L"WACVersion";
151 static const wchar_t* _SUPPORTED = L"Supported";
152 static const wchar_t* _UNSUPPORTED = L"Unsupported";
154 static bool firstRequest = false;
155 static HashMap integerList(SingleObjectDeleter);
156 static HashMap boolList(SingleObjectDeleter);
157 static HashMap stringList(SingleObjectDeleter);
162 if(firstRequest == false)
164 integerList.Construct();
165 boolList.Construct();
166 stringList.Construct();
172 _SystemInfoImpl::ConvertToTizen(const String& key)
176 if(code == _DEVICE_ID)
180 else if(code == _MODEL_NAME)
184 else if(code == _KEYBOARD_TYPE)
186 code = _INPUT_KEYBOARD_LAYOUT;
188 else if(code == _SCREEN_BITS_PER_PIXEL)
192 else if(code == _SCREENHEIGHT)
194 code = _SCREEN_HEIGHT;
196 else if(code == _SCREENWIDTH)
198 code = _SCREEN_WIDTH;
200 else if(code == _SCREENDPI)
204 else if(code == _MAX_SYSTEM_SOUND_VOLUME)
206 code = _SOUND_SYSTEM_VOLUME_MAX;
208 else if(code == _MAX_MEDIA_SOUND_VOLUME)
210 code = _SOUND_MEDIA_VOLUME_MAX;
212 else if(code == _MAX_RINGTONE_SOUND_VOLUME)
214 code = _SOUND_RINGTONE_VOLUME_MAX;
216 else if(code == _MAX_NOTIFICATION_SOUND_VOLUME)
218 code = _SOUND_NOTIFICATION_VOLUME_MAX;
220 else if(code == _MULTIPOINT_TOUCH_COUNT)
222 code = _MULTIPOINTTOUCH_POINTCOUNT;
224 else if(code == _BLUETOOTH_SUPPORTED)
228 else if(code == _GPS_SUPPORTED)
230 code = _LOCATION_GPS;
232 else if(code == _WPS_SUPPORTED)
234 code = _LOCATION_WPS;
236 else if(code == _WIFI_SUPPORTED)
240 else if(code == _WIFI_DIRECT_SUPPORTED)
244 else if(code == _FM_RADIO_SUPPORTED)
248 else if(code == _TV_OUT_SUPPORTED)
250 code = _SCREEN_OUTPUT_RCA;
252 else if(code == _NFC_SUPPORTED)
260 _SystemInfoImpl::GetSysInfo(const String& key, String& value)
262 result r = E_OBJ_NOT_FOUND;
263 String tizenKey = ConvertToTizen(key);
265 if (firstRequest == false)
270 String* pValue = (String*)stringList.GetValue(tizenKey);
278 if (key == _NETWORK_TYPE) //Compatibility
280 bool supported = false;
281 GetSysInfo(_TELEPHONY, supported);
282 if(supported == false)
284 value = _NETWORK_EMERGENCY;
287 bool supportedGsm = false;
288 bool supportedGprs = false;
289 bool supportedEdge = false;
290 bool supportedUmts = false;
291 bool supportedHsdpa = false;
292 bool supportedHsupa = false;
293 bool supportedHspa = false;
294 bool supportedLte = false;
295 bool supportedCdma = false;
297 GetSysInfo(_TELEPHONY_SERVICE_GSM, supportedGsm);
298 GetSysInfo(_TELEPHONY_SERVICE_GPRS, supportedGprs);
299 GetSysInfo(_TELEPHONY_SERVICE_EDGE, supportedEdge);
300 GetSysInfo(_TELEPHONY_SERVICE_UMTS, supportedUmts);
301 GetSysInfo(_TELEPHONY_SERVICE_HSDPA, supportedHsdpa);
302 GetSysInfo(_TELEPHONY_SERVICE_HSUPA, supportedHsupa);
303 GetSysInfo(_TELEPHONY_SERVICE_HSPA, supportedHspa);
304 GetSysInfo(_TELEPHONY_SERVICE_LTE, supportedLte);
305 GetSysInfo(_TELEPHONY_SERVICE_CDMA, supportedCdma);
308 if(supportedGsm == false && supportedGprs == false
309 && supportedEdge == false && supportedUmts == false
310 && supportedHsdpa == false && supportedHsupa == false
311 && supportedHspa == false && supportedLte == false
312 && supportedCdma == false)
314 value = _NETWORK_NO_SERVICE;
316 else if(supportedGsm == true)
318 value.Append(L"GSM");
320 else if(supportedGprs == true)
322 if(value.GetLength() > 0)
323 value.Append(L" | ");
325 value.Append(L"GPRS");
327 else if(supportedEdge == true)
329 if(value.GetLength() > 0)
330 value.Append(L" | ");
332 value.Append(L"EDGE");
334 else if(supportedUmts == true)
336 if(value.GetLength() > 0)
337 value.Append(L" | ");
339 value.Append(L"UMTS");
341 else if(supportedHsdpa == true)
343 if(value.GetLength() > 0)
344 value.Append(L" | ");
346 value.Append(L"HSDPA");
348 else if(supportedHsupa == true)
350 if(value.GetLength() > 0)
351 value.Append(L" | ");
353 value.Append(L"HSUPA");
355 else if(supportedHspa == true)
357 if(value.GetLength() > 0)
358 value.Append(L" | ");
360 value.Append(L"HSPA");
362 else if(supportedLte == true)
364 if(value.GetLength() > 0)
365 value.Append(L" | ");
367 value.Append(L"LTE");
369 else if(supportedCdma == true)
371 if(value.GetLength() > 0)
372 value.Append(L" | ");
374 value.Append(L"CDMA");
378 else if (key == _OPENGL_ES_VERSION)
380 bool opengles_11 = false;
381 bool opengles_20 = false;
383 GetSysInfo(_OPENGLES_VERSION_1_1, opengles_11);
384 GetSysInfo(_OPENGLES_VERSION_2_0, opengles_20);
386 if(opengles_11 == true)
388 value.Append(L"1.1");
390 else if(opengles_20 == true)
392 if(value.GetLength() > 0)
393 value.Append(L" | ");
395 value.Append(L"2.0");
399 else if(key == _BLUETOOTH_SUPPORTED)
401 bool supported = false;
402 GetSysInfo(_BLUETOOTH, supported);
403 if(supported == false)
406 value = _UNSUPPORTED;
409 else if (key == _GPS_SUPPORTED)
411 bool supported = false;
412 GetSysInfo(_LOCATION_GPS, supported);
413 if(supported == false)
416 value = _UNSUPPORTED;
419 else if (key == _WIFI_SUPPORTED)
421 bool supported = false;
422 GetSysInfo(_WIFI, supported);
423 if(supported == false)
426 value = _UNSUPPORTED;
429 else if (key == _WAC_VERSION)
434 else if (key == _PLATFORM_NATIVE_API_VERSION || key == _PLATFORM_WEB_API_VERSION || key == _PLATFORM_VERSION || key == _BUILD_STRING)
438 else if (tizenKey == _DUID)
441 TapiHandle* handle = null;
445 handle = tel_init(null);
448 while(time_count < 30) //Wait 30 second.
450 ret = tel_check_modem_power_status(handle, &status);
451 SysLog(NID_SYS, "Modem check result is %d, status is %d.", handle, status);
452 if(ret != TAPI_API_SUCCESS)
454 SysLogException(NID_SYS, E_SYSTEM, "It is failed to get Modem status.");
469 _SystemClient* pSystemClient = _SystemClient::GetInstance();
470 r = pSystemClient->GetValue(tizenKey, value);
474 r = GetFromRegistry(tizenKey, value);
478 _SystemClient* pSystemClient = _SystemClient::GetInstance();
479 r = pSystemClient->GetValue(tizenKey, value);
484 stringList.Add(new String(tizenKey), new String(value));
490 _SystemInfoImpl::GetSysInfo(const String& key, int& value)
492 result r = E_SUCCESS;
493 String tizenKey = ConvertToTizen(key);
495 if (firstRequest == false)
500 Integer* pValue = (Integer*)integerList.GetValue(tizenKey);
504 value = pValue->value;
508 if (key == _CAMERA_COUNT)
510 bool supported = false;
513 GetSysInfo(_CAMERA_FRONT, supported);
514 if(supported == true)
517 GetSysInfo(_CAMERA_BACK, supported);
518 if(supported == true)
525 r = GetFromRegistry(tizenKey, value);
528 _SystemClient* pSystemClient = _SystemClient::GetInstance();
529 r = pSystemClient->GetValue(tizenKey, value);
535 integerList.Add(new String(tizenKey), new Integer(value));
542 _SystemInfoImpl::GetSysInfo(const String& key, long long& value)
544 return E_OBJ_NOT_FOUND;
548 _SystemInfoImpl::GetSysInfo(const String& key, double& value)
550 return E_OBJ_NOT_FOUND;
554 _SystemInfoImpl::GetSysInfo(const String& key, bool& value)
556 result r = E_SUCCESS;
557 String tizenKey = ConvertToTizen(key);
559 if (firstRequest == false)
564 Boolean* pValue = (Boolean*)boolList.GetValue(tizenKey);
568 value = pValue->value;
572 r = GetFromRegistry(tizenKey, value);
575 _SystemClient* pSystemClient = _SystemClient::GetInstance();
576 r = pSystemClient->GetValue(tizenKey, value);
578 SysTryReturnResult(NID_SYS, r == E_SUCCESS, E_OBJ_NOT_FOUND, "It is failed to get the key[%ls]", tizenKey.GetPointer());
582 boolList.Add(new String(tizenKey), new Boolean(value));
589 _SystemInfoImpl::GetSysInfo(const String& key, UuId& value)
591 return E_OBJ_NOT_FOUND;
595 _SystemInfoImpl::GetSysInfoValuesN(const String& key, SystemInfoValueType type)
597 SetLastResult(E_OBJ_NOT_FOUND);
602 _SystemInfoImpl::GetPlatformVersion(String& platformVersion)
604 result r = E_SUCCESS;
605 String tizenKey(_PLATFORM_VERSION);
607 r = GetFromRegistry(tizenKey, platformVersion);
608 SysTryReturnResult(NID_SYS, r == E_SUCCESS, E_SYSTEM, "It is failed to get the key[%ls]", tizenKey.GetPointer());
613 _SystemInfoImpl::GetBuildInfo(String& buildInfo)
615 result r = E_SUCCESS;
616 String tizenKey(_BUILD_STRING);
618 r = GetFromRegistry(tizenKey, buildInfo);
619 SysTryReturnResult(NID_SYS, r == E_SUCCESS, E_SYSTEM, "It is failed to get the key[%ls]", tizenKey.GetPointer());
624 _SystemInfoImpl::GetNativeApiVersion(String& nativeApiVersion)
626 result r = E_SUCCESS;
627 String tizenKey(_PLATFORM_NATIVE_API_VERSION);
629 r = GetFromRegistry(tizenKey, nativeApiVersion);
630 SysTryReturnResult(NID_SYS, r == E_SUCCESS, E_SYSTEM, "It is failed to get the key[%ls]", tizenKey.GetPointer());
635 _SystemInfoImpl::GetWebApiVersion(String& webApiVersion)
637 result r = E_SUCCESS;
638 String tizenKey(_PLATFORM_WEB_API_VERSION);
640 r = GetFromRegistry(tizenKey, webApiVersion);
641 SysTryReturnResult(NID_SYS, r == E_SUCCESS, E_SYSTEM, "It is failed to get the key[%ls]", tizenKey.GetPointer());
646 _SystemInfoImpl::GetImei(String& imei)
648 result r = E_SUCCESS;
651 TapiHandle* handle = null;
655 handle = tel_init(null);
656 SysTryReturnResult(NID_SYS, handle != null, E_SYSTEM, "It is failed to get handle of telephony.");
657 while(time_count < 30) //Wait 30 second.
659 ret = tel_check_modem_power_status(handle, &status);
660 SysLog(NID_SYS, "Modem check result is %d, status is %d.", handle, status);
661 if(ret != TAPI_API_SUCCESS)
663 SysLogException(NID_SYS, E_SYSTEM, "It is failed to get Modem status.");
678 ArrayList requestMessage;
679 ArrayList responseMessage;
681 _CommunicationDispatcherClient* pCommunicationDispatcherClient = _CommunicationDispatcherClient::GetInstance();
683 _IpcClient* pIpcClient = pCommunicationDispatcherClient->GetIpcClient();
684 SysTryReturn(NID_SYS, pIpcClient != null, E_OUT_OF_MEMORY, r, "It is failed to create IPC instance.");
686 requestMessage.Construct();
687 responseMessage.Construct();
689 String serviceId(_SYSTEM_SERVICE_ID);
690 String commandId(L"osp.system.command.get.imei.internal");
692 requestMessage.Add(serviceId);
693 requestMessage.Add(commandId);
695 unique_ptr<IoService_Request> pMsg(new (std::nothrow) IoService_Request(requestMessage, &responseMessage));
696 SysTryReturnResult(NID_SYS, pMsg != null, E_OUT_OF_MEMORY, "It is failed to create Ipc message");
698 r = pIpcClient->SendRequest(pMsg.get());
699 SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "It is failed to send ipc message. [%s]", GetErrorMessage(r));
701 unique_ptr<String> pResult((String*)responseMessage.GetAt(_SYSTEM_RESPONSE_DATA));
702 unique_ptr<String> pImei((String*)responseMessage.GetAt(_SYSTEM_RESPONSE_DATA+1));
704 SysTryReturnResult(NID_SYS, pResult != null, E_SYSTEM, "It is failed to receive result on IPC response message.");
705 SysTryReturnResult(NID_SYS, pImei != null, E_SYSTEM, "It is failed to receive IMEI value on IPC response message.");
707 SysTryReturnResult(NID_SYS, *pResult != _SYSTEM_RESULT_PRIVILEGED, E_PRIVILEGE_DENIED, "It is failed to get privilege.");
708 SysTryReturnResult(NID_SYS, *pResult == _SYSTEM_RESULT_OK, E_SYSTEM, "It is failed to get IMEI value.");
715 _SystemInfoImpl::GetFromRegistry(const String& key, String& value)
717 result r = E_SUCCESS;
721 r = _reg.Construct(_REGISTRY_PATH, REG_OPEN_READ_ONLY, null);
722 SysTryReturnResult(NID_SYS, r == E_SUCCESS , r, " RegistryImpl construct is failed");
724 r = _reg.GetValue(_SYSTEM_INFO_SESSION, key, valStr);
725 SysTryReturnResult(NID_SYS, r == E_SUCCESS , r, " Registry GetValue is failed");
727 if(valStr == L"true" || valStr == L"false")
729 return E_OBJ_NOT_FOUND;
740 _SystemInfoImpl::GetFromRegistry(const String& key, int& value)
742 result r = E_SUCCESS;
745 r = _reg.Construct(_REGISTRY_PATH, REG_OPEN_READ_ONLY, null);
746 SysTryReturnResult(NID_SYS, r == E_SUCCESS, r, " RegistryImpl construct is failed");
748 r = _reg.GetValue(_SYSTEM_INFO_SESSION, key, valStr);
749 SysTryReturnResult(NID_SYS, r == E_SUCCESS, r, " Registry GetValue is failed");
750 SysTryReturnResult(NID_SYS, r == E_SUCCESS, E_SYSTEM, " Registry GetValue is failed");
751 r = Integer::Parse(valStr, value);
752 SysTryReturnResult(NID_SYS, r == E_SUCCESS, E_OBJ_NOT_FOUND, " Integer::Parse() is failed");
757 _SystemInfoImpl::GetFromRegistry(const String& key, bool& value)
759 result r = E_SUCCESS;
762 r = _reg.Construct(_REGISTRY_PATH, REG_OPEN_READ_ONLY, null);
763 SysTryReturnResult(NID_SYS, r == E_SUCCESS, r, " RegistryImpl construct is failed");
765 r = _reg.GetValue(_SYSTEM_INFO_SESSION, key, valStr);
766 SysTryReturnResult(NID_SYS, r == E_SUCCESS, r, " Registry GetValue is failed");
767 SysTryReturnResult(NID_SYS, r == E_SUCCESS, E_SYSTEM, " Registry GetValue is failed");
768 if(valStr == L"true")
772 else if(valStr == L"false")
778 return E_OBJ_NOT_FOUND;
784 _SystemInfoImpl::GetInstance(SystemInfo& systeminfo)
786 return systeminfo.__pSystemInfoImpl;
788 const _SystemInfoImpl*
789 _SystemInfoImpl::GetInstance(const SystemInfo& systeminfo)
791 return systeminfo.__pSystemInfoImpl;