Skip to Content
avatar image
Former Member

AddOnInstallAPI: EndUninstall - .NET DllImport getting PInvokeStackImbalance

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    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);

    Add comment
    10|10000 characters needed characters exceeded