| 1078 | } |
| 1079 | |
| 1080 | int cmdReboot(_In_ LPCTSTR BaseName, _In_opt_ LPCTSTR Machine, _In_ DWORD Flags, _In_ int argc, _In_reads_(argc) PTSTR argv[]) |
| 1081 | /*++ |
| 1082 | |
| 1083 | Routine Description: |
| 1084 | |
| 1085 | REBOOT |
| 1086 | reboot local machine |
| 1087 | |
| 1088 | Arguments: |
| 1089 | |
| 1090 | BaseName - name of executable |
| 1091 | Machine - must be NULL (local machine only) |
| 1092 | argc/argv - remaining parameters - ignored |
| 1093 | |
| 1094 | Return Value: |
| 1095 | |
| 1096 | EXIT_xxxx |
| 1097 | |
| 1098 | --*/ |
| 1099 | { |
| 1100 | UNREFERENCED_PARAMETER(BaseName); |
| 1101 | UNREFERENCED_PARAMETER(Flags); |
| 1102 | UNREFERENCED_PARAMETER(argc); |
| 1103 | UNREFERENCED_PARAMETER(argv); |
| 1104 | |
| 1105 | if(Machine) { |
| 1106 | // |
| 1107 | // must be local machine |
| 1108 | // |
| 1109 | return EXIT_USAGE; |
| 1110 | } |
| 1111 | FormatToStream(stdout,MSG_REBOOT); |
| 1112 | return Reboot() ? EXIT_OK : EXIT_FAIL; |
| 1113 | } |
| 1114 | |
| 1115 | |
| 1116 | int cmdUpdate(_In_ LPCTSTR BaseName, _In_opt_ LPCTSTR Machine, _In_ DWORD Flags, _In_ int argc, _In_reads_(argc) PTSTR argv[]) |
nothing calls this directly
no test coverage detected