News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

EnableTheming XP SP2

Started by Darrel, June 17, 2006, 12:39:49 AM

Previous topic - Next topic

Darrel

I am revisiting a project from a while back. I want to be able to toggle between XP style theme and Classic within a program. Research has led me to the EnableTheming API in uxtheme.dll. I have XP SP2 and read sometime ago to use this particular API the application needs to be part of the Trusted Computing Base. Is anyone familiar with this? The code is as follows:

.code

Start:
INVOKE EnableTheming,FALSE ;uxtheme.dll

INVOKE EnableTheming,TRUE ;uxtheme.dll

INVOKE ExitProcess,eax ;kernel32.dll

END Start


This first line does turn off the XP style theme, however, the second line does not turn on the XP style theme for the current session.

Thanks for your time and consideration,

Darrel