full path of a process
-
Hi, how do i receive full path of a specified process with it's name. with Process32First and Process32Next functions, i will receive the name of specified process (the szExeFile member of PROCESSENTRY32 struct) but to have full path? please help me.
Zo.Naderi-Iran
-
Hi, how do i receive full path of a specified process with it's name. with Process32First and Process32Next functions, i will receive the name of specified process (the szExeFile member of PROCESSENTRY32 struct) but to have full path? please help me.
Zo.Naderi-Iran
You may call GetModuleFilenameEx[^] (after calling OpenProcess[^] for retrieving process handle from process id). :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
You may call GetModuleFilenameEx[^] (after calling OpenProcess[^] for retrieving process handle from process id). :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
i include the psapi header:
#include psapi.h
but it is an error : unresolved externals ?
Zo.Naderi-Iran
modified on Thursday, December 9, 2010 6:39 AM
Did you link with Psapi.lib? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Did you link with Psapi.lib? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
The try to link with the library (select
Project->Project Properties
menu item, then, on the newly appeared window, chooseConfiguration Properties->Linker->Input
, finally addPsapi.lib
to theAdditional Dependecies
list). :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
The try to link with the library (select
Project->Project Properties
menu item, then, on the newly appeared window, chooseConfiguration Properties->Linker->Input
, finally addPsapi.lib
to theAdditional Dependecies
list). :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
You are welcome. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Including a header file and linking with a library are two separate things.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius