--- In [email protected], "entropyreduction" 
<[EMAIL PROTECTED]> wrote:
>
> Hi Bruce,
> 
> HWND  g_hwndPowerPro=FindWindow("PowerProMain",NULL);
> PPROSERVICES* g_ppsv = (PPROSERVICES*) SendMessage(g_hwndPowerPro,
> WM_USER+501, 0,0);
> 
> Doesn't work in another process (I'm looking at rewriting Julien's
> 2pp, 2ppvar routines).
> 
> g_ppsv wouldn't be valid in another process -- not same memory 
space?
>

Correct.

Try seeing if wm_copydata can be made to do what you want.  You'd 
have to have hidden window in your plugin that other processes would 
communicate with using wm_copydata (and vice versa).

Of course, you cannot send addresses to another process (e.g. result 
of getvaraddr is only meaningful to plugin running in powerpro 
process space).

Reply via email to