extern "C" DLL_EXPORT BOOL WINAPI MarshalStructAsParam_AsExpByRefInIntStructPack8Explicit(IntStructPack8Explicit* str1) { if(!IsCorrectIntStructPack8Explicit(str1)) { printf("\tMarshalStructAsParam_AsExpByRefIn9:IntStructPack8Explicit param not as expected\n"); PrintIntStructPack8Explicit(str1, "str1"); return FALSE; } ChangeIntStructPack8Explicit(str1); return TRUE; }
extern "C" DLL_EXPORT BOOL __stdcall MarshalStructAsParam_AsExpByRefIntStructPack8Explicit_Stdcall(IntStructPack8Explicit* str1) { if(!IsCorrectIntStructPack8Explicit(str1)) { PRINT_ERR_INFO(); PrintIntStructPack8Explicit(str1, "str1"); return FALSE; } ChangeIntStructPack8Explicit(str1); return TRUE; }
extern "C" DLL_EXPORT BOOL __stdcall DoCallBack_MarshalByValStruct_Stdcall_IntStructPack8Explicit(ByValStdcallCaller_IntStructPack8Explicit caller) { IntStructPack8Explicit ispe; ispe.i1 = 32; ispe.i2 = 32; if(!caller(ispe)) { PRINT_ERR_INFO(); return FALSE; } if( !IsCorrectIntStructPack8Explicit( &ispe ) ) { PRINT_ERR_INFO(); return FALSE; } return TRUE; }
extern "C" DLL_EXPORT BOOL _cdecl DoCallBack_MarshalByRefStruct_Cdecl_IntStructPack8Explicit(ByRefCdeclCaller_IntStructPack8Explicit caller) { IntStructPack8Explicit ispe; ispe.i1 = 64; ispe.i2 = 64; if(!caller(&ispe)) { PRINT_ERR_INFO(); return FALSE; } if( !IsCorrectIntStructPack8Explicit( &ispe ) ) { PRINT_ERR_INFO(); return FALSE; } return TRUE; }