#include <stdio.h>
#include "API-WiMiFile.h"
int main( int argc, char* argv[] )
{
char buffer[0XFF];
unsigned long dwSize;
unsigned long dwRetVal;
// The default input buffer size
dwSize = sizeof( buffer );
// The max file volume
SetMaxFileVolume( 12000UL );
// miniLZO the source file
dwRetVal = LZOCompress_File( "D:BMP13.bwrg", buffer, &dwSize );
//dwRetVal = LZOCompress_File( "D:BMP5B.bmp", buffer, &dwSize );
// Validate the operation status
if ( dwRetVal != ERROR_SUCCESS )
{
printf( "Error!rnCode=0X%08lXrnrn", dwRetVal );
return 0X00;
}
// The output file name and size
printf( "Success!rnOutput File=%s,File Name Length=%lurnrn", buffer, dwSize );
// Exit the main program
return 0X01;
}