It's _possible_ that if you describe what you're really trying to do here, *
*from the high-level goal perspective, ignoring completely any particular *
implementation details, someone could offer better advice.
Pete
I'm doing a tool like spy++. Win32 controls are interpreted (runtime
converted) as .net object
for example Win32 control properties are displayed in a managed
propertyGrid of my spy++ application just like any other .Net
control.
My question was about filling Button.Image in my property grid
(selectedObject is a button) when converting a Win32 control to a .net
control.
I was just wondering why WM_GETIMAGE return unusable image handle...
(never seen a negative handle since now) With your help I understand
that it return a negative unasable handle because it's in another
process.
I already use a dll and a windows hook to get things like
Button.ImageLis t with WM_GETIMAGELIST and will probably use the same
kind of code to get the image handle of WM_GETIMAGE from the other
process.
Pete : What you mean By malware-like techniques?? Is there any other
way to do this without hooking windows to inject a dll into the other
process???
Since you always trying to help me in different threads here , you now
know why i'm asking win32 to .net questions. :)