www.pudn.com > LEDShow.rar > PreviewApi.h, change:2014-04-14,size:1102b


#ifndef __preview__ 
#define __preview__ 
 
#include "LEDAPI.h" 
 
#define ST_RED_GREEN_REVERSE    0x00000002    //̷ɫ 
#define PREVIEW_TIMER_EVENT 10 
 
long (_stdcall *Preview_Create)(char* FontSetFile, DWORD ScreenType, DWORD Width, DWORD Height, long Window, char* Stream, PBoardParam Param); 
long (_stdcall *Preview_Step)(long Window); 
void (_stdcall *Preview_Destroy)(void); 
 
HINSTANCE preview_hInstance; 
char* disp_buffer; 
 
void Preview_Initialize(void) 
{ 
  disp_buffer=NULL; 
  if ((preview_hInstance=LoadLibrary("C:\\Windows\\system\\Interface.dll"))!=NULL) 
  { 
	Preview_Create=(long (_stdcall *)(char*, DWORD, DWORD, DWORD, long, char*, PBoardParam))GetProcAddress(preview_hInstance, "Display_Create"); 
	Preview_Step=(long (_stdcall *)(long))GetProcAddress(preview_hInstance, "Display_Step"); 
	Preview_Destroy=(void (_stdcall *)(void))GetProcAddress(preview_hInstance, "Display_Destroy"); 
  } 
} 
 
void Preview_Finalize(void) 
{ 
  Preview_Destroy(); 
  if (disp_buffer!=NULL) free(disp_buffer); 
  if (preview_hInstance!=NULL) FreeLibrary(preview_hInstance); 
} 
 
#endif