mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Add version number to telemetry event
use defines from version.h in .rc files and other places.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#pragma comment(lib, "dwmapi.lib")
|
||||
#include <strsafe.h>
|
||||
#include <sddl.h>
|
||||
#include "version.h"
|
||||
|
||||
std::optional<RECT> get_button_pos(HWND hwnd) {
|
||||
RECT button;
|
||||
@@ -290,3 +291,10 @@ std::wstring get_process_path(HWND window) noexcept {
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
std::wstring get_product_version() {
|
||||
static std::wstring version = std::to_wstring(VERSION_MAJOR) +
|
||||
L"." + std::to_wstring(VERSION_MINOR) +
|
||||
L"." + std::to_wstring(VERSION_REVISION);
|
||||
return version;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user