Vote UpVote

Two ways to get the command line of another process using delphi

The Road to Delphi – Today I will show you how you can retrieve the Command line parameters of an external application from delphi using the WinApi and the WMI. In order to understand how the Command line parameters are stored and treated by the system, I recomend which you read this article fromĀ  Raymond Chen . The WinApi way In order to get the command line from an external process using the WinAPI, you must access to the PEB (Process Environment Block) of the application. To get the PEB you can use the NtQueryInformationProcess function NTSTATUS WINAPI NtQueryInformationProcess( __in HANDLE ...
Favorite? Off-Topic? Rodrigo @ 2011-07-20 07:33


Visits: 630
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Aleksey Timohin
Primoz Gabrijelcic
Simon J Stuart
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)