Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

how to discover is aero is running

Closed Thread
 
Thread Tools Display Modes
Old 01-15-2007   #1 (permalink)
Roberto Della Pasqua's Avatar
Roberto Della Pasqua
Guest


 



how to discover is aero is running

hi dear group,

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

thanks
Old 01-16-2007   #2 (permalink)
Eddie's Avatar
Eddie
Guest


 



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


Old 01-16-2007   #3 (permalink)
Eddie's Avatar
Eddie
Guest


 



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


Old 01-16-2007   #4 (permalink)
Roberto Della Pasqua's Avatar
Roberto Della Pasqua
Guest


 



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/
Old 01-16-2007   #5 (permalink)
Roberto Della Pasqua's Avatar
Roberto Della Pasqua
Guest


 



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/
Old 01-16-2007   #6 (permalink)
Keith Patrick's Avatar
Keith Patrick
Guest


 



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



Old 01-16-2007   #7 (permalink)
Keith Patrick's Avatar
Keith Patrick
Guest


 



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



Old 01-17-2007   #8 (permalink)
Jan Kucera's Avatar
Jan Kucera
Guest


 



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
>
>
>


Old 01-17-2007   #9 (permalink)
Jan Kucera's Avatar
Jan Kucera
Guest


 



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
>
>
>


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Can't open discover either PA Bear [MS MVP] Vista networking & sharing 1 04-27-2008 03:23 PM
Please help discover IIS by WMI Alexander Vasilevsky PowerShell 5 11-27-2007 01:46 PM
Aero and Vista x64 blanks screen when game is running. Chessman Vista Games 1 11-05-2007 05:46 PM
how do I know if Aero is up and running? robert A. Vista General 8 02-07-2007 12:42 PM
running much faster after disabling and re-enabling aero... ictiosapiens Vista General 7 10-16-2006 12:00 PM








Vistax64.com 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 2005-2008

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 47 48 49 50