I know I'm missing something simple, I have next to no experience with these com things.
I would like to do this within an interface in an idl
[id(5), helpstring("Returns true if the object is in a valid state.")]
HRESULT IsValid([out, retval] boolean bValid);
However this gives : [out] paramter is not a pointer.
Ok, I understand that.
However, in the C# code implementing this, I can't return a bool* from the method IsValid() because it is unsafe.
What is the correct way for me to return the boolean value?