The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: xandaz on May 21, 2012, 07:58:59 PM

Title: TB_GETBUTTON where addr TBB is ....
Post by: xandaz on May 21, 2012, 07:58:59 PM
    How do i make it work for another process to access the lpTBBUTTON of TB_GETBUTTON? I created another process and am trying to use another to enumerate the components of a given control in the other process. The TBBUTTON struct that i reffer in the message comes out empty. Is there a way to allocate memory that would be common to two different processes? Thanks in advance.
Title: Re: TB_GETBUTTON where addr TBB is ....
Post by: qWord on May 21, 2012, 08:30:31 PM
Quote from: xandaz on May 21, 2012, 07:58:59 PMIs there a way to allocate memory that would be common to two different processes?
The VirtualAllocEx function allowes to allocate memory in an other process.
However, what about a message based interface for IPC?
Title: Re: TB_GETBUTTON where addr TBB is ....
Post by: xandaz on May 21, 2012, 08:35:47 PM
    Qw.... that's chinese to me. I'm just writting one app. I was trying to see if i could enumerate the button identifiers of the media player's toolbar so i could write something that'd keep track of whether it's playing, paused, which track, etc.
    I also tryied file mapping but the player always crashes. Thanks qw.
    btw. this was for a rent-a-coder but i think i've had enough trouble for 17 usd max and someone in russia will prolly bid 10usd so nm.
    Thanks again q