Exemple #1
0
        /// <inheritdoc />
        public ErrorCode SCardEstablishContext(uint scope, object notUsed1, object notUsed2, ref IntPtr context)
        {
            ErrorCode ret;

            unsafe
            {
                fixed(void *pcontext = &context)
                {
                    ret = UnsafePrimitives.SCardEstablishContext(
                        scope,
                        null,
                        null,
                        (void **)pcontext
                        );
                }

                if (ret == ErrorCode.Success)
                {
                    ActiveContext = context;
                }
            }

            return(ret);
        }