Microsoft Knowledge Base Email Alertz

How to use the D3DKMTInvalidateActiveVidPn function to change desktop display settings in Windows Vista

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 930088 - Last Review: March 15, 2007 - Revision: 1.4

How to use the D3DKMTInvalidateActiveVidPn function to change desktop display settings in Windows Vista

INTRODUCTION

This article contains information about how to use the D3DKMTInvalidateActiveVidPn function in Windows Vista. This function invalidates the video present network (VidPN) that the video graphics driver is using.

MORE INFORMATION

Typically, you use the ChangeDisplaySettingsEx function to set the desktop display settings. However, on a display device that uses the Windows Vista graphics driver model driver, third-party programs and utilities can use the D3DKMTInvalidateActiveVidPn function to set display settings.

When you use the D3DKMTInvalidateActiveVidPn function, Windows Vista queries the third-party kernel-mode driver. Therefore, you have more control over the settings than you have when you use the ChangeDisplaySettingsEx function. However, the D3DKMTInvalidateActiveVidPn function does not include a complete superset of the Microsoft Windows graphics device interface (GDI) display configuration API. Also, the D3DKMTInvalidateActiveVidPn function always resets a multimonitor desktop to the default configuration. Therefore, you may have to use the ChangeDisplaySettingsEx function after you use the D3DKMTInvalidateActiveVidPn function so that you can successfully take the following actions:
  • Change the primary display
  • Extend the desktop to a second display and then set the relative position of the displays
Note Because this process requires two steps, the screen may flash two times as the new settings are applied.

For more information about the D3DKMTInvalidateActiveVidPn function, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/aa478331.aspx (http://msdn2.microsoft.com/en-us/library/aa478331.aspx)

APPLIES TO
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Ultimate
  • Windows Vista Business
  • Windows Vista Enterprise
  • Windows Vista Home Basic 64-bit Edition
  • Windows Vista Home Premium 64-bit Edition
  • Windows Vista Ultimate 64-bit Edition
  • Windows Vista Enterprise 64-bit Edition
  • Windows Vista Starter
Keywords: 
kbhowto kbinfo kbexpertiseadvanced KB930088
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate