static ULONG MU_C5()

in inc/com_wrapper/com_wrapper.h [268:282]


static ULONG MU_C5(internal_, wrapped_handle_type, _, implementing_interface, _AddRef)(implementing_interface* This) \
{ \
    ULONG result; \
    if (This == NULL) \
    { \
        LogError("Invalid arguments: This=%p", This); \
        result = 0; \
    } \
    else \
    { \
        MU_C2(wrapped_handle_type, _COM_WRAPPER)* com_wrapper = (MU_C2(wrapped_handle_type, _COM_WRAPPER)*)((unsigned char*)This - offsetof(MU_C2(wrapped_handle_type, _COM_WRAPPER), MU_C2(implementing_interface, _if))); \
        result = (ULONG)interlocked_increment(&com_wrapper->ref_count); \
    } \
    return result; \
} \