Virtual_display can not run on Windows7 #855

Closed
opened 2026-02-20 23:12:15 -05:00 by deekerman · 5 comments
Owner

Originally created by @Baker9017 on GitHub (Oct 18, 2022).

Describe the bug you encountered:

After complier all the code on Winodws 10, it can run well on all the Windows 10. But it can not run on Windows 7.
Error report as below

RustDesk.exe -- Entry Point Not Found

The procedure entry point SwDeviceCreate count not located in the dynamic link library CFGMGR32.dll.

I found the problem probably related to Virtual_display. Win7 can't call the function of SwDeviceCreate.

\libs\virtual_display\src\win10\IddController.c : line 239

// Create the device
    HRESULT hr = SwDeviceCreate(L"RustDeskIddDriver",
        L"HTREE\\ROOT\\0",
        &createInfo,
        0,
        NULL,
        CreationCallback,
        &hEvent,
        hSwDevice);
    if (FAILED(hr))
    {
        SetLastMsg("SwDeviceCreate failed with 0x%lx\n", hr);
        if (g_printMsg)
        {
            printf(g_lastMsg);
        }

        return FALSE;
    }

What did you expect to happen instead?

Win 7 doesn't support the feature of virual_display, whether we can add a condition,
if os == windows7
call the legacy method instead of call 'SwDeviceCreate'

How did you install RustDesk?

Build curren code and run it directly.


RustDesk version and environment

1.2.0 Windows7

Originally created by @Baker9017 on GitHub (Oct 18, 2022). <!-- Hey there, thank you for creating an issue! --> **Describe the bug you encountered:** After complier all the code on Winodws 10, it can run well on all the Windows 10. But it can not run on Windows 7. Error report as below ``` RustDesk.exe -- Entry Point Not Found The procedure entry point SwDeviceCreate count not located in the dynamic link library CFGMGR32.dll. ``` I found the problem probably related to Virtual_display. Win7 can't call the function of SwDeviceCreate. ``` \libs\virtual_display\src\win10\IddController.c : line 239 // Create the device HRESULT hr = SwDeviceCreate(L"RustDeskIddDriver", L"HTREE\\ROOT\\0", &createInfo, 0, NULL, CreationCallback, &hEvent, hSwDevice); if (FAILED(hr)) { SetLastMsg("SwDeviceCreate failed with 0x%lx\n", hr); if (g_printMsg) { printf(g_lastMsg); } return FALSE; } ``` **What did you expect to happen instead?** Win 7 doesn't support the feature of virual_display, whether we can add a condition, if os == windows7 call the legacy method instead of call 'SwDeviceCreate' **How did you install `RustDesk`?** Build curren code and run it directly. <!-- GitHub release, build from source, Windows portable version, etc. --> --- **RustDesk version and environment** 1.2.0 Windows7 <!-- In order to reproduce your issue, please add some information about the environment in which you're running RustDesk. -->
deekerman 2026-02-20 23:12:15 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (Oct 19, 2022):

#763

@rustdesk commented on GitHub (Oct 19, 2022): #763
Author
Owner

@zkteco-home commented on GitHub (Nov 15, 2022):

I also met same issue,i want to run it on Win7

@zkteco-home commented on GitHub (Nov 15, 2022): I also met same issue,i want to run it on Win7
Author
Owner

@zkteco-home commented on GitHub (Nov 16, 2022):

@rustdesk Firstly thanks for your great work,i just want to confirm one thing if latest code(master branch) can run on Windows 7 with sciter.dll(not flutter version).i found bcz of virtual display ,it cant run on windows 7,if it really cant run on win7,i will stop to work hard at it.

@zkteco-home commented on GitHub (Nov 16, 2022): @rustdesk Firstly thanks for your great work,i just want to confirm one thing if latest code(master branch) can run on Windows 7 with sciter.dll(not flutter version).i found bcz of virtual display ,it cant run on windows 7,if it really cant run on win7,i will stop to work hard at it.
Author
Owner

@rustdesk commented on GitHub (Nov 16, 2022):

No idea either.

@rustdesk commented on GitHub (Nov 16, 2022): No idea either.
Author
Owner

@zkteco-home commented on GitHub (Nov 30, 2022):

Now lastest code can run on Win7

@zkteco-home commented on GitHub (Nov 30, 2022): Now lastest code can run on Win7
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#855
No description provided.