views:

397

answers:

4

Does anyone know what parameters to pass to dwmapi.dll ordinal #113? (Windows 7)

I'm trying to incorporate this method into an application that I'm writing. From what I can tell, this method is responsible for doing the Aero peek thing for windows. If I pass no params to the method it will show the desktop and outlines of all open, non-maximized windows. Nothing happens when I try passing parameters - which I've done using trial and error.. mostly error.

Any help would be greatly appreciated.

+10  A: 

Don't do it. It's undocumented for a reason and is subject to change and/or removal at any time. Given that Windows 7 hasn't been release yet you won't even be able to guarantee that it'll be there in the final version.

Sean
I'm sure that it's undocumented for a reason. But, I'm creating this program for myself and have no plans to release it. I really don't think that this method is going to change or be removed.. and if it is then I'll find an alternative to using it.
softwerx
+1  A: 

Your tags are inconsistent. An API is an application programming interface. Ordinal #113 is undocumented because it's not part of the interfaces for applications. It is likely present because the OS needs it itself, or because the current RC hasn't finished removing it, etc.

MSalters
I highly doubt that the method will be changed/removed in a future version of Windows 7. It hasn't changed since the first release/leaked builds.
softwerx
@softwerx: LOL... let me introduce you to Bob. He worked on a team called WinFS.
Josh Einstein
A: 

Please go read Raymond Chen's blog until you realize this is a really, really, really bad idea!

Andreas Magnusson
I've read this blog before. I understand the consequences..I just want to know what kind of parameters to pass the method as of now. If it changes I'll at least have an idea of how to update my own code to reflect its changes.
softwerx
A: 

There's a reason that apps can't activate Aero Peek - the user gets to choose when that happens, not you.

Paul Betts
The program I'm building is a taskbar application that mimics the Windows 7 taskbar. I'd like to try to reproduce it as closely as possible - this is the reason for wanting to use Aero Peek.
softwerx
There may be a reason but, I managed to do it anyway ;)
softwerx