extern "C" DLL_EXPORT BOOL WINAPI MarshalStructAsParam_AsExpByRefInLongStructPack16Explicit(LongStructPack16Explicit* str1) { if(!IsCorrectLongStructPack16Explicit(str1)) { printf("\tMarshalStructAsParam_AsExpByRefIn10:LongStructPack16Explicit param not as expected\n"); PrintLongStructPack16Explicit(str1, "str1"); return FALSE; } ChangeLongStructPack16Explicit(str1); return TRUE; }
extern "C" DLL_EXPORT BOOL __stdcall MarshalStructAsParam_AsExpByRefLongStructPack16Explicit_Stdcall(LongStructPack16Explicit* str1) { if(!IsCorrectLongStructPack16Explicit(str1)) { PRINT_ERR_INFO(); PrintLongStructPack16Explicit(str1, "str1"); return FALSE; } ChangeLongStructPack16Explicit(str1); return TRUE; }
extern "C" DLL_EXPORT BOOL __stdcall DoCallBack_MarshalByValStruct_Stdcall_LongStructPack16Explicit(ByValStdcallCaller_LongStructPack16Explicit caller) { LongStructPack16Explicit lspe; lspe.l1 = 32; lspe.l2 = 32; if(!caller(lspe)) { PRINT_ERR_INFO(); return FALSE; } if( !IsCorrectLongStructPack16Explicit( &lspe ) ) { PRINT_ERR_INFO(); return FALSE; } return TRUE; }
extern "C" DLL_EXPORT BOOL _cdecl DoCallBack_MarshalByRefStruct_Cdecl_LongStructPack16Explicit(ByRefCdeclCaller_LongStructPack16Explicit caller) { LongStructPack16Explicit lspe; lspe.l1 = 64; lspe.l2 = 64; if(!caller(&lspe)) { PRINT_ERR_INFO(); return FALSE; } if( !IsCorrectLongStructPack16Explicit( &lspe ) ) { PRINT_ERR_INFO(); return FALSE; } return TRUE; }