Skip to Content
0

AddOnInstallAPI: EndUninstall - .NET DllImport getting PInvokeStackImbalance

Mar 16, 2017 at 04:18 PM

38

avatar image
Former Member

How to use function "EndUninstall" from C# code correctly?

I'm using this way:

[DllImport("AddOnInstallAPI.dll")]
extern static void EndUninstall();

but I'm getting PInvokeStackImbalance error

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Mar 16, 2017 at 04:27 PM
0

I've found solution in VB .NET example "14.AddOnInstaller", the same C# example "14.AddOnInstaller" do not contain the function .. GRRR

This is one works

[DllImport("AddOnInstallAPI.dll")]
extern static int EndUninstall(string a, bool b);

Share
10 |10000 characters needed characters left characters exceeded