MCPcopy Create free account
hub / github.com/dobin/RedEdr / StartControl

Function StartControl

RedEdrPplService/control.cpp:106–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106void StartControl() {
107 LOG_W(LOG_INFO, L"Control: Start Thread");
108
109 // Reset the running flag
110 keep_running = TRUE;
111
112 control_thread = CreateThread(NULL, 0, ServiceControlPipeThread, NULL, 0, NULL);
113 if (control_thread == NULL) {
114 DWORD error = GetLastError();
115 LOG_W(LOG_ERROR, L"Control: Failed to create thread, error: %d", error);
116 } else {
117 LOG_W(LOG_INFO, L"Control: Thread created successfully");
118 }
119}
120
121
122void StopControl() {

Callers 1

ServiceMainFunction · 0.85

Calls 1

LOG_WFunction · 0.70

Tested by

no test coverage detected