Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   determine comandline call of task (http://forums.winamp.com/showthread.php?t=336175)

Brummelchen 17th October 2011 21:26

determine comandline call of task
 
with process explorer (sysinternals) i can see it, but how to with nsis?

eg task/name "explorer.exe" commandline: "explorer.exe /e c:\" started from: blah

WMIC from windows can list all processes but cannot handle wildcards.

cheers.

LoRd_MuldeR 18th October 2011 00:31

Why does your NSIS installer need to obtain the command-line of another process?

Brummelchen 18th October 2011 20:27

i dont write installers, i code some other stuff for me.

with WMIC i need to use an array and filtering - not smart.

Anders 18th October 2011 21:41

Why is there no supported way to get the command line of another process?

Brummelchen 18th October 2011 22:03

ofc - or not ► http://www.autoitscript.com/forum/to...nning-process/

LoRd_MuldeR 18th October 2011 22:45

Quote:

For 32-bit processes running on x86 systems, the PEB is "generally" located at 0x7ffd6000. At an offset of 0x10 bytes from the start of the PEB, you will find the pointer to the RTL_USER_PROCESS_PARAMETERS structure. The pointer to the unicode string containing the command line is located at an offset of 0x040 from the start of the RTL_USER_PROCESS_PARAMETERS structure.
Having to dig in another process's memory to dump a data structure whose exact location is not officially documented and may be subject to change in future operating system versions sounds a bit "dubious" to me. The WMI method feels more credible to me...


All times are GMT. The time now is 18:07.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.