Microsoft.Protocols.TestSuites.MS_OXCRPC.S01_SynchronousCall.TryEcDoAsyncConnectExandEcDoAsyncWaitEx C# (CSharp) Method

TryEcDoAsyncConnectExandEcDoAsyncWaitEx() private method

Verify whether server supports the EcDoAsyncConnectEx and EcDoAsyncWaitEx RPC function calls.
private TryEcDoAsyncConnectExandEcDoAsyncWaitEx ( IntPtr pcxh ) : bool
pcxh System.IntPtr A unique value to be used as a session context handle.
return bool
        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;
        }