View Single Post
Old 01-06-2001, 09:01 PM
douglas douglas is offline
Senior Member
Join Date: Jul 2001
Posts: 7,695
Default RE: Detecting active desktop -- systemparametersinfo?

Check for it using the shell32.dll. Like this:

uses shlobj

sfs: ShellFlagState;

if sfs.Data > 0 then
ShowMessage('Active Desktop enabled');
//error handling

The reason you need to make sure you have a try except is because if you run this code on a machine that does not have active desktop support, it will give an error because it does not recognize the dwmask parameter.

See Microsoft website for more details:
Reply With Quote