-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTools_in_System.c
More file actions
153 lines (116 loc) · 3.63 KB
/
Tools_in_System.c
File metadata and controls
153 lines (116 loc) · 3.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#include <stdio.h>
#include <process.h>
int main()
{ system("color f9");
system("mode con: cols=50");
int choice=0;
do{
printf("***************************************\n");
printf(" Power Tools :\n\n");
printf(" 1. Eteindre l'ordinateur...\n");
printf(" 2. Redemarrer...\n");
printf(" 3. Verrouiller...\n");
printf(" 4. Metter En Veille...\n");
printf(" 5. Deconnecter compte (Pas besoin!)\n");
printf("\n***************************************\n");
printf(" Informations :\n\n");
printf(" 6. System Information...\n");
printf(" 7. Pilotes...\n");
printf(" 8. Hotspot Management...\n");
printf(" 9. Wifi Configuration...\n");
printf(" 10. Temps avant Veille et Eteindre..\n");
printf(" 11. IP-Adresse(ipconfig)...\n");
printf(" 12. Tous infos de PC(systeminfo)...\n");
printf(" 13. Clavier Visuel...\n");
printf(" 14. Programmes et desinstallations..\n");
printf("\n***************************************\n");
printf(" Projection :\n\n");
printf(" 15. Dupliquer...\n");
printf(" 16. Resolution et affichage...\n");
printf(" 17. Ecran du Pc uniquement...\n");
printf("\n***************************************\n");
printf(" 0. Quitter...\n");
printf("\n***************************************\n");
printf("\n Choisit le numero convenable : ");
printf("\n --> ");
scanf("%d",&choice);
switch(choice)
{
case 0:
system("exit"); //
break;
case 1:
system("SHUTDOWN -S -t 0");
break;
case 2:
system("SHUTDOWN -r -t 0");
break;
case 3:
system("rundll32.exe user32.dll,LockWorkStation"); //verouiller, lock
break;
case 4:
system("SHUTDOWN -h"); //veille
break;
case 5:
system("SHUTDOWN -l");
break;
/*------------------------------*/
case 6:
system("msinfo32");
system("cls");
break;
case 7:
system("devmgmt.msc");
system("cls");
break;
case 8:
system("start Hotspot.exe");
system("cls");
break;
case 9:
system("ncpa.cpl");
system("cls");
break;
case 10:
system("control /name Microsoft.PowerOptions /page pagePlanSettings");
system("cls");
break;
case 11:
system("ipconfig");
system("pause");
system("cls");break;
case 12:
system("systeminfo");
system("pause");
system("cls");
break;
case 13:
system("osk.exe");
system("cls");
break;
case 14:
system("control appwiz.cpl");
system("cls");
break;
case 15:
system("displayswitch /clone");
system("cls");
break;
case 16:
system("desk.cpl");
system("cls");
break;
case 17:
system("displayswitch /internal");
system("pause");
system("cls");
break;
default:
printf("\n Choix invalide ! ");
// start telegram, taskkill /im telegram (quitter), taskill /im telegram /f (kill), taskkil /pid 123 '/f'
system("pause");
system("cls");
}
}while(choice!=0 && choice!=1 && choice!=2 && choice!=3 && choice!=4 && choice!=5);
return 0;
}