I have a small C library in a DLL and I need to call a handful of its methods.

It uses pointers and a few structs but is otherwise quite simple. Problem is I'm not terribly knowledgable on .NET's interop with the unmanaged world and my attempts so far keep hitting memory access violation exceptions (presumably due to me not getting the pointers quite right).

Could anyone give me some pointers (ooh a pun!) on the best way to approach this?