I found the answer for both C Structs and C# classes but came back empty-handed concerning C++. EDIT : In C, you can\'t. In C# it\'s the GetProperties() method.
There is no reflection in C++. So, the answer is, you can't :)
Here's an article on reflection and how to deal with the fact that c++ doesn't do it.