public static bool DoesProviderContextExist( IntPtr sessionHandle, Guid id) { uint result = 0; AssertSuccess(() => PInvoke.DoesProviderContextExist( sessionHandle, ref id, ref result)); return(result == 0); }