コード例 #1
0
extern "C" DLL_EXPORT BOOL WINAPI MarshalStructAsParam_AsExpByValShortStructPack4Explicit(ShortStructPack4Explicit str1)
{
	if(!IsCorrectShortStructPack4Explicit(&str1))
	{
		printf("\tMarshalStructAsParam_AsExpByVal8:ShortStructPack4Explicit param not as expected\n");
		PrintShortStructPack4Explicit(&str1, "str1");
		return FALSE;
	}
	ChangeShortStructPack4Explicit(&str1);
	return TRUE;
}
コード例 #2
0
extern "C" DLL_EXPORT BOOL __stdcall MarshalStructAsParam_AsExpByRefShortStructPack4Explicit_Stdcall(ShortStructPack4Explicit* str1)
{
    if(!IsCorrectShortStructPack4Explicit(str1))
    {
        PRINT_ERR_INFO();
        PrintShortStructPack4Explicit(str1, "str1");
        return FALSE;
    }
    ChangeShortStructPack4Explicit(str1);
    return TRUE;
}