Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6072137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:07:36+00:00 2026-05-23T10:07:36+00:00

I am trying to use the API for aero peek. With a lot of

  • 0

I am trying to use the API for aero peek. With a lot of digging and searching I stumbled upon this piece of code:

    [DllImport("dwmapi.dll", EntryPoint = "#113", SetLastError = true)]
    internal static extern uint DwmpActivateLivePreview(uint , uint , uint , uint );

But I can’t get it to work.. I don’t know what the parameters are.. I tried some API intercepting tools but that didn’t work out. How can I discover how to properly call this API?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:07:37+00:00Added an answer on May 23, 2026 at 10:07 am

    I eventually solved it my self. I have posted an article on my website about this:
    http://www.jesconsultancy.nl/tips-and-tricks/aero-apis.html.
    Unfortunately this is in dutch so here is a bit explaining:

     [DllImport("dwmapi.dll", EntryPoint = "#113", SetLastError = true)]
     internal static extern uint DwmpActivateLivePreview(uint switch, IntPtr hWnd, IntPtr c, uint d);
    
     DwmpActivateLivePreview(1, Handle, topmostWindowHandle, 1);//activate
     DwmpActivateLivePreview(0, Handle, topmostWindowHandle, 1);//deactivate
    

    The first parameter is for activating/deactivating the Aero Peek functionality. The second parameter is the handle that Aero peek focuses to. The other two one I haven’t been able to identify yet.

    Edit:
    After some more messing around with this API I figured out the 3th parameter. When setting the TopMost property of a form, the form still shows sometimes underneath of the aero peek effect. If you pass the handle to that form that needs to be on top of the peek effect as the 3th parameter, and the TopMost property of your form is set to true, your form will be on top of the peek effect.

    You can exclude a window from the Aero Peek effect. This is described here: http://huddledmasses.org/fun-with-pinvoke-and-aero-peek/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use Crocodoc api with the following code to get the
I'm trying to use an API for a Palo Alto Networks software. The code
I am trying to use some LLVM API in my C++ code, and I
I am trying to use Twitter API, I followed directions of http://code.google.com/p/python-twitter/ I installed
I am trying to use the TFS API to retrieve the latest code from
I am trying to use this API for the Federal Reserve Economic Data (FRED):
I'm trying to use m2eclipse api to import projects by archetype. my code is
I'm trying to use an api to get information about movies, i'm useing this
i'm trying use facebook API to upload photo in my fan page. I downloaded
I am trying to use StoryBoard API in Corona. However, my button touch event

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.