Microsoft.Protocols.TestSuites.MS_OXCNOTIF.MS_OXCNOTIFAdapter.EcDoAsyncConnectEx C# (CSharp) Method

EcDoAsyncConnectEx() public method

Acquire an asynchronous context handle on the server which will be used in subsequent EcDoAsyncWaitEx call.
public EcDoAsyncConnectEx ( ) : IntPtr
return IntPtr
        public IntPtr EcDoAsyncConnectEx()
        {
            uint returnValue;
            IntPtr acxh = IntPtr.Zero;
            try
            {
                returnValue = NativeMethods.EcDoAsyncConnectEx(this.oxcRopsClient.CXH, ref acxh);
            }
            catch (SEHException ex)
            {
                returnValue = NativeMethods.RpcExceptionCode(ex);
            }

            Site.Assert.AreEqual<uint>(0, returnValue, "EcDoAsyncConnectEx should succeed");
            this.VerifyAsyncCallOnRPCTransport();
            return acxh;
        }