home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 April
/
PCWorld_2004-04_cd.bin
/
software
/
temacd
/
remotany
/
RemotelyAnywhere.msi
/
ra.inc
< prev
next >
Wrap
Text File
|
2003-08-04
|
5KB
|
152 lines
#if defined _ra_included
#endinput
#endif
#define _ra_included
enum {
REBOOT_NORMAL=0,
REBOOT_EMERGENCY=1,
FILE_READ=0,
FILE_WRITE=1,
FILE_APPEND=2,
FILE_BEGIN=0,
FILE_CURRENT=1,
FILE_END=2,
SERVICE_STOPPED =0x00000001,
SERVICE_START_PENDING =0x00000002,
SERVICE_STOP_PENDING =0x00000003,
SERVICE_RUNNING =0x00000004,
SERVICE_CONTINUE_PENDING =0x00000005,
SERVICE_PAUSE_PENDING =0x00000006,
SERVICE_PAUSED =0x00000007,
SERVICE_KERNEL_DRIVER =0x00000001,
SERVICE_FILE_SYSTEM_DRIVER =0x00000002,
SERVICE_ADAPTER =0x00000004,
SERVICE_RECOGNIZER_DRIVER =0x00000008,
SERVICE_WIN32_OWN_PROCESS =0x00000010,
SERVICE_WIN32_SHARE_PROCESS =0x00000020,
SERVICE_INTERACTIVE_PROCESS =0x00000100,
SERVICE_BOOT_START =0x00000000,
SERVICE_SYSTEM_START =0x00000001,
SERVICE_AUTO_START =0x00000002,
SERVICE_DEMAND_START =0x00000003,
SERVICE_DISABLED =0x00000004,
PERF_CPU =0x0001,
PERF_CPU_NTH =0x0001,
PERF_DRIVE =0x0002,
PERF_MEMORY =0x0010,
PERF_PHYSICAL_MEMORY =0x0020,
PERF_PAGEFILE =0x0040,
PERF_NET_IN =0x0100,
PERF_NET_OUT =0x0200,
HKEY_CLASSES_ROOT=0,
HKEY_CURRENT_CONFIG,
HKEY_CURRENT_USER,
HKEY_LOCAL_MACHINE,
HKEY_USERS,
HKEY_PERFORMANCE_DATA,
HKEY_DYN_DATA,
REG_SZ = 1, // nul terminated string
REG_EXPAND_SZ = 2, // nul terminated string
// (with environment variable references)
REG_BINARY = 3, // Free form binary
REG_DWORD = 4, // 32-bit number
}
native gb(arr[], id); // extract byte from array
native sb(arr[], id, value); // set byte in array
native strize(array[], len=-1); // convert C-style strings to Small packed strings and vica versa
native strlen(string[]);
native strcpy(dest[], src[]);
native strcat(dest[], src[]);
native strleft(dest[], src[], len);
native strright(dest[], src[], len);
native strmid(dest[], src[], pos, len);
native strchr(string[], c, start=0);
native strstr(string1[], string2[], start=0);
native strcmp(string1[], string2[]);
native stricmp(string1[], string2[]);
native sprintf(string[], format[], ... );
native atoi(string[]);
native fopen(filename[], mode);
native fclose(file);
native fread(file, buf[], bytes);
native fwrite(file, buf[], bytes);
native fseek(file, offset, method);
native socket(address[], port, timeout=-1);
native closesocket(sock);
native recv(sock, buf[], bytes);
native send(sock, buf[], bytes);
native htmlBeginOutput(title[]="");
native htmlEndOutput();
native htmlWrite(text[], htmlize=false);
native htmlBR();
native htmlBeginTable(...); // parameters: column titles
native htmlEndTable();
native htmlTableRow(...);
native htmlBeginTableRow();
native htmlEndTableRow();
native htmlTableCell(text[]);
native htmlBeginTableCell();
native htmlEndTableCell();
native htmlBeginDialog(text[]);
native htmlEndDialog();
native htmlBeginForm();
native htmlEndForm();
native htmlAddParam(...); // parameters: name-value pairs
native htmlGetParam(param[], value[]);
native htmlButton(text[], func[]);
native htmlButtonBack(text[]="Back", form=true);
native htmlRadioButton(param[], value[], checked=false);
native htmlCheckbox(param[], value[], checked=false);
native htmlEdit(param[], value[]="");
native htmlLink(title[], url[]);
native htmlCBLink(title[], func[], ... ); // parameters: parameter name-value pairs
native htmlError(msg[]);
native raEnumProcs();
native raGetProcessNum();
native raGetProcess(id, &pid, name[], &cpu, &mem);
native raGetNextProcess(&pid, name[], &cpu, &mem);
native raEnumProcsClose();
native raKillProcess(pid);
native raForkProcess(cmdline[]);
native raExecuteCmd(cmd[], buf[]="", buflen=0, timeout=-1);
native raReboot(type=REBOOT_NORMAL);
native raEnumServices();
native raGetServiceNum();
native raGetService(id, name[], displayName[], binary[], &type, &status, &startup);
native raGetNextService(name[], displayName[], binary[], &type, &status, &startup);
native raEnumServicesClose();
native raStartService(name[]);
native raStopService(name[]);
native raPauseService(name[]);
native raContinueService(name[]);
native raGetTime();
native raGetPerformance(type, time, &value, ...);
native raSleep(time);
native raLog(msg[]);
native raSendMail(to[], subj[], msg[], from[]="");
native raMessage(to[], msg[]);
native raODBC(msg[]);
native raRegGetValue(base, key[], value[], type, ...);
native raRegSetValue(base, key[], value[], type, ...);