Example Code

Programatically Disable Windows AERO

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

 

Overview
This VI programmatically disables this Windows Feature by using a Windows API call.


Description
Some applications require Windows AERO to be disabled. This VI programmatically disables this Windows Feature by using a Windows API call so that you do not have to instruct users to disable it manually.This VI Calls DwmEnableComposition from Dwmapi.dll. Information on this Windows API call can be found here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa969510(v=vs.85).aspx

It also checks the OS Version of the computer running the code to verify that the computer has AERO as an option before it calls the DLL.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run the VI.

 

Additional Information or References
VI Block Diagram

 code.png

 

  **This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

Craig H. | CLA CTA CLED | Applications Engineer | NI Employee 2012-2023

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Ben_Phillips
Member
Member
on

Thanks for doing this, this might prove to be highly benenficial for us.

Also, you didn't add enough tags