#ifndef ERRORCONTROL_H
#define ERRORCONTROL_H
/*******************************************************************
 Copyright © 1998 Virtual Paradigm 

 $Release  : 1.0.0                 	    	                       
 $Revision : 												       
	r1.00	11-08-98											   
                                                                 
 $Functions:

*******************************************************************/				                       				


// When enumerating :
//      <FUNCTION_ERROR>


enum errorcontrol { 
	
	// ok = 0
	OK,

	// dll load library
	LOAD_LIBRARY_OK,
	LOAD_LIBRARY_FAILED,
	FREE_LIBRARY_OK,
	FREE_LIBRARY_FAILED,

	// dll function imprt
	DLL_FUNCTION_NOT_FOUND,
	DLL_FUNCTION_FOUND,

	// monitor resolution changes
	MONITOR_RESOLUTION_CHANGED_OK,
	MONITOR_RESOLUTION_FAILURE,

	// window class registration
	REGISTER_CLASS_FAILED,
	CLASS_ALREADY_REGISTERED,
	CLASS_REGISTER_SUCCESS,

	// window creation
	WINDOW_EXISTS,
	CREATE_WINDOW_OK,
	CREATE_WINDOW_FAIL,

	// pixel format probe
	FAILED_TO_GETDC,
	NO_PIXEL_FORMATS,
	NO_SUITABLE_PIXEL_FORMATS,
	LACK_OF_RESOLUTIONS,
	VIDEO_USABLE,

	// set pixelformat + render context
	COULD_NOT_DESCRIBE_PIXEL_FORMAT,
	COULD_NOT_SET_PIXEL_FORMAT,
	COULD_NOT_CREATE_CONTEXT,
	COULD_NOT_MAKE_RC_CURRENT,
	RENDERING_CONTEXT_IS_LIVE,

	COULD_NOT_CHANGE_WINDOW,



	//  Unknown error
	UNDEFINED_ERROR,           // ALWAYS PUT THIS SECOND LAST !!        


	// counter of errors
	CONTROLSTRINGSIZE          // ALWAYS PUT THIS LAST !!

};

//extern int printErr(int error);


#endif
