2013-05-21 15:40:49 +00:00
|
|
|
#include "common/application_info.h"
|
|
|
|
|
2013-05-28 19:24:55 +00:00
|
|
|
#include "base/file_version_info.h"
|
|
|
|
#include "base/memory/scoped_ptr.h"
|
|
|
|
#include "base/utf_string_conversions.h"
|
|
|
|
|
2013-05-21 15:40:49 +00:00
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
std::string GetApplicationName() {
|
2013-05-28 19:24:55 +00:00
|
|
|
auto info = make_scoped_ptr(FileVersionInfo::CreateFileVersionInfoForModule(GetModuleHandle(nullptr)));
|
|
|
|
return UTF16ToUTF8(info->product_name());
|
2013-05-21 15:40:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::string GetApplicationVersion() {
|
2013-05-28 19:24:55 +00:00
|
|
|
auto info = make_scoped_ptr(FileVersionInfo::CreateFileVersionInfoForModule(GetModuleHandle(nullptr)));
|
2013-05-28 19:42:52 +00:00
|
|
|
return UTF16ToUTF8(info->product_version());
|
2013-05-21 15:40:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|