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 >
Text File  |  2003-08-04  |  5KB  |  152 lines

  1. #if defined _ra_included
  2.   #endinput
  3. #endif
  4. #define _ra_included
  5.  
  6. enum {
  7.     REBOOT_NORMAL=0,
  8.     REBOOT_EMERGENCY=1,
  9.  
  10.     FILE_READ=0,
  11.     FILE_WRITE=1,
  12.     FILE_APPEND=2,
  13.  
  14.     FILE_BEGIN=0,
  15.     FILE_CURRENT=1,
  16.     FILE_END=2,
  17.  
  18.     SERVICE_STOPPED                =0x00000001,
  19.     SERVICE_START_PENDING          =0x00000002,
  20.     SERVICE_STOP_PENDING           =0x00000003,
  21.     SERVICE_RUNNING                =0x00000004,
  22.     SERVICE_CONTINUE_PENDING       =0x00000005,
  23.     SERVICE_PAUSE_PENDING          =0x00000006,
  24.     SERVICE_PAUSED                 =0x00000007,
  25.  
  26.     SERVICE_KERNEL_DRIVER          =0x00000001,
  27.     SERVICE_FILE_SYSTEM_DRIVER     =0x00000002,
  28.     SERVICE_ADAPTER                =0x00000004,
  29.     SERVICE_RECOGNIZER_DRIVER      =0x00000008,
  30.     SERVICE_WIN32_OWN_PROCESS      =0x00000010,
  31.     SERVICE_WIN32_SHARE_PROCESS    =0x00000020,
  32.     SERVICE_INTERACTIVE_PROCESS    =0x00000100,
  33.  
  34.     SERVICE_BOOT_START             =0x00000000,
  35.     SERVICE_SYSTEM_START           =0x00000001,
  36.     SERVICE_AUTO_START             =0x00000002,
  37.     SERVICE_DEMAND_START           =0x00000003,
  38.     SERVICE_DISABLED               =0x00000004,
  39.  
  40.     PERF_CPU                       =0x0001,
  41.     PERF_CPU_NTH                       =0x0001,
  42.     PERF_DRIVE                       =0x0002,
  43.     PERF_MEMORY                       =0x0010,
  44.     PERF_PHYSICAL_MEMORY           =0x0020,
  45.     PERF_PAGEFILE                   =0x0040,
  46.     PERF_NET_IN                       =0x0100,
  47.     PERF_NET_OUT                   =0x0200,
  48.  
  49.     HKEY_CLASSES_ROOT=0,
  50.     HKEY_CURRENT_CONFIG,
  51.     HKEY_CURRENT_USER,
  52.     HKEY_LOCAL_MACHINE,
  53.     HKEY_USERS,
  54.     HKEY_PERFORMANCE_DATA,
  55.     HKEY_DYN_DATA,
  56.  
  57.     REG_SZ                      = 1,   // nul terminated string
  58.     REG_EXPAND_SZ               = 2,   // nul terminated string
  59.                                        // (with environment variable references)
  60.     REG_BINARY                  = 3,   // Free form binary
  61.     REG_DWORD                   = 4,   // 32-bit number
  62. }
  63.  
  64. native gb(arr[], id);        // extract byte from array
  65. native sb(arr[], id, value);    // set byte in array
  66.  
  67. native strize(array[], len=-1); // convert C-style strings to Small packed strings and vica versa
  68. native strlen(string[]);
  69. native strcpy(dest[], src[]);
  70. native strcat(dest[], src[]);
  71. native strleft(dest[], src[], len);
  72. native strright(dest[], src[], len);
  73. native strmid(dest[], src[], pos, len);
  74. native strchr(string[], c, start=0);
  75. native strstr(string1[], string2[], start=0);
  76. native strcmp(string1[], string2[]);
  77. native stricmp(string1[], string2[]);
  78. native sprintf(string[], format[], ... );
  79. native atoi(string[]);
  80.  
  81. native fopen(filename[], mode);
  82. native fclose(file);
  83. native fread(file, buf[], bytes);
  84. native fwrite(file, buf[], bytes);
  85. native fseek(file, offset, method);
  86.  
  87. native socket(address[], port, timeout=-1);
  88. native closesocket(sock);
  89. native recv(sock, buf[], bytes);
  90. native send(sock, buf[], bytes);
  91.  
  92. native htmlBeginOutput(title[]="");
  93. native htmlEndOutput();
  94. native htmlWrite(text[], htmlize=false);
  95. native htmlBR();
  96. native htmlBeginTable(...); // parameters: column titles
  97. native htmlEndTable();
  98. native htmlTableRow(...);
  99. native htmlBeginTableRow();
  100. native htmlEndTableRow();
  101. native htmlTableCell(text[]);
  102. native htmlBeginTableCell();
  103. native htmlEndTableCell();
  104. native htmlBeginDialog(text[]);
  105. native htmlEndDialog();
  106. native htmlBeginForm();
  107. native htmlEndForm();
  108. native htmlAddParam(...); // parameters: name-value pairs
  109. native htmlGetParam(param[], value[]);
  110. native htmlButton(text[], func[]);
  111. native htmlButtonBack(text[]="Back", form=true);
  112. native htmlRadioButton(param[], value[], checked=false);
  113. native htmlCheckbox(param[], value[], checked=false);
  114. native htmlEdit(param[], value[]="");
  115. native htmlLink(title[], url[]);
  116. native htmlCBLink(title[], func[], ... ); // parameters: parameter name-value pairs
  117. native htmlError(msg[]);
  118.  
  119. native raEnumProcs();
  120. native raGetProcessNum();
  121. native raGetProcess(id, &pid, name[], &cpu, &mem);
  122. native raGetNextProcess(&pid, name[], &cpu, &mem);
  123. native raEnumProcsClose();
  124. native raKillProcess(pid);
  125. native raForkProcess(cmdline[]);
  126. native raExecuteCmd(cmd[], buf[]="", buflen=0, timeout=-1);
  127.  
  128. native raReboot(type=REBOOT_NORMAL);
  129.  
  130. native raEnumServices();
  131. native raGetServiceNum();
  132. native raGetService(id, name[], displayName[], binary[], &type, &status, &startup);
  133. native raGetNextService(name[], displayName[], binary[], &type, &status, &startup);
  134. native raEnumServicesClose();
  135. native raStartService(name[]);
  136. native raStopService(name[]);
  137. native raPauseService(name[]);
  138. native raContinueService(name[]);
  139.  
  140. native raGetTime();
  141. native raGetPerformance(type, time, &value, ...);
  142.  
  143. native raSleep(time);
  144.  
  145. native raLog(msg[]);
  146. native raSendMail(to[], subj[], msg[], from[]="");
  147. native raMessage(to[], msg[]);
  148. native raODBC(msg[]);
  149.  
  150. native raRegGetValue(base, key[], value[], type, ...);
  151. native raRegSetValue(base, key[], value[], type, ...);
  152.