|
|
@ -24,15 +24,21 @@ int main (void)
|
|
|
|
getline(cin, blah);
|
|
|
|
getline(cin, blah);
|
|
|
|
|
|
|
|
|
|
|
|
DF.Resume();
|
|
|
|
DF.Resume();
|
|
|
|
|
|
|
|
|
|
|
|
cout << "Resumed, DF should be running" << endl;
|
|
|
|
cout << "Resumed, DF should be running" << endl;
|
|
|
|
getline(cin, blah);
|
|
|
|
getline(cin, blah);
|
|
|
|
|
|
|
|
|
|
|
|
DF.Suspend();
|
|
|
|
DF.Suspend();
|
|
|
|
|
|
|
|
|
|
|
|
cout << "Suspended, DF should be suspended now" << endl;
|
|
|
|
cout << "Suspended, DF should be suspended now" << endl;
|
|
|
|
getline(cin, blah);
|
|
|
|
getline(cin, blah);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DF.Resume();
|
|
|
|
|
|
|
|
cout << "Resumed, testing ForceResume. Suspend using SysInternals Process Explorer" << endl;
|
|
|
|
|
|
|
|
getline(cin, blah);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DF.ForceResume();
|
|
|
|
|
|
|
|
cout << "ForceResumed. DF should be running." << endl;
|
|
|
|
|
|
|
|
getline(cin, blah);
|
|
|
|
|
|
|
|
|
|
|
|
if(!DF.Detach())
|
|
|
|
if(!DF.Detach())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cerr << "Can't detach from DF" << endl;
|
|
|
|
cerr << "Can't detach from DF" << endl;
|
|
|
|