Diol can save your theme preference in this browser using local storage.
void EsApplicationStart(ES_INSTANCE_TYPE *instance, const EsApplicationStartupRequest *request);
The instance is optional, used only for ES_APPLICATION_STARTUP_IN_SAME_CONTAINER.
void EsApplicationRunTemporary(STRING path);
Asks the desktop to run the application at path. Requires the run-temporary-application permission.
EsHandle EsTakeSystemSnapshot(int type, size_t *bufferSize);
Takes a system snapshot of the given type. Returns a handle to a constant buffer containing the snapshot; read it with EsConstantBufferRead. bufferSize receives the size. Requires the take-system-snapshot permission.
EsInstance *_EsInstanceCreate(size_t bytes, EsMessage *message, STRING name = BLANK_STRING);
Creates an instance. bytes is the size of the instance's private data and message is the create-instance message.
EsError EsHandleClose(EsHandle handle);
Closes a handle. Returns an error code if the handle is invalid.
void EsSystemShowShutdownDialog();
Asks the desktop to show the shutdown confirmation dialog.
void EsSystemShutdown(uint32_t action);
Shuts down or restarts the system. action is ES_SHUTDOWN_ACTION_POWER_OFF or ES_SHUTDOWN_ACTION_RESTART. Requires the shutdown permission.
void EsPOSIXInitialise(int *argc, char ***argv);
Initialises the POSIX subsystem. Parses the process arguments and environment into argc and argv.
long EsPOSIXSystemCall(long n, long a1, long a2, long a3, long a4, long a5, long a6);
Invokes the POSIX system call with number n. Returns the raw system call result.
char *EsPOSIXConvertPath(const char *path, size_t *outNameLength, bool addPOSIXMountPointPrefix);
Converts a POSIX path to a native path. Free with EsHeapFree.
uintptr_t _EsDebugCommand(uintptr_t a, uintptr_t b, uintptr_t c, uintptr_t d);
Invokes a debug command in the kernel. Requires the take-system-snapshot permission. For debugging only.