17 lines
452 B
C
17 lines
452 B
C
// g++ -shared -o kitty.dll kitty_dll.res.o ../../kitty_dll.c -Wl,--whole-archive ../../base64.a -Wl,--no-whole-archive -DBUILD_DLL -static-libgcc
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <windows.h>
|
|
|
|
#ifdef BUILD_DLL
|
|
#define LINKDLL extern "C" __declspec(dllimport)
|
|
#else
|
|
#define LINKDLL
|
|
#endif
|
|
|
|
extern "C" const char * get_param_str( const char * val ) {
|
|
if( !stricmp( val, "CLASS" ) ) return "KiTTY" ;
|
|
return NULL ;
|
|
}
|