windows - DELPHI: Store a some data in a shared memory to have an access from several apps -


problem defitintion
have 2 applications: first , second. first mine, second developed outsource.

1) @ time need send message first app second, make second 1 visible , maximized, after has been minimized.

2) in order (1) step, second app should store handle somewhere in shared memory, accessed name or whatever might (like mutexes do).

question

so, better option store data (a handle) in operating memory?

if want store information in shared place, typically use shared memory. in windows terms that's file mapping object. create 1 calling createfilemapping. these kernel objects , can named in kernel namespace.

file mappings not whole lot of fun work with, might find easier solution. give application's main form unique class name. instance might name form's class tmycompanynamemyproductnamemainform. call findwindow passing class name find existing application window.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -