Just noticed a typo the function should be declared as:
My_API int Funct(bool value1)
{
...
}