#ifndef IMAGES_H
#define IMAGES_H

#pragma pack(push,1)
#pragma pack(1)

typedef struct
{
	unsigned short Type; // signature - ‘BM’
	unsigned long Size; // file size in unsigned chars
	unsigned short Reserved1; // 0
	unsigned short Reserved2; // 0
	unsigned long OffBits; // offset to bitmap
	unsigned long StructSize; // size of this struct (40)
	unsigned long Width; // bmap width in pixels
	unsigned long Height; // bmap height in pixels
	unsigned short Planes; // num planes - always 1
	unsigned short BitCount; // bits per pixel
	unsigned long Compression; // compression flag
	unsigned long SizeImage; // image size in unsigned chars
	long XPelsPerMeter; // horz resolution
	long YPelsPerMeter; // vert resolution
	unsigned long ClrUsed; // 0 -> color table size
	unsigned long ClrImportant; // important color count
} BMFileheader;

void SendImageList(int ID);
int SendImage(int ID,char *file);

#pragma pack(pop)

#endif
