Exemple #1
0
        /// <summary>
        /// Copy from RDPRFX test suite code
        /// </summary>
        private void receiveAndLogClientRfxCapabilites()
        {
            uint maxRequestSize = 38055; // MS-RDPBCGR section 2.2.7.2.7

            TS_RFX_ICAP[] clientRfxCaps;

            this.TestSite.Log.Add(LogEntryKind.Comment, "Receive and check client capabilities...");
            rdprfxAdapter.ReceiveAndCheckClientCapabilities(maxRequestSize, out clientRfxCaps);

            if (clientRfxCaps != null)
            {
                foreach (TS_RFX_ICAP iCap in clientRfxCaps)
                {
                    OperationalMode  opMode = (OperationalMode)iCap.flags;
                    EntropyAlgorithm enAlg  = (EntropyAlgorithm)iCap.entropyBits;
                    this.TestSite.Log.Add(LogEntryKind.Comment, "Client supports ({0}, {1}).", opMode, enAlg);
                }
            }
        }