visual c++ - Getting the last active window's title of a process running under system account in services -
visual c++ - Getting the last active window's title of a process running under system account in services -
we need lastly active window's title of process.
currently using command tasklist /v
, parsing window title.
problem:
we not able lastly active window's title if run command under system business relationship in services
.
output if run under windows account/system business relationship (not services):
image name pid session name session# mem usage status user name cpu time window title firefox.exe 4476 console 1 509,224 k running ramesh 0:01:47 getting window title of process
output if run under windows account/system business relationship (from services):
image name pid session name session# mem usage status user name cpu time window title firefox.exe 4476 console 1 509,224 k running ramesh 0:01:47 n/a
our application running under scheme business relationship services. there way windows title programme running under scheme business relationship services?
in windows vista , later windows service run in separate session. when user logs in terminal services enabled computer new session created each logon. that's reason not able access window title of process since running under different session.
however, interactive service can display user interface , receive user input. access window title of process in user's session, need create interactive services.
msdn article: interactive services.
visual-c++ cmd window title
Comments
Post a Comment