<?php

const WIN32_SERVICE_WIN32_OWN_PROCESS = 0x00000010;

const WIN32_SERVICE_INTERACTIVE_PROCESS = 0x00000100;

const WIN32_SERVICE_WIN32_OWN_PROCESS_INTERACTIVE = 0x00000110;

const WIN32_SERVICE_CONTINUE_PENDING = 0x00000005;

const WIN32_SERVICE_PAUSE_PENDING = 0x00000006;

const WIN32_SERVICE_PAUSED = 0x00000007;

const WIN32_SERVICE_RUNNING = 0x00000004;

const WIN32_SERVICE_START_PENDING = 0x00000002;

const WIN32_SERVICE_STOP_PENDING = 0x00000003;

const WIN32_SERVICE_STOPPED = 0x00000001;

const WIN32_SERVICE_CONTROL_CONTINUE = 0x00000003;

const WIN32_SERVICE_CONTROL_INTERROGATE = 0x00000004;

const WIN32_SERVICE_CONTROL_PAUSE = 0x00000002;

const WIN32_SERVICE_CONTROL_PRESHUTDOWN = 0x0000000F;

const WIN32_SERVICE_CONTROL_SHUTDOWN = 0x00000005;

const WIN32_SERVICE_CONTROL_STOP = 0x00000001;

const WIN32_SERVICE_ACCEPT_PAUSE_CONTINUE = 0x00000002;

const WIN32_SERVICE_ACCEPT_PRESHUTDOWN = 0x00000100;

const WIN32_SERVICE_ACCEPT_SHUTDOWN = 0x00000004;

const WIN32_SERVICE_ACCEPT_STOP = 0x00000001;

const WIN32_SERVICE_AUTO_START = 0x00000002;

const WIN32_SERVICE_DEMAND_START = 0x00000003;

const WIN32_SERVICE_DISABLED = 0x00000004;

const WIN32_SERVICE_ERROR_IGNORE = 0x00000000;

const WIN32_SERVICE_ERROR_NORMAL = 0x00000001;

const WIN32_SERVICE_RUNS_IN_SYSTEM_PROCESS = 0x00000001;

const WIN32_ERROR_ACCESS_DENIED = 0x00000005;

const WIN32_ERROR_CIRCULAR_DEPENDENCY = 0x00000423;

const WIN32_ERROR_DATABASE_DOES_NOT_EXIST = 0x00000429;

const WIN32_ERROR_DEPENDENT_SERVICES_RUNNING = 0x0000041B;

const WIN32_ERROR_DUPLICATE_SERVICE_NAME = 0x00000436;

const WIN32_ERROR_FAILED_SERVICE_CONTROLLER_CONNECT = 0x00000427;

const WIN32_ERROR_INSUFFICIENT_BUFFER = 0x0000007A;

const WIN32_ERROR_INVALID_DATA = 0x0000000D;

const WIN32_ERROR_INVALID_HANDLE = 0x00000006;

const WIN32_ERROR_INVALID_LEVEL = 0x0000007C;

const WIN32_ERROR_INVALID_NAME = 0x0000007B;

const WIN32_ERROR_INVALID_PARAMETER = 0x00000057;

const WIN32_ERROR_INVALID_SERVICE_ACCOUNT = 0x00000421;

const WIN32_ERROR_INVALID_SERVICE_CONTROL = 0x0000041C;

const WIN32_ERROR_PATH_NOT_FOUND = 0x00000003;

const WIN32_ERROR_SERVICE_ALREADY_RUNNING = 0x00000420;

const WIN32_ERROR_SERVICE_CANNOT_ACCEPT_CTRL = 0x00000425;

const WIN32_ERROR_SERVICE_DATABASE_LOCKED = 0x0000041F;

const WIN32_ERROR_SERVICE_DEPENDENCY_DELETED = 0x00000433;

const WIN32_ERROR_SERVICE_DEPENDENCY_FAIL = 0x0000042C;

const WIN32_ERROR_SERVICE_DISABLED = 0x00000422;

const WIN32_ERROR_SERVICE_DOES_NOT_EXIST = 0x00000424;

const WIN32_ERROR_SERVICE_EXISTS = 0x00000431;

const WIN32_ERROR_SERVICE_LOGON_FAILED = 0x0000042D;

const WIN32_ERROR_SERVICE_MARKED_FOR_DELETE = 0x00000430;

const WIN32_ERROR_SERVICE_NO_THREAD = 0x0000041E;

const WIN32_ERROR_SERVICE_NOT_ACTIVE = 0x00000426;

const WIN32_ERROR_SERVICE_REQUEST_TIMEOUT = 0x0000041D;

const WIN32_ERROR_SHUTDOWN_IN_PROGRESS = 0x0000045B;

const WIN32_NO_ERROR = 0x00000000;

const WIN32_ABOVE_NORMAL_PRIORITY_CLASS = 0x00008000;

const WIN32_BELOW_NORMAL_PRIORITY_CLASS = 0x00004000;

const WIN32_HIGH_PRIORITY_CLASS = 0x00000080;

const WIN32_IDLE_PRIORITY_CLASS = 0x00000040;

const WIN32_NORMAL_PRIORITY_CLASS = 0x00000020;

const WIN32_REALTIME_PRIORITY_CLASS = 0x00000100;

function win32_continue_service(string $serviceName, string $machine = ''): int|false
{
}

function win32_create_service(string $details, string $machine = ''): int|false
{
}

function win32_delete_service(string $serviceName, string $machine = ''): int|false
{
}

function win32_get_last_control_message(): int
{
}

function win32_pause_service(string $serviceName, string $machine = ''): int|false
{
}

function win32_query_service_status(string $serviceName, string $machine = ''): array|false
{
}

function win32_set_service_status(int $status, int $checkpoint = 0): bool|int
{
}

function win32_start_service_ctrl_dispatcher(string $name): bool|int
{
}

function win32_start_service(string $serviceName, string $machine = ''): int|false
{
}

function win32_stop_service(string $serviceName, string $machine = ''): int|false
{
}
