00001 #ifndef __KSJ_API_CALLBACK_H__
00002 #define __KSJ_API_CALLBACK_H__
00003 
00004 // #pragma message("Include KSJApiCallback.h") 
00005 
00006 #ifdef KSJAPI_EXPORTS
00007     #define KSJ_API __declspec(dllexport)
00008 #elif defined KSJAPI_STATIC
00009     #define KSJ_API
00010 #else
00011     #define KSJ_API __declspec(dllimport)
00012 #endif
00013 
00014 #ifdef __cplusplus
00015 extern "C"{
00016 #endif
00017 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032     typedef void(CALLBACK *KSJ_PREVIEWCALLBACK)(unsigned char *pImageData, int nWidth, int nHeight, int nBitCount, void *lpContext);
00033     
00045     KSJ_API  int __stdcall KSJ_PreviewSetCallback( int nIndex, KSJ_PREVIEWCALLBACK pfPreviewCallback, void *lpContext );
00046 
00060     typedef void(CALLBACK *KSJ_PREVIEWCALLBACKEX)(HDC  hDC, unsigned char *pImageData, int nWidth, int nHeight, int nBitCount, void *lpContext);
00061     
00073     KSJ_API  int __stdcall KSJ_PreviewSetCallbackEx( int nIndex, KSJ_PREVIEWCALLBACKEX pfPreviewCallbackEx, void *lpContext );
00076 #ifdef __cplusplus
00077 }
00078 #endif
00079 
00080 #endif