quote:
Originally posted by matty
It will work but not as you expected. DwmIsCompositionEnabled has an output parameter that is true if enabled or false if it is not. You need to check that not the return value of the API.
Ah i get it now... The code posted was c# not c++.
In c++ implementation it takes an in/out parameter to get the output value, of course that is the one i will use ;P, besides the script is in c++.