Is there a better way (other than guessing) what the parameter count and parameter type of an exported function from a C++ written dll are?

Guessing at them its not a very effective method, and quite the pain in the neck considering every wrong guess ussually results in a crash