not working: process commandline, trayicons.hint

delphi package - easy access to kernel objects etc.
Post Reply
brian
Posts: 38
Joined: Fri Feb 29, 2008 11:12 am

not working: process commandline, trayicons.hint

Post by brian »

Hello Madshi,

This is my first time posting here, hoping to get a clue what I'm doing wrong. You probably don't remember me but we shared some topics back in the days when EE was fresh (I was most active there in 98-99-00 as bryan7)

I am using Vista 32-bit and Delphi 2007.

2 Problems:

1- I'm trying to get the commandline of a process, but all I get is the exe path+exename, of any process.

memo1.lines.add(Process('vlc.exe').CommandLine);

this simple returns "C:\Program Files\VideoLAN\VLC\vlc.exe", whereas using ProcessExplorer (from sysinternals) i gets the commandline arguments (filename that was loaded)

2- Same with TrayIcon.Hint

memo1.lines.add(Process('vlc.exe').[0].hint);

this is empty, and checking ItemCount returns 0 (with ANY process)

Maybe it's problem with Vista?

Thanks!
madshi
Site Admin
Posts: 10338
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Hey,

oh the old EE days... ;)

Does the Process Explorer show this information with or without being started as admin? Does your own process have admin rights? You could try enabling all privileges. That might help...
brian
Posts: 38
Joined: Fri Feb 29, 2008 11:12 am

Post by brian »

Process Explorer shows either with or without admin privs. (I usually run it as admin with /e)

Tried running the test as admin but it didn't help (for either tests commandline/tray icons)
Post Reply