System

EsApplicationStart

void EsApplicationStart(ES_INSTANCE_TYPE *instance, const EsApplicationStartupRequest *request);

The instance is optional, used only for ES_APPLICATION_STARTUP_IN_SAME_CONTAINER.

EsApplicationRunTemporary

void EsApplicationRunTemporary(STRING path);

Asks the desktop to run the application at path. Requires the run-temporary-application permission.

EsTakeSystemSnapshot

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.

_EsInstanceCreate

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.

EsHandleClose

EsError EsHandleClose(EsHandle handle);

Closes a handle. Returns an error code if the handle is invalid.

EsSystemShowShutdownDialog

void EsSystemShowShutdownDialog();

Asks the desktop to show the shutdown confirmation dialog.

EsSystemShutdown

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.

EsPOSIXInitialise

void EsPOSIXInitialise(int *argc, char ***argv);

Initialises the POSIX subsystem. Parses the process arguments and environment into argc and argv.

EsPOSIXSystemCall

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.

EsPOSIXConvertPath

char *EsPOSIXConvertPath(const char *path, size_t *outNameLength, bool addPOSIXMountPointPrefix);

Converts a POSIX path to a native path. Free with EsHeapFree.

_EsDebugCommand

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.