Get device UUID from local assigned value
This commit is contained in:
@@ -294,7 +294,7 @@ std::wstring createVirtualDisplay(
|
||||
uint32_t width,
|
||||
uint32_t height,
|
||||
uint32_t fps,
|
||||
GUID& guid
|
||||
const GUID& guid
|
||||
) {
|
||||
if (SUDOVDA_DRIVER_HANDLE == INVALID_HANDLE_VALUE) {
|
||||
return std::wstring();
|
||||
@@ -308,16 +308,6 @@ std::wstring createVirtualDisplay(
|
||||
s_client_name = s_app_name;
|
||||
}
|
||||
|
||||
if (s_client_uid && strcmp(s_client_uid, "unknown")) {
|
||||
size_t len = strlen(s_client_uid);
|
||||
if (len > sizeof(GUID)) {
|
||||
len = sizeof(GUID);
|
||||
}
|
||||
memcpy((void*)&guid, (void*)s_client_uid, len);
|
||||
} else {
|
||||
s_client_uid = "unknown";
|
||||
}
|
||||
|
||||
VIRTUAL_DISPLAY_ADD_OUT output;
|
||||
if (!AddVirtualDisplay(SUDOVDA_DRIVER_HANDLE, width, height, fps, guid, s_client_name, s_client_uid, output)) {
|
||||
printf("[SUDOVDA] Failed to add virtual display.\n");
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace VDISPLAY {
|
||||
uint32_t width,
|
||||
uint32_t height,
|
||||
uint32_t fps,
|
||||
GUID& guid
|
||||
const GUID& guid
|
||||
);
|
||||
bool removeVirtualDisplay(const GUID& guid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user