|
#pragma once
// Command line switch for restarted application
#ifndef RA_CMDLINE_RESTART_PROCESS
#define RA_CMDLINE_RESTART_PROCESS TEXT("--Restart")
#endif
// Mutex unique name
#ifndef RA_MUTEX_OTHER_RESTARTING
#define RA_MUTEX_OTHER_RESTARTING TEXT("YOUR_RESTART-MUTEX_NAME")
#endif
// Return TRUE if Process was restarted
BOOL RA_CheckProcessWasRestarted();
// Check process command line for restart switch
// Call this function to check that is restarted instance
BOOL RA_CheckForRestartProcessStart();
// Wait till previous instance of process finish
BOOL RA_WaitForPreviousProcessFinish();
// Call it when process finish
BOOL RA_DoRestartProcessFinish();
// Call this function when you need restart application
// After call you must close an active instance of your application
BOOL RA_ActivateRestartProcess();
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.