/*******************************************************************************
  TPI - flexible but useless plug-in framework.
  Copyright (C) 2002-2009 Silky

  This library is free software; you can redistribute it and/or modify it under
  the terms of the GNU Lesser General Public License as published by the Free
  Software Foundation; either version 2.1 of the License, or (at your option)
  any later version.

  This library is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
  for more details.

  You should have received a copy of the GNU Lesser General Public License along
  with this library; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

  $Id: xpiLibrary.h 159 2009-12-02 13:01:42Z sirakaba $
*******************************************************************************/

//******************************************************************************
//    Defines
//******************************************************************************

#define XPI_NO_FUNCTION			-101
#define XPI_ALL_RIGHT			0
#define XPI_ABORT				101
#define XPI_NOT_SUPPRORT		102
#define XPI_OUT_OF_ORDER		103
#define XPI_NO_MEMORY			104
#define XPI_MEMORY_ERROR		105
#define XPI_FILE_READ_ERROR		106
#define	XPI_WINDOW_ERROR		107
#define XPI_OTHER_ERROR			108
#define	XPI_FILE_WRITE_ERROR	109
#define	XPI_END_OF_FILE			110

#pragma pack(1)

typedef struct PictureInfo
{
	long left, top;
	long width;
	long height;
	WORD x_density;
	WORD y_density;
	short colorDepth;
	HLOCAL hInfo;
} PictureInfo;


