extern "C" DLL_EXPORT BOOL WINAPI MarshalStructAsParam_AsExpByRefOutInnerExplicit(InnerExplicit* inner) { if(inner->f1 != 0 || inner->f2 != 0.0) { printf("\tMarshalStructAsParam_AsExpByRefOut: INNER param not as expected\n"); return FALSE; } ChangeInnerExplicit(inner); return TRUE; }
extern "C" DLL_EXPORT BOOL WINAPI MarshalStructAsParam_AsExpByRefInInnerExplicit(InnerExplicit* inner) { if(inner->f1 != 1 || memcmp(inner->f3, "some string",11*sizeof(char)) != 0) { printf("\tMarshalStructAsParam_AsExpByRefIn: INNER param not as expected\n"); PrintInnerExplicit(inner,"inner"); return FALSE; } ChangeInnerExplicit(inner); return TRUE; }
extern "C" DLL_EXPORT BOOL __stdcall MarshalStructAsParam_AsExpByRefInnerExplicit_Stdcall(InnerExplicit* inner) { if(inner->f1 != 1 || memcmp(inner->f3, "some string",11*sizeof(char)) != 0) { PRINT_ERR_INFO(); PrintInnerExplicit(inner,"inner"); return FALSE; } ChangeInnerExplicit(inner); return TRUE; }