Ravenshade, can you please for a moment stop confusing people with your God-knows-what i-gotta-answer-that attitude? Read the question this dude posted very well before giving an "abnormal" link.
He said Structureddata types, what has functions with simple data types got to do with the post sir?
OP, do you know how to pass primitive data types to functions? If so, passing a struct/class data type works in exactly the same way. A struct/class is just a programmer defined data type. They work in near identical manner than primitive data types, except they get to use the . operator.