Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Determine if Active Desktop is On

Keywords:   active desktop

Question:

How can I detect if Active Desktop is turned on?

Answer:

AddExtender("wilx34I.dll")

value = RegQueryBin(@REGCURRENT, "Software\Microsoft\Windows\CurrentVersion\Explorer[ShellState]")
binbuf=BinaryAlloc(100)
BinaryPokestr(binbuf, 0,value)  ;Pokes a new value into the buffer.
hex=BinaryPeekStr(binbuf, 12, 2)
;message("",hex)
dec = xHex(hex)
;message("",dec)
;You can toggle the Active Desktop setting to see how this works
if dec & 64 then message("", "Active Desktop On")

Article ID:   W13143
Filename:   Detect if Active Desktop is On.txt