We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the native signature is int MyFunction(BSTR * pszVerificationId)
int MyFunction(BSTR * pszVerificationId)
With PInvoke I can do something like
[System.Runtime.InteropServices.DllImportAttribute("TestDLL", EntryPoint = "MyFunction", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)] public static extern int MyFunction([MarshalAsAttribute(UnmanagedType.BStr)] ref string test);
With LegacyWrapper I don't know how to get it to work
[LegacyDllImport("TestDLL.dll")] public interface IUser32Dll : IDisposable { [LegacyDllMethod(CallingConvention = CallingConvention.StdCall)] int MyFunction([MarshalAs(UnmanagedType.BStr)]ref String test); }
But when I call it with
using (var client = WrapperProxyFactory<IUser32Dll>.GetInstance(configuration)) { client.MyFunction(ref test); }
I get System.Runtime.Serialization.SerializationException: 'End of Stream encountered before parsing was completed.'
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When the native signature is
int MyFunction(BSTR * pszVerificationId)
With PInvoke I can do something like
With LegacyWrapper I don't know how to get it to work
But when I call it with
I get System.Runtime.Serialization.SerializationException: 'End of Stream encountered before parsing was completed.'
The text was updated successfully, but these errors were encountered: