WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Desktop

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2001:03:01:14:57:14
Last Updated: 2001:03:01:14:57:14