DXGI desktop duplication sample

This sample demonstrates how to use the desktop duplication behaviors exposed by DXGI in DirectX.

C++ (58.1 KB)
 
 
 
 
 
(4)
2,142 times
Add To Favorites
10/26/2012
E-mail Twitter del.icio.us Digg Facebook
Sign in to Ask a Question


  • The desktop updates become infrequent when the mouse is moved.
    2 Posts | Last Post August 13, 2012
    • I noticed the following problem when running the desktop duplication sample. 
      I'd like to know if this is a known issue.
      
      Thanks,
      Paul
      
      
      Problem:
      The desktop updates become infrequent when the mouse is moved.
      
      Setup:
      Win8 Consumer Preview, Desktop Duplication sample, Lenovo T410.
      
      To reproduce:
      1. Run DesktopDuplication.exe
      2. Run video or other activity which updates the desktop continuously.
      3. Observe that the DesktopDuplication app window is correctly updated with the desktop contents.  The updates are frequent and the video looks smooth in the DesktopDuplication app window.
      4. Move the mouse continuously. Observe that the desktop contents are updated infrequently (every 3-5 seconds) in the DesktopDuplication app window.  The video appears to stop. The mouse pointer is correctly drawn in the DesktopDuplication app window.
      
      
      
      
    • I experienced the same issue. But sometimes the desktop update frequently even when the mouse is moving.
      
      I tried the 6/1/2012 version of sample code with visual studio 2012 RC on win8 release preview.
      Is it by design or an issue of the DXGI desktop duplication API?
      
  • What object holds the desktop images in the desktop duplication sample?
    1 Posts | Last Post May 15, 2012
    • We are now creating a client-server desktop duplication.
      Given a msdn DXGI desktop duplication sample, we need to split the DXGI logics; the server must have the code that gets the desktop image while the client must have the one that presents/renders the buffer. We can now duplicate the server's cursor into the client's screen, our problem is to find the proper object (the one holding the desktop images) that we must send from the server app to the client app so that the client app can display it.
       
      Please help us to identify which part of the sample is used to hold the desktop images.
      
      Thank you.
      
  • The sample doesn't work
    3 Posts | Last Post April 16, 2012
    • Here is the problem description:
      http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/b6d9de88-ad70-412e-aac4-d722c69032dd
      Please help me to run the sample.
      
    • Hello! 
      
      Could you provide us with more information about how you produced the error: i.e. what environment you were running? What tool is outputting (the string) "Run-Time Check Failure" for you? We'll investigate this issue.
    • The environment is:
      Windows 8 Consumer Preview
      Visual Studio 11 Beta
      (both were installed from the images downloaded from MSDN).
      I loaded this project in Visual Studio and ran.
      Nothing special.