I am trying to pass a structure from C# into C++ library. I pass structure as an object, and C++ function expects it as a pointer (void *).
I am having problem pas
Some additional information followup regarding @Rytmis's post.
From https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/interop-pinvokes.md:
Guids are usable directly in signatures. When passed by ref they can either be passed by
refor with the[MarshalAs(UnmanagedType.LPStruct)]attribute.
[MarshalAs(UnmanagedType.LPStruct)]should only be used for by ref Guids.