SetWindowTheme_() - XP
Posted: Tue Dec 22, 2009 4:01 pm
This is a strange one.
I have a complex dll (created with PB) which runs fine on Vista.
On XP, however (tested on 3 separate machines running XP), everything is fine when using the dll unless my client application makes a call to SetWindowTheme_(). With this I get an 'Application failed to Initialize..." error from Windows (almost as if system memory is being written to). If I use the same dll in source code form (as opposed to linking with the binary) then there are no problems.
Any idea what might be causing this? Could it be a base address issue for example? Any idea how I might rectify this?
Thanks.
**EDIT : if I use OpenLibrary() on "uxTheme.dll" and use CallFunctionFast to invoke SetWindowTheme_() then everything runs fine. Still, wouldn't mind knowing what is afoot here?
I have a complex dll (created with PB) which runs fine on Vista.
On XP, however (tested on 3 separate machines running XP), everything is fine when using the dll unless my client application makes a call to SetWindowTheme_(). With this I get an 'Application failed to Initialize..." error from Windows (almost as if system memory is being written to). If I use the same dll in source code form (as opposed to linking with the binary) then there are no problems.
Any idea what might be causing this? Could it be a base address issue for example? Any idea how I might rectify this?
Thanks.
**EDIT : if I use OpenLibrary() on "uxTheme.dll" and use CallFunctionFast to invoke SetWindowTheme_() then everything runs fine. Still, wouldn't mind knowing what is afoot here?