Results 1 to 27 of 27

Thread: List all XP themes (Unresolved but given up)

  1. #1

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Resolved List all XP themes (Unresolved but given up)

    Hello

    I've searched the forums, microsoft and google but i haven't found a thing. I need to list all the available XP themes, and if possible to set one. Thanks
    Last edited by Andrew G; Feb 10th, 2006 at 08:49 PM.

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: List all XP themes

    Maybe some of the API's here will be useful.

  3. #3

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: List all XP themes

    Thanks, but i still don't understand much of it . I'm trying to mess around with it but i don't know the API calls so its a bit hard.

  4. #4

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: List all XP themes

    Ok does anyone have the api calls in visual basic. Thanks

  5. #5
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: List all XP themes

    just search for them in google 'vb FunctionName':

    here's three for starters

    VB Code:
    1. Private Declare Function OpenThemeData Lib "uxtheme.dll" _
    2.    (ByVal hWnd As Long, ByVal pszClassList As Long) As Long
    3. Private Declare Function CloseThemeData Lib "uxtheme.dll" _
    4.    (ByVal hTheme As Long) As Long
    5. Private Declare Function GetCurrentThemeName Lib "uxtheme.dll" ( _
    6.     ByVal pszThemeFileName As Long, _
    7.     ByVal dwMaxNameChars As Long, _
    8.     ByVal pszColorBuff As Long, _
    9.     ByVal cchMaxColorChars As Long, _
    10.     ByVal pszSizeBuff As Long, _
    11.     ByVal cchMaxSizeChars As Long _
    12.    ) As Long

  6. #6
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: List all XP themes

    Just found this thread in C# forum. The conversion may not me very hard.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  7. #7
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: List all XP themes

    here's some pscode for getting the current style: http://www.planetsourcecode.com/vb/s...53379&lngWId=1

  8. #8

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: List all XP themes

    Thanks i'll check them out.
    Last edited by Andrew G; Feb 10th, 2006 at 07:05 AM.

  9. #9

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: List all XP themes

    I found this as well but it doesn't return all the available themes, and sadly the the two links above are very similar. The closest thing i have found is to use the folder 'C:\WINDOWS\Resources\Themes' and just get the themes from that. Anyway thanks everyone for the help.

  10. #10
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: List all XP themes

    you could launch the Display Properties dialog box hidden, and then pull the information from the comboboxes with API:

    VB Code:
    1. Call Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,5", vbHide)

    that launches it with the Themes tab on top.

    http://vbnet.mvps.org/index.html?cod...ontrolpnl5.htm

  11. #11
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: List all XP themes

    Hi there, check out the attachment, it might do what you wanted.

    The only problem is that no matter what state you put in the shell call it still loads up vbNormalFocus, stupid thing.

    I've stuck in a

    VB Code:
    1. ShowWindow lDisplayhWnd, 0&
    to hide it, but you still get a brief flash.

    Aside from that it seems to work fine. You'd have to develop it to be able to change the colour of the XP theme (it's a different tab), but it shouldn't be too difficult.

    Now if it would only launch hidden!
    Attached Files Attached Files

  12. #12
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: List all XP themes

    My codeBank thread on detecting XP themes should help.

    http://www.vbforums.com/showthread.php?t=378272
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  13. #13

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: List all XP themes

    bushmobile: Thanks its great, but unfortunetly i can't use this as i am trying to make a copy of the display properties, and where i need to use it, they probably have disabled it.

    RobDog: Thanks but it only gets the current theme.

    I suppose currently there is not way so i'll leave it till later.


    Thanks everyone

  14. #14
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: List all XP themes (Unresolved but given up)

    The MS themes are located in the Resources folder under the Windows directory.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  15. #15
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: List all XP themes (Unresolved but given up)

    Quote Originally Posted by Andrew G
    The closest thing i have found is to use the folder 'C:\WINDOWS\Resources\Themes' and just get the themes from that
    Keep up RobDog

  16. #16
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: List all XP themes (Unresolved but given up)

    Do custom third party themes also install to the same location? I dont want to install any but if anyone knows...
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  17. #17
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: List all XP themes (Unresolved but given up)

    @RobDog888,
    To apply 3rd party themes, first you'll need to patch uxtheme.dll

    Do custom third party themes also install to the same location? I dont want to install any but if anyone knows...
    Don't worry. I'm here to help you.
    I've tried at least 50 3rd party theme. It actually depends on the theme.

    If the theme uses default XP elements - like start button, images - then probably it woun't need any other files except the .theme file.
    XP doesn't copy the theme file in your profile by default. You have to manually copy them.

    But if the theme is more advanced - i.e. it replaces your start button/taskbar/window styles - then it will need a dll (?) to provide those resources. Most of the time, these themes comes with an installer, they take care of everything.
    Last edited by iPrank; Sep 27th, 2006 at 06:20 AM.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  18. #18

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: List all XP themes (Unresolved but given up)

    Here is a quote from a book "Hacking Windows® XP" it explains about how to enable your own visual styles.

    Quote Originally Posted by Hacking Windows® XP
    Windows XP includes a new skinning engine built into the operating system, which it uses to display its own skin format, known as visual styles. Visual styles are responsible for transforming the boring old Windows classic look into the colorful and visually pleasing Windows XP look. Unfortunately, Microsoft has decided to keep the format of visual styles secret and built the skinning engine to only accept Visual styles that are digitally signed by Microsoft. This decision puts a big roadblock in the path of creating your own visual styles. On top of that, Microsoft decided that they were not going to release any more visual styles, so we are all stuck with the default Windows XP look.

    This presented a problem to the Windows XP tweaking community. Everyone wanted to take advantage of the new visual styles engine that was built into Windows XP and create his or her own visual styles. When I first started to use Windows XP, I spent a lot of time trying to figure out how to create my own visual styles. I tried using Resource Hacker on the visual style file that came with Windows XP to replace the bitmaps inside the file. I was sure that this attempt would work, but when I tried to view the visual style in Display Properties, the rendering was very strange in the Preview window, and when I tried to apply it, the computer would revert to the classic Windows interface. After spending some time browsing the Web and reading forums, I found out that the reason why my new visual style was not working was because the file was not digitally signed by Microsoft. Apparently, even if you modify a file that was signed by Microsoft, the signature is broken because the checksum of the file changed when you replaced the bitmaps.

    What would be the next step? Well there were two options: either try to fake a digital signature on the theme file or just remove the digital signature requirement from the visual style engine. Faking a digital signature is very difficult, if not impossible, so removing the digital signature requirement was the only plausible choice.

    A company called TGT Soft (www.tgtsoft.com) released a program called Style XP, as well as a free patch that you could use. All you would have to do is run the patcher on your computer and let it go loose on your uxtheme.dll file, which is the heart of the visual style engine, and it would remove the digital signature requirement. You’ll soon learn how to use the Style XP shareware for making lots of interesting changes, in the section entitled Installing New Visual Styles.

    The development of Style XP and its run around of the Windows XP signatures created shockwaves in the skinning community. It would now be possible to use different visual styles to take advantage of the new skinning engine. Sites such as ThemeXP.org sprung up, offering hundreds of visual styles that XP users all over the world made. Everyone was happy, except for Microsoft.

    Eventually, TGT Soft found itself in a little trouble when Microsoft found out that they released a program that bypassed the requirement. Microsoft could have blown this company out of the water, but they were very generous and allowed TGT Soft to continue to develop its product and helped them write a service that ran in the background so that they would no longer have to hack the system file.

    Nowadays things have changed a little bit. TGT Soft still offers its Style XP application that can be used to unsign visual styles, but it is still shareware. Thankfully, there is an application called the UXTheme Multi-Patcher, which will patch the skinning engine just like the old TGT Soft patch.

  19. #19
    Addicted Member
    Join Date
    Jul 2006
    Posts
    219

    Re: List all XP themes (Unresolved but given up)

    Somewhere on the Windows MarketPlace website, I found that the UXTheme Patch was also on there for a weird reason.
    I'll send a link soon.
    PS.Is Windows MP a universal download site,because that's the only reason i think the UXT patch is on there.

  20. #20
    Fanatic Member ididntdoit's Avatar
    Join Date
    Apr 2006
    Location
    :uoıʇɐɔoן
    Posts
    765

    Re: List all XP themes (Unresolved but given up)

    I know this is old, but maybe it'll help someone. I'm not sure if ALL themes fit this or not (I think they do) but most are in the c:\windows\resources\themes directory. some simple code could get a list of all theme files in that directory. again not sure, but I think all themes must b in this folder to be used. hope it helps!
    Visit here to learn to make the VB interface fit you!.
    "I have not failed 10,000 times. I have successfully identified 10,000 ways that will not work" Thomas Edison
    "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners" -- Ernst Jan Plugge

  21. #21
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: List all XP themes

    post #9 - 11 months ago
    Quote Originally Posted by Andrew G
    I found this as well but it doesn't return all the available themes, and sadly the the two links above are very similar. The closest thing i have found is to use the folder 'C:\WINDOWS\Resources\Themes' and just get the themes from that. Anyway thanks everyone for the help.

  22. #22
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: List all XP themes (Unresolved but given up)


  23. #23

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: List all XP themes (Unresolved but given up)

    lol, i've completely forgotten about this

    Rory.. thanks, i've tried the example in the link you posted, but it still uses the properties box, and on the computer i'm going to be using it will have it disabled. I've given up on the idea, and since Vista is out, even if i do make the program, it probably won't work once they update the system. So thanks anyway

  24. #24
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: List all XP themes (Unresolved but given up)

    Quote Originally Posted by Andrew G
    lol, i've completely forgotten about this

    Rory.. thanks, i've tried the example in the link you posted, but it still uses the properties box, and on the computer i'm going to be using it will have it disabled. I've given up on the idea, and since Vista is out, even if i do make the program, it probably won't work once they update the system. So thanks anyway
    well i only use that so it changes it on the fly ..
    you can still change it in the registry then restart the PC for the changes to take effect ,,

    PS. why is the display properties disabled?
    PSS. Tell them stay far far away from Vista
    PSSS. You could probably use WMI to list all the themes also ..
    or just do what one poster said .. use the themes folder ..
    actually its in the registry also ..

  25. #25

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: List all XP themes (Unresolved but given up)

    I basically wrote a program before that would change the system colours on the computer at school and to change the resolution (some one kept leaving them on 640x480 ). But i lost the code, so I've decided to rewrite it, but wanted to include extra features such as changing theme, screen saver etc. But I'm now at uni, and they've disabled all programs from running (except a select few) so I'm not gonna bother with trying to bypass it, just to create a program that would apply the gray theme instead of the blue

  26. #26
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: List all XP themes (Unresolved but given up)

    well here is the screen resolution ..
    http://www.vbforums.com/showthread.p...60#post2652660

  27. #27

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: List all XP themes (Unresolved but given up)

    I've already done most of the program including the resolution, system colours, background. the only missing things where the screensaver (which i had decided was going to be useless anyway since I would hardly see it) and the themes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width