VOID
UserSelectedPrint( VOID )
{
	/* Prevent the user from editing buffer being printed. */
	LockBufferFromEdits();
	
	if( Pfork() == 0)
	{
		/* Child enters here */

		appl_init();		     		/* Required for GEM threads. */

		DisplayPrintingWindow();		/* Do our task. */
		PrintBuffer();

		/* Send an AES message to the parent telling it to unlock buffer. */
		SendCompletedMessageToParent();

		/* Cleanup and exit thread. */
		appl_exit();
		Pterm( 0 );
	}

	/* Parent returns and continues normal execution. */
}


