From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id CCC3581901 for ; Tue, 27 Dec 2016 15:28:03 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP; 27 Dec 2016 15:28:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,419,1477983600"; d="scan'208";a="207311684" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 27 Dec 2016 15:28:03 -0800 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 27 Dec 2016 15:28:03 -0800 Received: from fmsmsx103.amr.corp.intel.com ([169.254.2.47]) by fmsmsx118.amr.corp.intel.com ([169.254.1.242]) with mapi id 14.03.0248.002; Tue, 27 Dec 2016 15:28:03 -0800 From: "Carsey, Jaben" To: GN Keshava , "edk2-devel@lists.01.org" CC: "Carsey, Jaben" Thread-Topic: [edk2] LocateHandle for gEfiShellProtocolGuid is failing in my application Thread-Index: AQHSW1xqp2i/R8U88kW9Um+C39/gDKESuezQgAGDA4CAAAjHAP//65aggAFCDQCABwdoQA== Date: Tue, 27 Dec 2016 23:28:03 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZWY3MTE1YmUtYzQ5MS00YjA3LThhN2ItZDlkNjEzMDMyOWMxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlgreFdZKzlxT2V5XC9YeU5cL25wZGphZkdsV082cHBPQ2ZFNzhoZU1URDljND0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [10.1.200.107] MIME-Version: 1.0 Subject: Re: LocateHandle for gEfiShellProtocolGuid is failing in my application X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2016 23:28:03 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SSB3b25kZXIgaWYgdGhlIGZpcm13YXJlIHN1cHBsaWVyIGlzIHVzaW5nIGFuIG9sZGVyIHZlcnNp b24gb2YgdGhlIHNoZWxsIGJpbmFyeT8gIE1heWJlIGl0IGlzIEVESyBTaGVsbCBhbmQgbm90IFVF RkkgU2hlbGw/ICBJIGFtIHVuc3VyZSBob3cgdG8gZml4IHRoZSBpc3N1ZS4NCg0KLUphYmVuDQoN Cj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZWRrMi1kZXZlbCBbbWFpbHRv OmVkazItZGV2ZWwtYm91bmNlc0BsaXN0cy4wMS5vcmddIE9uIEJlaGFsZiBPZg0KPiBHTiBLZXNo YXZhDQo+IFNlbnQ6IFRodXJzZGF5LCBEZWNlbWJlciAyMiwgMjAxNiA4OjA3IFBNDQo+IFRvOiBD YXJzZXksIEphYmVuIDxqYWJlbi5jYXJzZXlAaW50ZWwuY29tPjsgZWRrMi1kZXZlbEBsaXN0cy4w MS5vcmcNCj4gU3ViamVjdDogUmU6IFtlZGsyXSBMb2NhdGVIYW5kbGUgZm9yI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