MCPcopy Create free account
hub / github.com/NullArray/WinKernel-Resources / cmdReboot

Function cmdReboot

Drivers/Driver-SRC/setup/devcon/cmds.cpp:1080–1113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1078}
1079
1080int cmdReboot(_In_ LPCTSTR BaseName, _In_opt_ LPCTSTR Machine, _In_ DWORD Flags, _In_ int argc, _In_reads_(argc) PTSTR argv[])
1081/*++
1082
1083Routine Description:
1084
1085 REBOOT
1086 reboot local machine
1087
1088Arguments:
1089
1090 BaseName - name of executable
1091 Machine - must be NULL (local machine only)
1092 argc/argv - remaining parameters - ignored
1093
1094Return 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
1116int cmdUpdate(_In_ LPCTSTR BaseName, _In_opt_ LPCTSTR Machine, _In_ DWORD Flags, _In_ int argc, _In_reads_(argc) PTSTR argv[])

Callers

nothing calls this directly

Calls 2

FormatToStreamFunction · 0.85
RebootFunction · 0.85

Tested by

no test coverage detected