mirror of
https://github.com/EnderIce2/rpc-bridge.git
synced 2025-07-10 14:59:14 +00:00
MacOS Fix
This commit is contained in:
14
service.c
14
service.c
@ -88,13 +88,13 @@ void InstallService(int ServiceStartType, LPCSTR Path)
|
||||
{
|
||||
print("Registering service\n");
|
||||
|
||||
if (IsLinux == FALSE)
|
||||
{
|
||||
/* FIXME: I don't know how to get the TMPDIR without getenv */
|
||||
MessageBox(NULL, "Registering as a service is not supported on macOS at the moment.",
|
||||
"Unsupported", MB_OK | MB_ICONINFORMATION);
|
||||
ExitProcess(1);
|
||||
}
|
||||
// if (IsLinux == FALSE)
|
||||
// {
|
||||
// /* FIXME: I don't know how to get the TMPDIR without getenv */
|
||||
// MessageBox(NULL, "Registering as a service is not supported on macOS at the moment.",
|
||||
// "Unsupported", MB_OK | MB_ICONINFORMATION);
|
||||
// ExitProcess(1);
|
||||
// }
|
||||
|
||||
SC_HANDLE schSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_CREATE_SERVICE);
|
||||
if (schSCManager == NULL)
|
||||
|
Reference in New Issue
Block a user