Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Direct3D 9 is not supported in the context of a Windows service


Source: Microsoft Support

↑ Back to the top


RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

↑ Back to the top


Action



You develop a Direct3D 9 application and attempt to execute the application within the context of a Windows Service.


 

↑ Back to the top


Result



The application fails to render anything to the screen.


 

↑ Back to the top


Cause



Direct3D 9 is not supported in the context of a Windows service.  Direct3D 9 is only supported when executed on an interactive desktop.


 

↑ Back to the top


Resolution



One option is to use the Windows Advanced Rasterization Platform (WARP):


http://msdn.microsoft.com/en-us/library/dd285359.aspx

WARP10 is a high speed, fully conformant software rasterizer.


WARP allows fast rendering in a variety of situations where hardware implementations are unavailable, including:


  When running as a service or in a server environment


  When the user does not have any Direct3D capable hardware
  When no video card installed
  When a video driver is not available, or is not working correctly
  When a video card is out of memory, hangs or would take too many system resources to initialize.



Starting with Windows 8.1 / Windows Server 2012 R2, Direct3D 11 supports use from a Windows service. See DirectX 11.1 Features.

↑ Back to the top


DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.


TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

↑ Back to the top


Keywords: kbnoloc, kbrapidpub, kbnomt, kb

↑ Back to the top

Article Info
Article ID : 978635
Revision : 1
Created on : 1/7/2017
Published on : 10/3/2014
Exists online : False
Views : 108