|
|
|
@ -24,15 +24,21 @@ int main (void)
|
|
|
|
|
getline(cin, blah);
|
|
|
|
|
|
|
|
|
|
DF.Resume();
|
|
|
|
|
|
|
|
|
|
cout << "Resumed, DF should be running" << endl;
|
|
|
|
|
getline(cin, blah);
|
|
|
|
|
|
|
|
|
|
DF.Suspend();
|
|
|
|
|
|
|
|
|
|
cout << "Suspended, DF should be suspended now" << endl;
|
|
|
|
|
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())
|
|
|
|
|
{
|
|
|
|
|
cerr << "Can't detach from DF" << endl;
|
|
|
|
|