Finding out if Imagenation is running

 

To find out if Imagenation is running, you can use code similar to the following:

/* Is there a previous instance of Imagenation running? */

if ((hFrameWnd = FindWindow( IMG_CLASSNAME_FRAME, NULL )) != NULL) {

/* Pass the information on to the first copy of Imagenation. */

return( FALSE );

}

At times you may need to check if an instance of Imagenation is already running. This is how information is passed from one instance of Imagenation to another:

#define IMG_CLASSNAME_FRAME "Imagenation:Frame"