Re: Program Name From Handle



from the Platform SDK:

GetModuleFileNameEx

defined in psapi.h, link with psapi.lib

James
--
www.catch22.net
Free win32 software, sourcecode and tutorials


"Charlie Parker" <CharlieParker@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EB7314AE-728F-4051-A12A-DB84824C0688@xxxxxxxxxxxxxxxx
> Given a Windows Handle, how do I find out the full path to the program
> name
> that was run?
>
> E.g. if the handle is for NotePad, then it should give me
> "c:\windows\system32\notepad.exe".
>
> Thanks.
>
> Charlie Parker
> cparker@xxxxxxxxxxxxxxxxxx
>


.



Relevant Pages


Loading