Subversion Repositories Kolibri OS

Rev

Rev 576 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
576 serge 1
 
2
extern "C"
3
{
4
#endif
5
6
 
7
 
8
#define FONT1          0x10000000
9
10
 
11
#define BT_NOFRAME     0x20000000
12
#define BT_HIDE        0x40000000
13
#define BT_DEL         0x80000000
14
15
 
16
#define EV_KEY         2
17
#define EV_BUTTON      3
18
#define EV_IPC         7
19
20
 
21
#define REL_WINDOW     1
22
23
 
24
#define FILE_EOF       6
25
26
 
27
 
28
typedef unsigned short int WORD;
29
30
 
31
{  DWORD pci_cmd;
32
   DWORD irq;
33
   DWORD glob_cntrl;
34
   DWORD glob_sta;
35
   DWORD codec_io_base;
36
   DWORD ctrl_io_base;
37
   DWORD codec_mem_base;
38
   DWORD ctrl_mem_base;
39
   DWORD codec_id;
40
} CTRL_INFO;
41
42
 
43
{   DWORD       cmd;
44
    DWORD       offset;
45
    DWORD       r1;
46
    DWORD       count;
47
    DWORD       buff;
48
    char        r2;
49
    char       *name;
50
} FILEIO;
51
52
 
53
{   DWORD    attr;
54
    DWORD    flags;
55
    DWORD    cr_time;
56
    DWORD    cr_date;
57
    DWORD    acc_time;
58
    DWORD    acc_date;
59
    DWORD    mod_time;
60
    DWORD    mod_date;
61
    DWORD    size;
62
    DWORD    size_high;
63
} FILEINFO;
64
65
 
66
void* _stdcall UserAlloc(int size);
67
int   _stdcall UserFree(void* p);
68
69
 
70
71
 
72
73
 
74
75
 
76
void debug_out_str(char* str);
77
78
 
79
int _stdcall create_file(const char *name);
80
int _stdcall read_file (const char *name,char*buff,DWORD offset, DWORD count,DWORD *reads);
81
int _stdcall write_file(const char *name,char*buff,int offset,int count,int *writes);
82
83
 
84
int _stdcall get_key(int *key);
85
int _stdcall remap_key(int key);
86
87
 
88
89
 
90
int wait_for_event(int time);
91
int wait_for_event_infinite();
92
void BeginDraw(void);
93
void EndDraw(void);
94
95
 
96
void _stdcall DrawWindow(int x,int y, int sx, int sy,int workcolor,int style,
97
                               int captioncolor,int windowtype,int bordercolor);
98
void _stdcall debug_out(int ch);
99
void _stdcall make_button(int x, int y, int xsize, int ysize, int id, int color);
100
void _stdcall draw_bar(int x, int y, int xsize, int ysize, int color);
101
void _stdcall write_text(int x,int y,int color,char* text,int len);
102
103
 
1842 clevermous 104
void debug_out_str(const char* str);
105
void ResizeReplaceWindow (DWORD x, DWORD y, DWORD w, DWORD h);
106
void set_event_mask(int mask);
107
void ipc_init(char *buf, int bufsize);
108
int ipc_send_msg(int PID, char *msg);
109
//] Asper
110
111
 
576 serge 112
extern "C"
113
}
114
#endif
115