CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Creating a Virtual Desktop in Windows ?

    Does anyone know if it's possible to implement virtual desktops in Windows (programmatically?) Here's the scenario...

    I work on an audio product which uses a common plugin format called VST. And it's quite common for users to have a dozen or more VST plugins running simultaneously - but of course they all compete for CPU time which can slow down the main application.

    There's a product available called Audiogridder which attempts to solve this by running VST's on a separate machine (i.e. over a network). It handles the audio side quite well but they've made a fundamental error in the GUI handling. Each plugin GUI gets drawn by first drawing it on the server's desktop (at position 0:0) then doing periodic screen captures and sending the info to the client machine. But because they need to get drawn at position 0:0 they can effectively only draw 1 x GUI. And they're not keen to draw at non-zero positions because ultimately, it'll end up with GUI's being off the end of the screen.

    I've asked them to consider drawing to Device Contexts, rather than using the physical screen - but apparently it'd be simpler for them if they could somehow draw to virtual desktops, rather than changing everything to Device Contexts. Does anyone know if it's even possible on Windows to create virtual desktops (which are continuously updateable?) It's not something I've ever done myself so I've no idea if it's even possible...
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  2. #2
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: Creating a Virtual Desktop in Windows ?

    Over the Easter period I spent a day or two reading up about virtual desktops (in Windows). I was hoping to find some simple way to implement them but everything I've read makes it sound fearsomely complicated

    AFAICT Windows itself doesn't support running multiple desktops simultaneously and IIUC this means that to achieve virtual desktops, each desktop needs to run a complete underlying copy of Windows!! They do seem to be available from various sources - though almost always as cloud-based solutions (maybe for that very reason..?)

    Anyway... if anyone knows of some simpler way to implement a virtual desktop system for Windows, do please let me know!!
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  3. #3
    Join Date
    Jan 2013
    Location
    Largo, FL.
    Posts
    356

    Re: Creating a Virtual Desktop in Windows ?

    Microsoft has their Virtual Desktop and Oracle makes VirtualBox. You can load up as many as your desktop system can handle and the number of valid licensed copies of windows.

  4. #4
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: Creating a Virtual Desktop in Windows ?

    Sorry, I've never gone into virtual desktops. I just use virtual machines.

    However, Windows does support multiple Stations each with multiple Desktops. Would this be of any help? See https://docs.microsoft.com/en-us/win...s-and-desktops
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  5. #5
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: Creating a Virtual Desktop in Windows ?

    Wow... Window Station objects - I'd never even heard of them! Thanks for tracking this down, 2kaud. And thanks Steve for that VirtualBox stuff.
    Last edited by John E; April 8th, 2021 at 04:45 AM.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  6. #6
    Join Date
    Mar 2022
    Posts
    9

    Re: Creating a Virtual Desktop in Windows ?

    You can use VMware ( Virtual Machine ). You cannot do multiboot. It is not possible on a desktop.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured