You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
656 B
C
34 lines
656 B
C
4 weeks ago
|
#include <stdio.h>
|
||
|
#include <tchar.h>
|
||
|
|
||
|
#include "server.h"
|
||
|
|
||
|
void PrintHelpMessage() {
|
||
|
printf("Usage error: I know 3 arguments \n\t\"install\"\n\t\"delete\"\n\t\"app\"\n");
|
||
|
}
|
||
|
|
||
|
int _tmain(int argc, TCHAR *argv[]) {
|
||
|
printf("\n->Start of parent execution.\n");
|
||
|
if (argc == 2) {
|
||
|
if (lstrcmpi(argv[1], TEXT("-c")) == 0) {
|
||
|
return 0;
|
||
|
}
|
||
|
else if (lstrcmpi(argv[1], TEXT("-s")) == 0) {
|
||
|
StartShellServer();
|
||
|
return 0;
|
||
|
}
|
||
|
else {
|
||
|
PrintHelpMessage();
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
else {
|
||
|
PrintHelpMessage();
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|