private bool TryEcDoAsyncConnectExandEcDoAsyncWaitEx(IntPtr pcxh)
{
// Supports the EcDoAsyncConnectEx and EcDoAsyncWaitEx
#region Call EcDoAsyncConnectEx
this.returnValue = this.oxcrpcAdapter.EcDoAsyncConnectEx(pcxh, ref this.pacxh);
if (this.returnValue != 0)
{
return false;
}
#endregion
#region Call EcDoAsyncWaitEx
bool isNotificationPending;
this.returnValue = this.oxcrpcAdapter.EcDoAsyncWaitEx(this.pacxh, out isNotificationPending);
#endregion call EcDoAsyncWaitEx
return this.returnValue == 0;
}