About EnumWindows,FindWindow API

i write a console program under VC6,and i want use EnumWindows or FindWindow in the program;this API can work properly when i run this console program normally,but when i call it from serverlet use Runtime.exec(),those API can't work,that is ,they always fail;i have start the TOMCAT service use Administrator;how can i solve this problem?
i'm a newer to here,i only have 80 point ,all give to this problem,thank you so much.
pku_hawkAsked:
Who is Participating?
 
DanRollinsConnect With a Mentor Commented:
A System Service will typically execute in its own "desktop" and thus may be able to see regular windows opened normally bey a user.

Try setting the Service a "Allow service to interact with the desktop"  (this is a setting in the Service Manager).  I do not know what TOMCAT is.

-- Dan
0
 
pku_hawkAuthor Commented:
thank you so much,but i can't find where to set it?
0
 
pku_hawkAuthor Commented:
yes, i have found it ,but want  to activate the option ,i must those login as local system account;but now i config to use specific account(administrator);i will try later,if i use the former will it work properly
0
 
pku_hawkAuthor Commented:
if i don't use log on as administrator to start tomcat,then the process start by the serverlet haven't the environment viarable;
0
 
bcladdCommented:
No comment has been added lately, so it's time to clean up this TA. I will
leave a recommendation in the Cleanup topic area that this question is:

Answered: Pointsto DanRollins: Grade B

Please leave any comments here within the next seven days.

Experts: Silence means you don't care. Grading recommendations are made in light
of the posted grading guidlines (http://www.experts-exchange.com/help.jsp#hi73).

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

-bcl (bcladd)
EE Cleanup Volunteer
0
All Courses

From novice to tech pro — start learning today.