00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __HTSYS_H__
00023 #define __HTSYS_H__
00024
00025 #include "htio.h"
00026 #include "global.h"
00027 #include "stream.h"
00028
00029 #define HT_SYS_NAME "Win32"
00030
00031 #define SYS_SUPPORT_NATIVE_CLIPBOARD
00032 #define SYS_NATIVE_CLIPBOARD_NAME "Windows Clipboard"
00033
00034 int sys_canonicalize(char *result, const char *filename);
00035 int sys_findclose(pfind_t *pfind);
00036 int sys_findfirst(const char *dirname, pfind_t *pfind);
00037 int sys_findnext(pfind_t *pfind);
00038 int sys_pstat(pstat_t *s, const char *filename);
00039 void sys_suspend();
00040 int sys_get_free_mem();
00041 int sys_truncate(const char *filename, FILEOFS ofs);
00042 int sys_deletefile(const char *filename);
00043 bool sys_is_path_delim(char c);
00044 int sys_filename_cmp(const char *a, const char *b);
00045
00046 bool sys_write_data_to_native_clipboard(const void *data, int size);
00047 int sys_get_native_clipboard_data_size();
00048 bool sys_read_data_from_native_clipboard(void *data, int max_size);
00049
00050 int sys_ipc_exec(ht_streamfile **in, ht_streamfile **out, ht_streamfile **err, int *handle, const char *cmd, int options);
00051 bool sys_ipc_is_valid(int handle);
00052 int sys_ipc_terminate(int handle);
00053
00054 int sys_get_caps();
00055
00056
00057
00058
00059
00060 bool init_system();
00061
00062
00063
00064
00065
00066 void done_system();
00067
00068 #endif