Update file paths

This commit is contained in:
EnderIce2
2024-04-05 22:36:05 +03:00
parent 7af098ab26
commit aeda375cba
2 changed files with 7 additions and 7 deletions

View File

@ -134,7 +134,7 @@ void RemoveService()
SC_HANDLE schSCManager, schService;
SERVICE_STATUS ssSvcStatus;
schSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_CONNECT);
schSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if (schSCManager == NULL)
{
MessageBox(NULL, GetErrorMessage(),
@ -184,7 +184,7 @@ void RemoveService()
ExitProcess(1);
}
DeleteFile("C:\\bridge.exe");
DeleteFile("C:\\windows\\bridge.exe");
print("Service removed successfully\n");
CloseServiceHandle(schService);
CloseServiceHandle(schSCManager);