cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
molesan
Level 2

Calling methods in a .NET Assembly

I can call methods within a .NET Assembly that take no parameters (or just a couple of strings). However I am struggling with a method that takes in the following two parameters:

IntPtr and bool

Essentially what the method requires is a handle to the current window and a boolean value (true/false).

When I try and use this method using "hMSI" - a HWND and "FALSE" as the parameters I catch an error: "No such interface supported".

My understanding is that IntPtr is effectively an int and that hMSI is a HWND (so is also an int). I think this should be OK?

I am a bit more worried about the second boolean parameter. I suspect "FALSE" resolves itself to be 0 rather than "false" [if that makes sense].

Does anyone have any experience with passing in booleans or HWNDs into .NET Assemblies?

Thanks for your time!
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

What does your InstallScript code look like? How about the .NET method's signature?
0 Kudos