Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8245 IgorA 1
#ifndef __L_PROC_LIB_H_INCLUDED_
2
#define __L_PROC_LIB_H_INCLUDED_
3
//
4
// proc_lib.obj
5
//
6
 
7
struct od_filter
8
{
9
	long size; //size = len(#ext) + sizeof(long)
10
	char ext[25];
11
};
12
 
13
struct OpenDialog_data{
14
	long type;
15
	void* procinfo; //
16
	char* com_area_name;
17
	void* com_area; //
18
	char* opendir_path;
19
	char* dir_default_path;
20
	char* start_path;
21
	void (__stdcall* draw_window)();
22
	long status;
23
	char* openfile_path;
24
	char* filename_area;
25
	od_filter* filter_area;
26
	short int x_size;  // Window X size
27
	short int x_start; // Window X position
28
	short int y_size;  // Window y size
29
	short int y_start; // Window Y position
30
};
31
 
32
struct ColorDialog_data{
33
	long type;
34
	void* procinfo; //
35
	char* com_area_name;
36
	void* com_area; //
37
	char* start_path;
38
	void (__stdcall* draw_window)();
39
	long status;
40
	short int x_size;  // Window X size
41
	short int x_start; // Window X position
42
	short int y_size;  // Window y size
43
	short int y_start; // Window Y position
44
	long color_type;   // 0- RGB, 1 or other - reserved
45
	long color;        // Selected color
46
};
47
 
48
//
49
// proc_lib - import table
50
//
51
void (__stdcall* import_proc_lib)() = (void (__stdcall*)())&"lib_init";
52
void (__stdcall* OpenDialog_Init)(OpenDialog_data* odd) = (void (__stdcall*)(OpenDialog_data*))&"OpenDialog_init";
53
void (__stdcall* OpenDialog_Start)(OpenDialog_data* odd) = (void (__stdcall*)(OpenDialog_data*))&"OpenDialog_start";
54
void (__stdcall* OpenDialog_SetFileName)(OpenDialog_data* odd, char* name) = (void (__stdcall*)(OpenDialog_data*, char*))&"OpenDialog_set_file_name";
55
void (__stdcall* OpenDialog_SetFileExt)(OpenDialog_data* odd, char* ext) = (void (__stdcall*)(OpenDialog_data*, char*))&"OpenDialog_set_file_ext";
56
void (__stdcall* ColorDialog_Init)(ColorDialog_data* cdd) = (void (__stdcall*)(ColorDialog_data*))&"ColorDialog_init";
57
void (__stdcall* ColorDialog_Start)(ColorDialog_data* cdd) = (void (__stdcall*)(ColorDialog_data*))&"ColorDialog_start";
58
asm{
59
	dd 0,0
60
}
61
 
62
#endif