From 6c854695d0d26fbbad28da136ae4f8e8147fab45 Mon Sep 17 00:00:00 2001 From: "Andrey Halyavin (halyavin)" Date: Sun, 8 Oct 2006 07:26:25 +0000 Subject: [PATCH] fixed definition of process_table_entry structure in mesys.h git-svn-id: svn://kolibrios.org@169 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../develop/metcc/trunk/libc/include/mesys.h | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/programs/develop/metcc/trunk/libc/include/mesys.h b/programs/develop/metcc/trunk/libc/include/mesys.h index 34bd8cef08..94fa5e221d 100644 --- a/programs/develop/metcc/trunk/libc/include/mesys.h +++ b/programs/develop/metcc/trunk/libc/include/mesys.h @@ -58,19 +58,29 @@ extern int stdcall _msys_pci_write_config_byte(int bus,int dev,int fn,int reg,i extern int stdcall _msys_pci_write_config_word(int bus,int dev,int fn,int reg,int value); extern int stdcall _msys_pci_write_config_value(int bus,int dev,int fn,int reg,int value); extern int stdcall _msys_putpixel(int x,int y,int color); +#pragma pack(push,1) typedef struct { - int cpu_usage; - int window_pos_info; - char name[12]; - int memstart; - int memused; - int pid; - int winx_start; - int winy_start; - int winx_size; - int winy_size; - int slot_info; + int cpu_usage; //+0 + int window_pos_info; //+4 + short int reserved1; //+8 + char name[12]; //+10 + int memstart; //+22 + int memused; //+26 + int pid; //+30 + int winx_start; //+34 + int winy_start; //+38 + int winx_size; //+42 + int winy_size; //+46 + short int slot_info; //+50 + short int reserved2; //+52 + int clientx; //+54 + int clienty; //+58 + int clientwidth; //+62 + int clientheight; //+66 + unsigned char window_state;//+70 + char reserved3[1024-71]; //+71 } process_table_entry; +#pragma pack(pop) extern int stdcall _msys_get_process_table(process_table_entry* proctab,int pid); extern int stdcall _msys_get_screen_size(int* x,int* y); extern void stdcall _msys_sound_load_block(void* blockptr);