Re: Can LoadIcon be used to load the icon of another process
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 1 Oct 2008 00:36:40 -0400
"a" <a@xxxxx> wrote in message
news:u0eUjJ3IJHA.5900@xxxxxxxxxxxxxxxxxxxx
Suppose the process is run as another user in my desktop. I do not
have access to the app file for sake of windows security (the app is
in the that user's profile dir). How can I get the icon?
You can't. You don't have access to that file for a reason.
I believe the icon resource is loaded into the process's virtual
memory. Is it possible to dump the memory of the process and get the
icon?
There are things like ReadProcessMemory, but they are likely to be
blocked by the same security restrictions that prevent you from getting
to the file. If it were that easy to work around Windows security, you'd
hear about it by now - it'd be on Slashdot in no time.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Prev by Date: Re: Can LoadIcon be used to load the icon of another process
- Next by Date: digital camera
- Previous by thread: Re: Can LoadIcon be used to load the icon of another process
- Next by thread: Re: Can LoadIcon be used to load the icon of another process
- Index(es):
Relevant Pages
|