Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - how to discover is aero is running

 
 
Old 01-15-2007   #1 (permalink)
Roberto Della Pasqua


 
 

how to discover is aero is running

hi dear group,

how to detect if aero is running instead of basic standard GUI?

thanks

My System SpecsSystem Spec
Old 01-16-2007   #2 (permalink)
Eddie


 
 

Re: how to discover is aero is running

Roberto,
Current running theme can be queried via the registry key of
"HKEY_CURRENT_USER\Software\Microsoft\Plus!\Themes\Current".
Other theme related information can be found under
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager"

Hope this helps!

Eddie (MSFT)

Roberto Della Pasqua wrote:
> hi dear group,
>
> how to detect if aero is running instead of basic standard GUI?
>
> thanks


My System SpecsSystem Spec
Old 01-16-2007   #3 (permalink)
Roberto Della Pasqua


 
 

Re: how to discover is aero is running

Eddie,

thank you,

btw. but the aero theme will be the unique within the 3D powered UI?
aren't user personalization changing the name of these keys (eg. a user
can save as "mytheme" a changed UI)?


> Roberto,
> Current running theme can be queried via the registry key of
> "HKEY_CURRENT_USER\Software\Microsoft\Plus!\Themes\Current".
> Other theme related information can be found under
> "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager"
>
> Hope this helps!
>
> Eddie (MSFT)
>
> Roberto Della Pasqua wrote:
>> hi dear group,
>>
>> how to detect if aero is running instead of basic standard GUI?
>>
>> thanks

>




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
My System SpecsSystem Spec
Old 01-16-2007   #4 (permalink)
Keith Patrick


 
 

Re: how to discover is aero is running

Also, if there isn't some kind of theme API built into Windows for this, is
the registry key in question is going to be stable for the next 3-4 years?
It seems like the result of this route would be a managed app that has a
single point that is VERY coupled into the internal workings of Windows
(i.e. the registry), as opposed to being linked at a more abstract (and
compile-checked) API



My System SpecsSystem Spec
Old 01-17-2007   #5 (permalink)
Jan Kucera


 
 

Re: how to discover is aero is running

Hi,
the C# interop for this API is

[DllImport("dwmapi.dll")]
private extern static int DwmIsCompositionEnabled(ref int enabled);

I personally, check for Aero this way:

public static bool Applicable
{
get
{
try
{
if (System.Environment.OSVersion.Version.Major < 6) return
false;
int enabled = 0; DwmIsCompositionEnabled(ref enabled);
if (enabled == 0) return false;
}
catch { return false; }
return true;
}
}

Hope this helps,
Jan


"Keith Patrick" <richard_keith_patrick@nospam.hotmail.com> wrote in message
news:OfZ$uAbOHHA.5012@TK2MSFTNGP02.phx.gbl...
> Also, if there isn't some kind of theme API built into Windows for this,
> is the registry key in question is going to be stable for the next 3-4
> years? It seems like the result of this route would be a managed app that
> has a single point that is VERY coupled into the internal workings of
> Windows (i.e. the registry), as opposed to being linked at a more abstract
> (and compile-checked) API
>
>
>


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Re: Can't open discover either Vista networking & sharing
Please help discover IIS by WMI PowerShell
Aero and Vista x64 blanks screen when game is running. Vista Games
how do I know if Aero is up and running? Vista General
running much faster after disabling and re-enabling aero... Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46