Compiling for Windows
miscdas at boxfrog.com
miscdas at boxfrog.com
Tue Oct 1 14:37:01 EDT 2002
Ray Horsley writes:
> I've encountered two issues in making my Windows App.
>
> The first one is doing something about Window's propensity to open a second copy of my App if it's double-clicked again after a first copy is already running (instead of the Mac's more reasonable approach of bringing the first copy forward). Richard Gaskin suggested I simply write a file to the
====================
The Windows Task List will show the loaded applications (more technically,
it contains a list of the registered processes). You can check the task list
to find which programs are running. If more than one instance is running,
each instance is listed.
You can access the windows Task List through the application programming
interface (API), that comprises essentially several DLLs. I believe the
kernl32.DLL holds the task list. Sorry, but I've never used the API. I
suspect Scott could provide a stack with the necessary hooks.
A cool trick for hiding your app from the task list (thereby preventing the
user from calling up the list, selecting your app and killing it) is to use
the API to unregister your app, thereby switching off display in the task
list.
miscdas
More information about the metacard
mailing list