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

Systray Icon Questions

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

SysTray No Longer Accessible

 Keywords: Windows 7 8 SysTray System Tray No longer accessible 271 System error. Unable to determine module names

Question:

I have this very simple example to access the systray systemtray which used to work fine with both Win7 and Win8. Now it no longer works with Win8. It gives the following error msg: "WIL Extender Error: 271: System error. Unable to determine module names. Offending line is "window1=cWndByWndSpec("Shell_TrayWnd","explorer",2,303,40965)"

Here is the code:

AddExtender("wwctl64i.dll")

;Title: User Promoted Notification Area
;ID: 1504
;Class: ToolbarWindow32
;Level: 4
; Default cWndByWndSpec seems OK here
window1=cWndByWndSpec("Shell_TrayWnd","explorer",2,303,40965)
window2=cWndbyid(window1,303)
window3=cWndbyid(window2,0)
ControlHandle=cWndbyid(window3,1504)
tblist=cGetTbText(ControlHandle)

tbitem = AskItemlist('Choose Items to Left Click', tblist, @TAB, @UNSORTED, @SINGLE)

buttonnum=ItemLocate(tbitem,tblist,@TAB)

Answer:

Sounds like corrupt performance counters. You can find information on how to repair the counters herehttp://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Functions+!!~Performance~Monitoring~and~WinBatch~!!.txt

The 'lodctr' utility with the '/R' command line switch is available on Windows 8 and should fix the problem. Note that you will need to run the 'lodctr' tool from an elevated command prompt.


Article ID:   W18297
Filename:   SysTray No Longer Accessible .txt
File Created: 2014:07:18:09:51:40
Last Updated: 2014:07:18:09:51:40