how to call a C function from C# with a WCHAR* out parameter?
问题 I'm having a bit of problem with marshaling and I just can't figure it out by myself. I've searched for this topic, but hadn't have any luck yet, so basically I'm trying to call an unmanaged C function from my managed C# application. The signature of the C function looks like this: long MyFunction(WCHAR* upn, long upnSize, WCHAR* guid, long* guidSize); I don't access to the .dll file, I just know that the function is being exposed for usage and I know what the function is supposed to do, but