Call external COM object, want to catch S_FALSE return code
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I'm calling an external COM object. I want to be able to identify when it returns S_OK and when it returns S_FALSE. Any other HREUSLT returned by the COM object is properly translated by the CLR to a COMException object. Nevertheless S_FALSE is treated as a success thus an exception isn't thrown. How can I get this return code ? I look at the registers and I can see EAX change according to S_OK/S_FALSE, but I can't access that data in any way. Thanks