Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
typedef int(WINAPI*S_dll_callback_demo1)(unsigned char,unsigned char*);
typedef int(*S_dll_callback_demo2)(unsigned char,unsigned char*);
#define WINAPI __stdcall
#define APIENTRY WINAPI