Jabbersii
Jabbersii

Reputation: 23

C library struct in C#

So I'd like to write a spotify desktop app. Trouble is the spotify API is written in C, and I'd like to write it in C# because I know C# better. I realize I'll need to use P/Invoke and marshalling of structs, and I've done some reading on both of these topics.
My problem is that there is a number of structs (e.g. sp_session) which have no definition in the api.h file.
Is it possible to write a kind of Interop to the library if this is the case?

Upvotes: 2

Views: 148

Answers (1)

Khadaji
Khadaji

Reputation: 2167

This codeplex project might be of some use.

Upvotes: 4

Related Questions