internal static IStream GetInterface(IntPtr comInterface, bool outParam)
{
IStream managedInterface;
if (comInterface == IntPtr.Zero)
return null;
#if !RECURSIVE_WRAPPING
else if ((managedInterface = ManagedToNativeWrapper.GetUnderlyingInterface(comInterface, outParam)) == null)
#endif
managedInterface = (IStream)new NativeToManagedWrapper(comInterface, outParam);
return managedInterface;
}