not working: process commandline, trayicons.hint

delphi package - easy access to kernel objects etc.

not working: process commandline, trayicons.hint

Postby brian » Fri Feb 29, 2008 11:18 am

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!
brian
 
Posts: 36
Joined: Fri Feb 29, 2008 11:12 am

Postby madshi » Mon Mar 03, 2008 1:08 pm

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...
madshi
Site Admin
 
Posts: 9338
Joined: Sun Mar 21, 2004 5:25 pm

Postby brian » Tue Mar 11, 2008 4:15 am

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)
brian
 
Posts: 36
Joined: Fri Feb 29, 2008 11:12 am


Return to madKernel

Who is online

Users browsing this forum: No registered users and 1 guest